]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
0022168]: [CEA 762] medloader documentation
authoreap <eap@opencascade.com>
Thu, 14 Mar 2013 14:55:42 +0000 (14:55 +0000)
committereap <eap@opencascade.com>
Thu, 14 Mar 2013 14:55:42 +0000 (14:55 +0000)
Fix value of writeFromScratch parameter for appending mesh to file

 #! [PySnippetMeshAdvAPI1_2]
         self.assertTrue(isinstance(myMesh,MEDCouplingUMesh))
         myMesh.setName(meshName)
-        MEDLoader.WriteUMesh("wFile1.med",myMesh,True)
+        MEDLoader.WriteUMesh("wFile1.med",myMesh,False)

src/MEDLoader/Swig/MEDLoaderExamplesTest.py

index 24ee31a8cf8b7bacc8c54dc1f654554ff6253ca2..db4b2540690a2811ff9e22178f721e61db5a195a 100644 (file)
@@ -167,7 +167,7 @@ class MEDLoaderBasicsTest(unittest.TestCase):
 #! [PySnippetMeshAdvAPI1_2]
         self.assertTrue(isinstance(myMesh,MEDCouplingUMesh))
         myMesh.setName(meshName)
-        MEDLoader.WriteUMesh("wFile1.med",myMesh,True)
+        MEDLoader.WriteUMesh("wFile1.med",myMesh,False)
 #! [PySnippetMeshAdvAPI1_2]
         f=myMesh.getMeasureField(ON_CELLS)
         f=f.buildNewTimeReprFromThis(ONE_TIME,False)