Salome HOME
Fix compilation errors (in accordance with latest MED changes) RELIQUAT_4x_25102008 V4_1_0_maintainance_20080801 V4_1_0_maintainance_20080805 V4_1_0_maintainance_20080901 V4_1_0_maintainance_20080903 V4_1_0_maintainance_20080904 V4_1_0_maintainance_20080919 V4_1_0_maintainance_20080925 V4_1_0_maintainance_20080926 V4_1_0_maintainance_20080929 V4_1_0_maintainance_20080930 V4_1_0_maintainance_20081002 V4_1_0_maintainance_20081006 V4_1_0_maintainance_20081007 V4_1_0_maintainance_20081009 V4_1_0_maintainance_20081020 V4_1_0_maintainance_20081024 V4_1_0_maintainance_20081027 V4_1_0_maintainance_20081028 V4_1_4a1
authorsmh <smh@opencascade.com>
Thu, 31 Jul 2008 07:41:19 +0000 (07:41 +0000)
committersmh <smh@opencascade.com>
Thu, 31 Jul 2008 07:41:19 +0000 (07:41 +0000)
src/FILTER/Filter_Gen_i.cxx
src/FILTER/field2nodes.cxx

index 175af67e05818e4105828ec10c338ecc6cf8700b..e38bb3761acc96623d1ad6627dfda4763f230a4e 100755 (executable)
@@ -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: "<<outMedFile);
-  id = _newMed->addDriver(MED_DRIVER,outMedFile,MED_EN::MED_ECRI);
+  id = _newMed->addDriver(MED_DRIVER,outMedFile,MED_EN::WRONLY);
   _newMed->write(id);
 }
 
index 95f206f900d219d8b7c44f0bc1614356b0fed7ee..bef48f009c5ffa76b5c348c126ef7c70e5e0714b 100644 (file)
@@ -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 << "( "<<NumberOfMeshes << " ) :" << endl ;
+    cout << "-> Read all meshes ";
+    int NumberOfMeshes = myMed.getNumberOfMeshes();
+    cout << "( "<<NumberOfMeshes << " ) :" << endl;
     FIELD<double> **volume = new FIELD<double>*[NumberOfMeshes];
-    deque<string> MeshName = myMed.getMeshNames() ;
+    deque<string> MeshName = myMed.getMeshNames();
     for (int i=0; i<NumberOfMeshes; i++) {
       volume[i] = NULL;
-      myMed.getMesh(MeshName[i])->read() ;
+      myMed.getMesh(MeshName[i])->read();
       cout << "-> Mesh "<<i+1<<", named "<<MeshName[i]<<" is read !" << endl;
-      int id = myMed.getMesh(MeshName[i])->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 "<<i+1<<", named "<<MeshName[i]<<" is written !" << endl;
     }
 
-    myMed.updateSupport() ;
+    myMed.updateSupport();
     
     cout << "-> 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 "<<FieldIteration[j].dt<<" and  order number "<<FieldIteration[j].it<<" ) is written !" << endl;
          break;