void killStructureElements();
%extend
{
+ MEDFileMesh(const std::string& fileName, MEDFileMeshReadSelector *mrs=0)
+ {
+ return MEDFileMesh::New(fileName, mrs);
+ }
+ MEDFileMesh(const std::string& fileName, const std::string& mName, int dt=-1, int it=-1, MEDFileMeshReadSelector *mrs=0)
+ {
+ return MEDFileMesh::New(fileName, mName, dt, it, mrs);
+ }
+
std::string __str__() const
{
return self->simpleRepr();
@WriteInTmpDir
def testMEDField1(self):
TestMultiFieldShuffleRW1(self)
- mm=MEDFileMesh.New("Pyfile17.med")
+ mm=MEDFileMesh("Pyfile17.med") # Also testing direct constructor here
mm.write("Pyfile17_bis.med",2)
ff=MEDFileFieldMultiTS("Pyfile17.med")
tsExpected=[[1,2],[3,4],[5,6]]
#
mm.write(fname,2)
##
- mm=MEDFileMesh.New(fname,"mesh",-1,-1,MEDFileMeshReadSelector())
+ mm=MEDFileMesh(fname,"mesh",-1,-1,MEDFileMeshReadSelector()) # Also testing direct constructor here
b4_ref_heap_mem=mm.getHeapMemorySize()
mm.getMeshAtLevel(0)## please let this line : force to move 1GTUMesh -> UMesh
mm.getMeshAtLevel(-1)## please let this line : force to move 1GTUMesh -> UMesh