Salome HOME
MEDFileCurveLinearMesh -> getSpaceDimension() was missing
[tools/medcoupling.git] / src / MEDLoader / MEDFileMesh.cxx
index 076c7c1776044156b20fb9787b48b4dc350f65bc..10a17bc428c79fe567610794b5d93465ba1f542e 100644 (file)
@@ -7131,10 +7131,17 @@ MEDFileCurveLinearMesh *MEDFileCurveLinearMesh::deepCopy() const
 int MEDFileCurveLinearMesh::getMeshDimension() const
 {
   if(!((const MEDCouplingCurveLinearMesh*)_clmesh))
-    throw INTERP_KERNEL::Exception("MEDFileCurveLinearMesh::getMeshDimension : unable to get meshdimension because no mesh set !");
+    throw INTERP_KERNEL::Exception("MEDFileCurveLinearMesh::getMeshDimension : unable to get mesh dimension because no mesh set !");
   return _clmesh->getMeshDimension();
 }
 
+int MEDFileCurveLinearMesh::getSpaceDimension() const
+{
+  if(!((const MEDCouplingCurveLinearMesh*)_clmesh))
+    throw INTERP_KERNEL::Exception("MEDFileCurveLinearMesh::getMeshDimension : unable to get space dimension because no mesh set !");
+  return _clmesh->getSpaceDimension();
+}
+
 std::string MEDFileCurveLinearMesh::simpleRepr() const
 {
   return MEDFileStructuredMesh::simpleRepr();