Salome HOME
DGTUMesh with no cells can be now converted into umesh
[tools/medcoupling.git] / src / MEDCoupling / MEDCouplingFieldDouble.cxx
index d86ec428ac898fe1d94c213aac5285fdc3730ab9..b3e56754cf4500cf5471c161809501b9eb8d5630 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2015  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2016  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -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());
 }