From: ageay Date: Fri, 26 Feb 2010 13:21:25 +0000 (+0000) Subject: Optimization. X-Git-Tag: V5_1_main_FINAL~179 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=11f4b669e2d5ed7abbba2761a178d5e25391984a;p=tools%2Fmedcoupling.git Optimization. --- diff --git a/src/MEDCoupling/MEDCouplingField.cxx b/src/MEDCoupling/MEDCouplingField.cxx index 682d5b3c6..ddbee6a07 100644 --- a/src/MEDCoupling/MEDCouplingField.cxx +++ b/src/MEDCoupling/MEDCouplingField.cxx @@ -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;