]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
[EDF26707] : Fix MEDWriter test after e21aed1d9d8e commit
authorAnthony Geay <anthony.geay@edf.fr>
Mon, 30 Jan 2023 11:50:54 +0000 (12:50 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Mon, 30 Jan 2023 11:50:54 +0000 (12:50 +0100)
src/Plugins/MEDWriter/plugin/Test/TestMEDWriter1.py

index efbcc49b791f2b0bdfe8ef2b177ca8eda570f226..a3f1e543e1b3e3356a3ceefb909dcfd11e77765d 100644 (file)
@@ -114,15 +114,7 @@ with tempfile.TemporaryDirectory(prefix="MEDWriter_") as tmpdir:
     assert(f1n.isEqual(f2_1,1e-12,0))
 
     # check field of cells numbers (set by setRenumFieldArr at level 0)
-    f3=f1.deepCopy()
-    f3.setName("NumIdCell")
-    f3_0=mfd2.getFields()["NumIdCell"][0].getFieldOnMeshAtLevel(ml.ON_CELLS,0,mm2)
-    f3_0.setMesh(m2_0)
-    assert(f3.isEqual(f3_0,1e-12,0))
+    assert(mfd2.getMeshes()[0].getNumberFieldAtLevel(0).isEqual(f1.getArray()))
 
     # check field of nodes numbers (set by setRenumFieldArr at level 1)
-    f4=f1n.deepCopy()
-    f4.setName("NumIdNode")
-    f4_1=mfd2.getFields()["NumIdNode"][0].getFieldOnMeshAtLevel(ml.ON_NODES,0,mm2)
-    f4_1.setMesh(m2_0)
-    assert(f4.isEqual(f4_1,1e-12,0))
+    assert( mfd2.getMeshes()[0].getNumberFieldAtLevel(1).isEqual(f1n.getArray()) )