From e6a82f5d33e461539ba02f7c1c0732bbde4f955f Mon Sep 17 00:00:00 2001 From: eap Date: Sat, 5 Mar 2011 13:11:46 +0000 Subject: [PATCH] 0021167: [CEA 448] Supports management on all elements relpace SUPPORT(mesh,name,entity) by mesh.getSupportOnAll( entity ) --- doc/MEDMEM/FIELDcreate.py | 2 +- doc/MEDMEM/MESHINGexample.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/MEDMEM/FIELDcreate.py b/doc/MEDMEM/FIELDcreate.py index 0eb5801d7..944843076 100644 --- a/doc/MEDMEM/FIELDcreate.py +++ b/doc/MEDMEM/FIELDcreate.py @@ -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) diff --git a/doc/MEDMEM/MESHINGexample.py b/doc/MEDMEM/MESHINGexample.py index 9b8feb761..77694b2fc 100644 --- a/doc/MEDMEM/MESHINGexample.py +++ b/doc/MEDMEM/MESHINGexample.py @@ -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) -- 2.39.2