]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
*** empty log message ***
authorageay <ageay>
Tue, 7 Dec 2010 14:00:39 +0000 (14:00 +0000)
committerageay <ageay>
Tue, 7 Dec 2010 14:00:39 +0000 (14:00 +0000)
src/MEDLoader/MEDLoader.cxx
src/MEDLoader/Swig/MEDLoaderDataForTest.py

index 000602cf61d57f3b90ce5d19754f8eb8e9cd6400..61690247e9b1bd2b088157ed3ed6bec8f862f42e 100644 (file)
@@ -1709,6 +1709,8 @@ int MEDLoaderNS::buildMEDSubConnectivityOfOneType(const std::vector<const DataAr
 MEDCouplingUMesh *MEDLoaderNS::readUMeshFromFileLev1(const char *fileName, const char *meshName, int meshDimRelToMax, const std::vector<int>& ids,
                                                      const std::vector<INTERP_KERNEL::NormalizedCellType>& 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;
index 2ec4ac83720cc60ebddefcb87a0913bfd7b4c464..07859105b9058bcf8788bd4b1a20ce88202fdf3d 100644 (file)
@@ -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: