]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Correcting of bug in FieldDouble::changeUnderlyingMesh.
authorageay <ageay>
Wed, 20 Apr 2011 17:04:22 +0000 (17:04 +0000)
committerageay <ageay>
Wed, 20 Apr 2011 17:04:22 +0000 (17:04 +0000)
src/MEDCoupling/MEDCouplingFieldDouble.cxx

index b9f457d36b430189687813f2692d38f3a40b92b2..09790aa7bac98eebb0d9d63d3a5fffc5bc43e4a8 100644 (file)
@@ -1092,7 +1092,7 @@ void MEDCouplingFieldDouble::changeUnderlyingMesh(const MEDCouplingMesh *other,
   if(_mesh==0 || other==0)
     throw INTERP_KERNEL::Exception("MEDCouplingFieldDouble::changeUnderlyingMesh : is expected to operate on not null meshes !");
   DataArrayInt *cellCor,*nodeCor;
-  _mesh->checkGeoEquivalWith(other,levOfCheck,prec,cellCor,nodeCor);
+  other->checkGeoEquivalWith(_mesh,levOfCheck,prec,cellCor,nodeCor);
   if(cellCor)
     {
       renumberCellsWithoutMesh(cellCor->getConstPointer(),false);