From 507268153ca8fc87d959755485eabc920592e52e Mon Sep 17 00:00:00 2001 From: eap Date: Sat, 5 Mar 2011 13:12:49 +0000 Subject: [PATCH] 0021167: [CEA 448] Supports management on all elements relpace SUPPORT(mesh,name,entity) by mesh.getSupportOnAll( entity ) + fix some errors --- doc/MEDMEM/FIELDgeneral.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/MEDMEM/FIELDgeneral.py b/doc/MEDMEM/FIELDgeneral.py index 1ba51b769..bbb9efa34 100644 --- a/doc/MEDMEM/FIELDgeneral.py +++ b/doc/MEDMEM/FIELDgeneral.py @@ -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] -- 2.39.2