From: ageay Date: Wed, 16 Feb 2011 15:46:23 +0000 (+0000) Subject: To make happy MED file generated even if it is a bug. X-Git-Tag: V6_main_FINAL~1069 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=947d0bbee1437b0fe238eec07ca45d1636020d67;p=tools%2Fmedcoupling.git To make happy MED file generated even if it is a bug. --- diff --git a/src/MEDLoader/MEDFileMesh.cxx b/src/MEDLoader/MEDFileMesh.cxx index ed3a84708..66f27e2e5 100644 --- a/src/MEDLoader/MEDFileMesh.cxx +++ b/src/MEDLoader/MEDFileMesh.cxx @@ -112,7 +112,7 @@ void MEDFileUMesh::write(const char *fileName, int mode) const throw(INTERP_KERN MEDLoaderBase::safeStrCpy(_desc_name.c_str(),MED_TAILLE_DESC,desc,_too_long_str); int spaceDim=coo?coo->getNumberOfComponents():0; int mdim=getMeshDimension(); - MEDmaaCr(fid,maa,mdim,MED_NON_STRUCTURE,desc); + MEDmaaCr(fid,maa,spaceDim,MED_NON_STRUCTURE,desc);//spaceDim is false but to make reader happy for 3DSurf and 2DCurve meshes ! MEDdimEspaceCr(fid,maa,spaceDim); MEDFileUMeshL2::writeCoords(fid,maa,_coords,_fam_coords,_num_coords); for(std::vector< MEDCouplingAutoRefCountObjectPtr >::const_iterator it=_ms.begin();it!=_ms.end();it++)