]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
To make happy MED file generated even if it is a bug.
authorageay <ageay>
Wed, 16 Feb 2011 15:46:23 +0000 (15:46 +0000)
committerageay <ageay>
Wed, 16 Feb 2011 15:46:23 +0000 (15:46 +0000)
src/MEDLoader/MEDFileMesh.cxx

index ed3a847084782d307c891c522293d2cbe5760574..66f27e2e5759707443c14b1c39388c3173a631ce 100644 (file)
@@ -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<MEDFileUMeshSplitL1> >::const_iterator it=_ms.begin();it!=_ms.end();it++)