From 65bf63d88f658af3115abff7180fd30991279c98 Mon Sep 17 00:00:00 2001 From: ageay Date: Tue, 7 Dec 2010 14:00:39 +0000 Subject: [PATCH] *** empty log message *** --- src/MEDLoader/MEDLoader.cxx | 2 ++ src/MEDLoader/Swig/MEDLoaderDataForTest.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/MEDLoader/MEDLoader.cxx b/src/MEDLoader/MEDLoader.cxx index 000602cf6..61690247e 100644 --- a/src/MEDLoader/MEDLoader.cxx +++ b/src/MEDLoader/MEDLoader.cxx @@ -1709,6 +1709,8 @@ int MEDLoaderNS::buildMEDSubConnectivityOfOneType(const std::vector& ids, const std::vector& typesToKeep, unsigned& meshDimExtract, int *&cellRenum) throw(INTERP_KERNEL::Exception) { + if(meshDimRelToMax>0) + throw INTERP_KERNEL::Exception("meshDimRelToMax must be <=0 !"); //Extraction data from MED file. med_idt fid=MEDouvrir((char *)fileName,MED_LECTURE); std::string trueMeshName; diff --git a/src/MEDLoader/Swig/MEDLoaderDataForTest.py b/src/MEDLoader/Swig/MEDLoaderDataForTest.py index 2ec4ac837..07859105b 100644 --- a/src/MEDLoader/Swig/MEDLoaderDataForTest.py +++ b/src/MEDLoader/Swig/MEDLoaderDataForTest.py @@ -18,7 +18,7 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -from libMEDLoader_Swig import * +from MEDLoader import * from math import pi,e,sqrt class MEDLoaderDataForTest: -- 2.39.2