]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
0021167: [CEA 448] Supports management on all elements
authoreap <eap@opencascade.com>
Sat, 5 Mar 2011 13:11:46 +0000 (13:11 +0000)
committereap <eap@opencascade.com>
Sat, 5 Mar 2011 13:11:46 +0000 (13:11 +0000)
relpace SUPPORT(mesh,name,entity) by mesh.getSupportOnAll( entity )

doc/MEDMEM/FIELDcreate.py
doc/MEDMEM/MESHINGexample.py

index 0eb5801d76b7235e5ae0cc530e0ed5cd192a8cb8..944843076008a445c811a81aa493309cc0b017ca 100644 (file)
@@ -34,7 +34,7 @@ meshName = "maa1"
 
 myMesh = MESH(MED_DRIVER,MedFile,meshName)
 
-mySupport = SUPPORT(myMesh,"Support on all CELLs",MED_CELL)
+mySupport = myMesh.getSupportOnAll(MED_CELL)
 
 numberOfComponents = 3
 myField = FIELDDOUBLE(mySupport,numberOfComponents)
index 9b8feb7619fe8724f51d12f8487b19518512d601..77694b2fcbf6efafdd272bbf6774c8939c230146 100644 (file)
@@ -486,10 +486,10 @@ myMeshing.write(idVtk)
 #                         2 fields on nodes (cells) :
 #                         1 scalar (vector)
 
-supportOnNodes = SUPPORT(myMeshing,"On_All_Nodes",MED_NODE)
+supportOnNodes = myMeshing.getSupportOnAll(MED_NODE)
 numberOfNodes = supportOnNodes.getNumberOfElements(MED_ALL_ELEMENTS)
 
-supportOnCells = SUPPORT(myMeshing,"On_All_Cells",MED_CELL)
+supportOnCells = myMeshing.getSupportOnAll(MED_CELL)
 numberOfCells = supportOnCells.getNumberOfElements(MED_ALL_ELEMENTS)
 
 fieldDoubleScalarOnNodes = FIELDDOUBLE(supportOnNodes,1)