]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
CurveLinearMesh 2
authorageay <ageay>
Thu, 7 Feb 2013 14:59:54 +0000 (14:59 +0000)
committerageay <ageay>
Thu, 7 Feb 2013 14:59:54 +0000 (14:59 +0000)
src/MEDLoader/MEDFileMesh.cxx

index e2172ccf7895befcafa6150acc6f3bd1c217b449..987e61bd07dd86be49611719a5a66419c9c4e603 100644 (file)
@@ -80,6 +80,12 @@ MEDFileMesh *MEDFileMesh::New(const char *fileName) throw(INTERP_KERNEL::Excepti
         ret->loadCMeshFromFile(fid,ms.front().c_str(),dt,it);
         return (MEDFileCMesh *)ret.retn();
       }
+    case CURVE_LINEAR:
+      {
+        MEDCouplingAutoRefCountObjectPtr<MEDFileCurveLinearMesh> ret=MEDFileCurveLinearMesh::New();
+        ret->loadCLMeshFromFile(fid,ms.front().c_str(),dt,it);
+        return (MEDFileCMesh *)ret.retn();
+      }
     default:
       {
         std::ostringstream oss; oss << "MEDFileMesh::New : MED file exists and has mesh '" << ms.front() << "' exists but unsupported type yet !";