From: ageay Date: Mon, 18 Oct 2010 11:04:28 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: Step0_WithoutSPLITTER~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=643f80c0c693c35bef859ce0353b36773495c6df;p=tools%2Fmedcoupling.git *** empty log message *** --- diff --git a/src/MEDLoader/MEDLoader.cxx b/src/MEDLoader/MEDLoader.cxx index 259de19fa..43a7941ac 100644 --- a/src/MEDLoader/MEDLoader.cxx +++ b/src/MEDLoader/MEDLoader.cxx @@ -1089,13 +1089,15 @@ void MEDLoaderNS::readUMeshDataInMedFile(med_idt fid, med_int meshId, DataArrayD med_int numdt,numit; med_float dt; med_bool changement,transformation; - MEDmeshComputationStepInfo(fid,nommaa,1,&numdt,&numit,&dt); // endlimitation - int spaceDim=std::max((int)Mdim,(int)Sdim); - int nCoords=MEDmeshnEntity(fid,nommaa,numdt,numit,MED_NODE,MED_NONE,MED_COORDINATE,MED_NO_CMODE,&changement,&transformation); + Sdim=MEDmeshnAxis(fid,1); char *comp=MEDLoaderBase::buildEmptyString(Sdim*MED_SNAME_SIZE); char *unit=MEDLoaderBase::buildEmptyString(Sdim*MED_SNAME_SIZE); MEDmeshInfo(fid,meshId,nommaa,&Sdim,&Mdim,&type_maillage,maillage_description,dt_unit,&sortingType,&nstep,&axisType,comp,unit); + delete [] dt_unit; + MEDmeshComputationStepInfo(fid,nommaa,1,&numdt,&numit,&dt); + int spaceDim=std::max((int)Mdim,(int)Sdim); + int nCoords=MEDmeshnEntity(fid,nommaa,numdt,numit,MED_NODE,MED_NONE,MED_COORDINATE,MED_NO_CMODE,&changement,&transformation); // limitation if(nstep!=1) { @@ -1128,7 +1130,7 @@ void MEDLoaderNS::readUMeshDataInMedFile(med_idt fid, med_int meshId, DataArrayD MEDLoader::MEDConnOfOneElemType elem(typmai2[i],connTab,0,fam,curNbOfElem,-1); int *tmp=new int[curNbOfElem]; char *noms=new char[MED_SNAME_SIZE*curNbOfElem+1]; - med_bool withname,withnumber,withfam; + med_bool withname=MED_FALSE,withnumber=MED_FALSE,withfam=MED_FALSE; int *globArr=new int[curNbOfElem]; MEDmeshElementRd(fid,nommaa,numdt,numit,whichEntity,curMedType,MED_NODAL,MED_FULL_INTERLACE,connTab,&withname,noms,&withnumber,globArr,&withfam,fam); delete [] tmp;