]> 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:12:49 +0000 (13:12 +0000)
committereap <eap@opencascade.com>
Sat, 5 Mar 2011 13:12:49 +0000 (13:12 +0000)
relpace SUPPORT(mesh,name,entity) by mesh.getSupportOnAll( entity )

+ fix some errors

doc/MEDMEM/FIELDgeneral.py

index 1ba51b769d6cd04e1a7d28ae562bf4ed3594c352..bbb9efa34d781592663ac5fa22a95ba6b5268dbc 100644 (file)
@@ -31,13 +31,13 @@ from libMEDMEM_Swig import *
 
 MedFile = "pointe.med"
 meshName = "maa1"
-fieldName = "fieldcelldouble"
+fieldName = "fieldcelldoublescalar"
 
 myMesh = MESH(MED_DRIVER,MedFile,meshName)
 
-mySupport = SUPPORT(myMesh,"Support on CELLs",MED_CELL)
+mySupport = myMesh.getSupportOnAll(MED_CELL)
 
-myField = FIELDDOUBLE(mySupport,MED_DRIVER,MedFile,fieldName)
+myField = FIELDDOUBLE(mySupport,MED_DRIVER,MedFile,fieldName,-1,-1)
 
 numberOfComponents = myField.getNumberOfComponents()
 
@@ -59,7 +59,7 @@ print "Iteration ",iterationNumber,"  at time ",time,\
       " (and order number ",orderNumber,")"
 
 numberOfValue = mySupport.getNumberOfElements(MED_ALL_ELEMENTS)
-value = myField.getValue(MED_FULL_INTERLACE)
+value = myField.getValue()
 
 for i in range(numberOfValue):
     print "  * ",value[i*numberOfComponents:(i+1)*numberOfComponents]