From: ageay Date: Thu, 25 Nov 2010 07:18:56 +0000 (+0000) Subject: Porting on MEDFile3 A2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1ce1e7d82695b506505ccd0f71f721d6446320e9;p=tools%2Fmedcoupling.git Porting on MEDFile3 A2 --- diff --git a/src/MEDLoader/MEDLoader.cxx b/src/MEDLoader/MEDLoader.cxx index d7ecf682a..e56d4e665 100644 --- a/src/MEDLoader/MEDLoader.cxx +++ b/src/MEDLoader/MEDLoader.cxx @@ -28,37 +28,6 @@ extern "C" { #include "med.h" - med_err MEDfieldComputingStepInfo(const med_idt fid, - const char * const fieldname, - const int csit, - med_int * const numdt, - med_int * const numit, - med_float * const dt); - - med_err MEDmeshEntityFamilyNumberRd(const med_idt fid, - const char* const meshname, - const med_int numdt, - const med_int numit, - const med_entity_type entitype, - const med_geometry_type geotype, - med_int * const number); - - med_err MEDmeshEntityNumberRd(const med_idt fid, - const char* const meshname, - const med_int numdt, - const med_int numit, - const med_entity_type entitype, - const med_geometry_type geotype, - med_int * const number); - - med_err MEDfieldCr( const med_idt fid, - const char * const fieldname, - const med_field_type fieldtype, - const med_int nbofcomponent, - const char * const componentname, - const char * const componentunit, - const char * const dtunit, - const char * const meshname); } #include @@ -84,8 +53,8 @@ med_geometry_type typmai[MED_NOF_CELL_PREDEFINED_TYPES+2] = { MED_POINT1, MED_PENTA15, MED_PYRA5, MED_PYRA13, - MED_POLYGONE, - MED_POLYEDRE }; + MED_POLYGON, + MED_POLYHEDRON }; med_geometry_type typmainoeud[1] = { MED_NONE }; @@ -112,7 +81,7 @@ med_geometry_type typmai3[32] = { MED_POINT1,//0 MED_SEG3,//2 MED_TRIA3,//3 MED_QUAD4,//4 - MED_POLYGONE,//5 + MED_POLYGON,//5 MED_TRIA6,//6 MED_NONE,//7 MED_QUAD8,//8 @@ -138,7 +107,7 @@ med_geometry_type typmai3[32] = { MED_POINT1,//0 MED_NONE,//28 MED_NONE,//29 MED_HEXA20,//30 - MED_POLYEDRE//31 + MED_POLYHEDRON//31 }; double MEDLoader::_EPS_FOR_NODE_COMP=1.e-12; @@ -1960,7 +1929,7 @@ void MEDLoaderNS::writeUMeshesDirectly(const char *fileName, const std::vector fam; std::vector renumber; int nbOfElt=MEDLoaderNS::buildMEDSubConnectivityOfOneType(conn,connIndex,families,curType,medConn,medConnIndex,medConnIndex2,fam,renumber); - if(curMedType!=MED_POLYGONE && curMedType!=MED_POLYEDRE) + if(curMedType!=MED_POLYGON && curMedType!=MED_POLYHEDRON) MEDmeshElementConnectivityWr(fid,maa,-1,-1,0.,MED_CELL,curMedType,MED_NODAL,MED_FULL_INTERLACE,nbOfElt,&medConn[0]); else {