From: Anthony Geay Date: Mon, 30 Jan 2023 11:50:54 +0000 (+0100) Subject: [EDF26707] : Fix MEDWriter test after e21aed1d9d8e commit X-Git-Tag: V9_11_0a1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7e61e14522a1fd30bc2052e366a8c441c62c8443;p=modules%2Fparavis.git [EDF26707] : Fix MEDWriter test after e21aed1d9d8e commit --- diff --git a/src/Plugins/MEDWriter/plugin/Test/TestMEDWriter1.py b/src/Plugins/MEDWriter/plugin/Test/TestMEDWriter1.py index efbcc49b..a3f1e543 100644 --- a/src/Plugins/MEDWriter/plugin/Test/TestMEDWriter1.py +++ b/src/Plugins/MEDWriter/plugin/Test/TestMEDWriter1.py @@ -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()) )