From: ageay Date: Mon, 24 Jan 2011 15:49:57 +0000 (+0000) Subject: To check with E.F. X-Git-Tag: V6_main_FINAL~1093 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dcb30c6d7b30154dc323f980512e5d9712679f24;p=tools%2Fmedcoupling.git To check with E.F. --- diff --git a/src/MEDLoader/MEDFileMesh.cxx b/src/MEDLoader/MEDFileMesh.cxx index 161d91214..ed3a84708 100644 --- a/src/MEDLoader/MEDFileMesh.cxx +++ b/src/MEDLoader/MEDFileMesh.cxx @@ -111,10 +111,10 @@ void MEDFileUMesh::write(const char *fileName, int mode) const throw(INTERP_KERN MEDLoaderBase::safeStrCpy(_name.c_str(),MED_TAILLE_NOM,maa,_too_long_str); MEDLoaderBase::safeStrCpy(_desc_name.c_str(),MED_TAILLE_DESC,desc,_too_long_str); int spaceDim=coo?coo->getNumberOfComponents():0; - MEDmaaCr(fid,maa,spaceDim,MED_NON_STRUCTURE,desc); + int mdim=getMeshDimension(); + MEDmaaCr(fid,maa,mdim,MED_NON_STRUCTURE,desc); MEDdimEspaceCr(fid,maa,spaceDim); MEDFileUMeshL2::writeCoords(fid,maa,_coords,_fam_coords,_num_coords); - int mdim=getMeshDimension(); for(std::vector< MEDCouplingAutoRefCountObjectPtr >::const_iterator it=_ms.begin();it!=_ms.end();it++) if((const MEDFileUMeshSplitL1 *)(*it)!=0) (*it)->write(fid,maa,mdim);