Salome HOME
DGTUMesh with no cells can be now converted into umesh
[tools/medcoupling.git] / src / MEDCoupling / MEDCouplingFieldDouble.cxx
index fd1fd062f64d937c24957ff14548dd9c2df71034..b3e56754cf4500cf5471c161809501b9eb8d5630 100644 (file)
@@ -924,10 +924,7 @@ MEDCouplingFieldDouble::~MEDCouplingFieldDouble()
  */
 void MEDCouplingFieldDouble::checkConsistencyLight() const
 {
-  if(!_mesh)
-    throw INTERP_KERNEL::Exception("Field invalid because no mesh specified !");
-  if(!((const MEDCouplingFieldDiscretization *)_type))
-    throw INTERP_KERNEL::Exception("MEDCouplingFieldDouble::checkConsistencyLight : no spatial discretization !");
+  MEDCouplingField::checkConsistencyLight();
   _time_discr->checkConsistencyLight();
   _type->checkCoherencyBetween(_mesh,getArray());
 }