From 11f4b669e2d5ed7abbba2761a178d5e25391984a Mon Sep 17 00:00:00 2001 From: ageay Date: Fri, 26 Feb 2010 13:21:25 +0000 Subject: [PATCH] Optimization. --- src/MEDCoupling/MEDCouplingField.cxx | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.2