]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Optimization.
authorageay <ageay>
Fri, 26 Feb 2010 13:21:25 +0000 (13:21 +0000)
committerageay <ageay>
Fri, 26 Feb 2010 13:21:25 +0000 (13:21 +0000)
src/MEDCoupling/MEDCouplingField.cxx

index 682d5b3c6ee8fed348013f2c68234e1e621c4afd..ddbee6a07da8a1d9abeaf211bbde256ce10628ef 100644 (file)
@@ -43,6 +43,8 @@ bool MEDCouplingField::areCompatible(const MEDCouplingField *other) const
 {
   if(!_type->isEqual(other->_type))
     return false;
+  if(_mesh==other->_mesh)
+    return true;
   if(!_mesh->areCompatible(other->_mesh))
     return false;
   return true;