From: ageay Date: Tue, 30 Jul 2013 10:34:20 +0000 (+0000) Subject: MEDReader -> debugging session X-Git-Tag: V7_3_1b1~252 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=519194e7f5cab5546af9772cc50330dd43e067f1;p=tools%2Fmedcoupling.git MEDReader -> debugging session --- diff --git a/src/MEDLoader/MEDFileFieldOverView.cxx b/src/MEDLoader/MEDFileFieldOverView.cxx index e8d6f8b7c..674a29cbd 100644 --- a/src/MEDLoader/MEDFileFieldOverView.cxx +++ b/src/MEDLoader/MEDFileFieldOverView.cxx @@ -712,8 +712,9 @@ MEDCMeshMultiLev::MEDCMeshMultiLev(const MEDFileCMesh *m, const std::vectorgetMeshDimension())); - if(mdim!=gts[0]) + int mdim(m->getMeshDimension()); + INTERP_KERNEL::NormalizedCellType gt(MEDCouplingStructuredMesh::GetGeoTypeGivenMeshDimension(mdim)); + if(gt!=gts[0]) throw INTERP_KERNEL::Exception("MEDCMeshMultiLev constructor 2 : the unique geo type is invalid regarding meshdim !"); _coords.resize(mdim); for(int i=0;i(p)) ret=SWIG_NewPointerObj((void*)p,SWIGTYPE_p_ParaMEDMEM__MEDCMeshMultiLev,owner); - if(dynamic_cast(p)) - ret=SWIG_NewPointerObj((void*)p,SWIGTYPE_p_ParaMEDMEM__MEDStructuredMeshMultiLev,owner); + if(dynamic_cast(p)) + ret=SWIG_NewPointerObj((void*)p,SWIGTYPE_p_ParaMEDMEM__MEDCurveLinearMeshMultiLev,owner); if(!ret) throw INTERP_KERNEL::Exception("Not recognized type of MEDMeshMultiLev on downcast !"); return ret;