]> SALOME platform Git repositories - tools/solverlab.git/blobdiff - CDMATH/mesh/inc/Field.hxx
Salome HOME
Improved writing of meshes and fields
[tools/solverlab.git] / CDMATH / mesh / inc / Field.hxx
index 489588c16c57b5cb8d2f0d96eab25d694082e7c6..fe79b58f2ece0656a9843085bd675a6b5899cfb7 100755 (executable)
@@ -15,7 +15,6 @@ namespace MEDCoupling
   class MEDFileField1TS;
 }
 
-#include "DoubleTab.hxx"
 #include "Vector.hxx"
 #include "Mesh.hxx"
 
@@ -87,7 +86,7 @@ class Field
         *  */
        Field(const std::string meshfileName, EntityType fieldType, 
                  const std::vector<double> Vconstant,const std::string & fieldName = "",
-                  int meshLevel=0, double time=0.0);
+                  int meshLevel=0, double time=0.0, std::string meshName="");
 
     /**
      * constructor with data
@@ -254,7 +253,7 @@ class Field
     /** 
         * \brief Delete the medcoupling mesh to save memory space
      */
-    void deleteMEDCouplingUMesh();
+    void deleteMEDCouplingMesh();
     
     /** 
      * \brief Returns true iff an unstructured mesh has been loaded
@@ -347,7 +346,7 @@ class Field
 
     void writeVTK ( const std::string fileName, bool fromScratch=true ) const ;
 
-    void writeMED ( const std::string fileName, bool fromScratch=true ) const ;
+    void writeMED ( const std::string fileName, bool fromScratch=true ) ;
 
     void writeCSV ( const std::string fileName ) const ;
 
@@ -367,7 +366,6 @@ class Field
        int _numberOfComponents;
        double _time;
        std::string _fieldName;
-       MEDCoupling::MEDFileField1TS *_ff ;//To save the field when the mesh has been deleted
        
     private: