From 6172109e1cf9342a93ef88bd9291477099181e38 Mon Sep 17 00:00:00 2001 From: ageay Date: Fri, 8 Mar 2013 16:15:06 +0000 Subject: [PATCH] Some little imp to be protected against modification during interpolation --- src/MEDCoupling/MEDCouplingNormalizedCartesianMesh.hxx | 4 ++-- src/MEDCoupling/MEDCouplingNormalizedCartesianMesh.txx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MEDCoupling/MEDCouplingNormalizedCartesianMesh.hxx b/src/MEDCoupling/MEDCouplingNormalizedCartesianMesh.hxx index a0ef2a550..64c97d5f5 100644 --- a/src/MEDCoupling/MEDCouplingNormalizedCartesianMesh.hxx +++ b/src/MEDCoupling/MEDCouplingNormalizedCartesianMesh.hxx @@ -37,7 +37,7 @@ public: typedef int MyConnType; static const INTERP_KERNEL::NumberingPolicy My_numPol=INTERP_KERNEL::ALL_C_MODE; public: - MEDCouplingNormalizedCartesianMesh(ParaMEDMEM::MEDCouplingCMesh *mesh); + MEDCouplingNormalizedCartesianMesh(const ParaMEDMEM::MEDCouplingCMesh *mesh); //void getBoundingBox(double *boundingBox) const; //INTERP_KERNEL::NormalizedCellType getTypeOfElement(int eltId) const; //unsigned char getNumberOfNodesOfElement(int eltId) const; @@ -47,7 +47,7 @@ public: const double * getCoordsAlongAxis(int axis) const; ~MEDCouplingNormalizedCartesianMesh(); private: - ParaMEDMEM::MEDCouplingCMesh *_mesh; + const ParaMEDMEM::MEDCouplingCMesh *_mesh; }; #endif diff --git a/src/MEDCoupling/MEDCouplingNormalizedCartesianMesh.txx b/src/MEDCoupling/MEDCouplingNormalizedCartesianMesh.txx index bb54d1965..0567c3e35 100644 --- a/src/MEDCoupling/MEDCouplingNormalizedCartesianMesh.txx +++ b/src/MEDCoupling/MEDCouplingNormalizedCartesianMesh.txx @@ -25,7 +25,7 @@ #include "MEDCouplingCMesh.hxx" template -MEDCouplingNormalizedCartesianMesh::MEDCouplingNormalizedCartesianMesh(ParaMEDMEM::MEDCouplingCMesh *mesh):_mesh(mesh) +MEDCouplingNormalizedCartesianMesh::MEDCouplingNormalizedCartesianMesh(const ParaMEDMEM::MEDCouplingCMesh *mesh):_mesh(mesh) { if(_mesh) _mesh->incrRef(); -- 2.39.2