mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 17:30:35 +05:00
Correction for test
This commit is contained in:
parent
c9a5231c32
commit
43fc1c7182
@ -100,15 +100,15 @@ def test_netgen3d():
|
|||||||
print(cmd)
|
print(cmd)
|
||||||
subprocess.check_call(cmd, shell=True)
|
subprocess.check_call(cmd, shell=True)
|
||||||
|
|
||||||
meshRead = mc.ReadUMeshFromFile (output_mesh, "Maillage_1", 0)
|
meshRead = mc.ReadUMeshFromFile (output_mesh, "MESH", 0)
|
||||||
|
|
||||||
nbTetras = meshRead.getNumberOfCellsWithType(mc.NORM_TETRA4)
|
nbTetras = meshRead.getNumberOfCellsWithType(mc.NORM_TETRA4)
|
||||||
nbPoints = meshRead.getNumberOfNodes()
|
nbPoints = meshRead.getNumberOfNodes()
|
||||||
|
|
||||||
meshRead = mc.ReadUMeshFromFile (output_mesh, "Maillage_1", -1)
|
meshRead = mc.ReadUMeshFromFile (output_mesh, "MESH", -1)
|
||||||
nbTriangles = meshRead.getNumberOfCellsWithType(mc.NORM_TRI3)
|
nbTriangles = meshRead.getNumberOfCellsWithType(mc.NORM_TRI3)
|
||||||
|
|
||||||
meshRead = mc.ReadUMeshFromFile (output_mesh, "Maillage_1", -2)
|
meshRead = mc.ReadUMeshFromFile (output_mesh, "MESH", -2)
|
||||||
nbSegments = meshRead.getNumberOfCellsWithType(mc.NORM_SEG2)
|
nbSegments = meshRead.getNumberOfCellsWithType(mc.NORM_SEG2)
|
||||||
|
|
||||||
print("Nb Tetras:", nbTetras)
|
print("Nb Tetras:", nbTetras)
|
||||||
|
Loading…
Reference in New Issue
Block a user