-// Copyright (C) 2011-2015 CEA/DEN, EDF R&D
+// Copyright (C) 2011-2016 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// B. Lecture du fichier de configuration
// ATTENTION : on doit veiller a la coherence entre HomardDriver et CreateCaseFromIteration
int NumeIter ;
+ int TypeExt = 0 ;
int TypeConf = 0 ;
int Pyram = 0 ;
char* MeshName ;
// D. Parametrages lus dans le fichier de configuration
myCase->SetConfType (TypeConf) ;
+ myCase->SetExtType (TypeExt) ;
myCase->SetPyram (Pyram) ;
// E. Copie du fichier de maillage homard
// MESSAGE ( "CreateCase0 : Les valeurs extremes des coordonnees" );
std::vector<double> LesExtremes =GetBoundingBoxInMedFile(MeshFile) ;
HOMARD::extrema_var aSeq = new HOMARD::extrema() ;
- if (LesExtremes.size()!=10) { return false; }
+ if (LesExtremes.size()!=10) { return 0; }
aSeq->length(10) ;
for (int i =0 ; i< LesExtremes.size() ; i++)
aSeq[i]=LesExtremes[i] ;
int ConfType = myCase->GetConfType();
MESSAGE ( ". ConfType = " << ConfType );
- // D.2. Le maillage de depart
+ // D.1. Le type externe
+ int ExtType = myCase->GetExtType();
+ MESSAGE ( ". ExtType = " << ExtType );
+
+ // D.3. Le maillage de depart
const char* NomMeshParent = myIterationParent->GetMeshName();
MESSAGE ( ". NomMeshParent = " << NomMeshParent );
const char* MeshFileParent = myIterationParent->GetMeshFile();
MESSAGE ( ". MeshFileParent = " << MeshFileParent );
- // D.3. Le maillage associe a l'iteration
+ // D.4. Le maillage associe a l'iteration
const char* MeshFile = myIteration->GetMeshFile();
MESSAGE ( ". MeshFile = " << MeshFile );
FILE *file = fopen(MeshFile,"r");
}
}
- // D.4. Les types de raffinement et de deraffinement
+ // D.5. Les types de raffinement et de deraffinement
// Les appels corba sont lourds, il vaut mieux les grouper
HOMARD::listeTypes* ListTypes = myHypo->GetAdapRefinUnRef();
ASSERT(ListTypes->length() == 3);
// E. Texte du fichier de configuration
// E.1. Incontournables du texte
- myDriver->TexteAdap();
+ myDriver->TexteAdap(ExtType);
int iaux = 0 ;
myDriver->TexteMaillageHOMARD( DirComputePa, siter, iaux ) ;
myDriver->TexteMaillage(NomMeshParent, MeshFileParent, 0);
for (int NumeComp = 0; NumeComp< numberOfCompos; NumeComp++)
{
std::string nomCompo = std::string((*mescompo)[NumeComp]);
- MESSAGE( "... nomCompo = " << nomCompo );
- myDriver->TexteCompo(NumeComp, nomCompo);
+ if ((system(nomCompo.c_str())) != 0)
+ {
+ MESSAGE( "... nomCompo = " << nomCompo );
+ myDriver->TexteCompo(NumeComp, nomCompo);
+ }
}
return ;
}
std::string aScript = "\"\"\"\n";
aScript += "Python script for HOMARD\n";
- aScript += "Copyright 1996, 2011, 1015 EDF\n";
+ aScript += "Copyright 1996, 2011, 2015 EDF\n";
aScript += "\"\"\"\n";
aScript += "__revision__ = \"V1.2\"\n";
aScript += "import HOMARD\n";