From: eap Date: Wed, 17 Dec 2008 17:50:33 +0000 (+0000) Subject: MEDMEM Industrialization 2008 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c49720d6a679a467b1994361bf8c276f5682eeb9;p=tools%2Fmedcoupling.git MEDMEM Industrialization 2008 support poly meshes --- diff --git a/src/ParaMEDMEM/ParaMESH.cxx b/src/ParaMEDMEM/ParaMESH.cxx index 68e72fb2e..0a70464f3 100644 --- a/src/ParaMEDMEM/ParaMESH.cxx +++ b/src/ParaMEDMEM/ParaMESH.cxx @@ -128,7 +128,7 @@ throw (MEDMEM::MEDEXCEPTION) :_has_mesh_ownership(true) // // Reading global numbering // - int ncell=_mesh->getNumberOfElements(MED_EN::MED_CELL,MED_EN::MED_ALL_ELEMENTS); + int ncell=_mesh->getNumberOfElementsWithPoly(MED_EN::MED_CELL,MED_EN::MED_ALL_ELEMENTS); int * array=new int[ncell]; int offset=0; MESSAGE("Reading cell global numbering for mesh "<< domain_id); @@ -141,7 +141,7 @@ throw (MEDMEM::MEDEXCEPTION) :_has_mesh_ownership(true) { MED_EN::medGeometryElement type=*iter; if (type/100 != _mesh->getMeshDimension()) continue; - int ntype = _mesh->getNumberOfElements(MED_EN::MED_CELL,type); + int ntype = _mesh->getNumberOfElementsWithPoly(MED_EN::MED_CELL,type); if (ntype==0) continue; med_2_3::MEDglobalNumLire(fid,meshname, array+offset, ntype, med_2_3::MED_MAILLE, (med_2_3::med_geometrie_element)type); @@ -157,7 +157,7 @@ throw (MEDMEM::MEDEXCEPTION) :_has_mesh_ownership(true) _nodeglobal=array; MESSAGE("Reading face global numbering for mesh "<getNumberOfElements(MED_EN::MED_FACE,MED_EN::MED_ALL_ELEMENTS); + int nbface=_mesh->getNumberOfElementsWithPoly(MED_EN::MED_FACE,MED_EN::MED_ALL_ELEMENTS); array=new int[nbface]; currentEntity = MED_EN::meshEntities.find(MED_EN::MED_FACE); offset=0; @@ -165,7 +165,7 @@ throw (MEDMEM::MEDEXCEPTION) :_has_mesh_ownership(true) { MED_EN::medGeometryElement type=*iter; if (type/100 != _mesh->getMeshDimension()-1) continue; - int ntype = _mesh->getNumberOfElements(MED_EN::MED_FACE,type); + int ntype = _mesh->getNumberOfElementsWithPoly(MED_EN::MED_FACE,type); if (ntype==0) continue; med_2_3::MEDglobalNumLire(fid,meshname, array+offset, ntype, med_2_3::MED_FACE, (med_2_3::med_geometrie_element)type); @@ -202,16 +202,17 @@ throw (MEDMEM::MEDEXCEPTION) :_has_mesh_ownership(true) ParaMESH::ParaMESH(MEDMEM::MESH& subdomain_mesh, const ProcessorGroup& proc_group, const string& name): _mesh(&subdomain_mesh), _my_domain_id(proc_group.myRank()), - _block_topology (new BlockTopology(proc_group, subdomain_mesh.getNumberOfElements(MED_EN::MED_CELL,MED_EN::MED_ALL_ELEMENTS))), + _block_topology (new BlockTopology(proc_group, subdomain_mesh.getNumberOfElementsWithPoly(MED_EN::MED_CELL,MED_EN::MED_ALL_ELEMENTS))), _has_mesh_ownership(false) { ostringstream stream; stream<localToGlobal(make_pair(_my_domain_id,0)); - for (int i=0; i