From 947d0bbee1437b0fe238eec07ca45d1636020d67 Mon Sep 17 00:00:00 2001 From: ageay Date: Wed, 16 Feb 2011 15:46:23 +0000 Subject: [PATCH] To make happy MED file generated even if it is a bug. --- src/MEDLoader/MEDFileMesh.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) -- 2.39.2