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()
" (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]