From 1ab51d56674601346c288804457435001a20ce23 Mon Sep 17 00:00:00 2001 From: smh Date: Thu, 31 Jul 2008 07:41:19 +0000 Subject: [PATCH] Fix compilation errors (in accordance with latest MED changes) --- src/FILTER/Filter_Gen_i.cxx | 6 +++--- src/FILTER/field2nodes.cxx | 24 ++++++++++++------------ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/FILTER/Filter_Gen_i.cxx b/src/FILTER/Filter_Gen_i.cxx index 175af67..e38bb37 100755 --- a/src/FILTER/Filter_Gen_i.cxx +++ b/src/FILTER/Filter_Gen_i.cxx @@ -434,8 +434,8 @@ void Filter_Gen_i::projectFieldsOnDecimateMesh() throw(SALOME_FILTER::FILTER_Gen // read of new mesh in ensight file MESH* myMesh = new MESH(); ENSIGHT_MESH_RDONLY_DRIVER myEnsightMeshDriver("/tmp/output.case", myMesh) ; - myMesh->addDriver(ENSIGHT_DRIVER,"/tmp/output.case","myMesh",MED_EN::MED_LECT); - myMesh->read() ; + myMesh->addDriver(ENSIGHT_DRIVER,"/tmp/output.case","myMesh",MED_EN::RDONLY); + myMesh->read(); // have to call ensight driver MED to generate output MED file from filtoo output _newMed = new ::MED(); @@ -665,7 +665,7 @@ void Filter_Gen_i::createMedOutputFile(const char *outMedFile) int id; MESSAGE("Create MED mesh: "<addDriver(MED_DRIVER,outMedFile,MED_EN::MED_ECRI); + id = _newMed->addDriver(MED_DRIVER,outMedFile,MED_EN::WRONLY); _newMed->write(id); } diff --git a/src/FILTER/field2nodes.cxx b/src/FILTER/field2nodes.cxx index 95f206f..bef48f0 100644 --- a/src/FILTER/field2nodes.cxx +++ b/src/FILTER/field2nodes.cxx @@ -49,25 +49,25 @@ int main (int argc, char ** argv) { if ( argc == 3 ) { filenameIN = argv[1] ; filenameOUT = argv[2] ; - cout << "-> reading all into the Med file " << filenameIN << " and writing all into the Ensight file " << filenameOUT << endl ; + cout << "-> reading all into the Med file " << filenameIN << " and writing all into the Ensight file " << filenameOUT << endl; - MED myMed(MED_DRIVER,filenameIN) ; + MED myMed(MED_DRIVER,filenameIN); - cout << "-> Read all meshes " ; - int NumberOfMeshes = myMed.getNumberOfMeshes() ; - cout << "( "< Read all meshes "; + int NumberOfMeshes = myMed.getNumberOfMeshes(); + cout << "( "< **volume = new FIELD*[NumberOfMeshes]; - deque MeshName = myMed.getMeshNames() ; + deque MeshName = myMed.getMeshNames(); for (int i=0; iread() ; + myMed.getMesh(MeshName[i])->read(); cout << "-> Mesh "<addDriver(MED_DRIVER,filenameOUT,MeshName[i],MED_EN::MED_ECRI); + int id = myMed.getMesh(MeshName[i])->addDriver(MED_DRIVER,filenameOUT,MeshName[i],MED_EN::WRONLY); myMed.getMesh(MeshName[i])->write(id); cout << "-> Mesh "< Read all fields " ; int NumberOfFields = myMed.getNumberOfFields() ; @@ -186,7 +186,7 @@ int main (int argc, char ** argv) { } } delete [] val; - int id = newDField->addDriver(MED_DRIVER,filenameOUT,FieldName[i],MED_EN::MED_ECRI); + int id = newDField->addDriver(MED_DRIVER,filenameOUT,FieldName[i],MED_EN::WRONLY); newDField->write(id); delete newSup; delete newDField; @@ -260,7 +260,7 @@ int main (int argc, char ** argv) { } } delete [] val; - int id = newIField->addDriver(MED_DRIVER,filenameOUT,FieldName[i],MED_EN::MED_ECRI); + int id = newIField->addDriver(MED_DRIVER,filenameOUT,FieldName[i],MED_EN::WRONLY); newIField->write(id); delete newSup; delete newIField; @@ -276,7 +276,7 @@ int main (int argc, char ** argv) { break; case MED_NODE: cout << "*************************** CHAMP AUX NOEUDS" << endl; - int id = myField->addDriver(MED_DRIVER,filenameOUT,FieldName[i],MED_EN::MED_ECRI); + int id = myField->addDriver(MED_DRIVER,filenameOUT,FieldName[i],MED_EN::WRONLY); myField->write(id); cout << " * Iteration "<