From: ageay Date: Fri, 8 Mar 2013 16:15:06 +0000 (+0000) Subject: Some little imp to be protected against modification during interpolation X-Git-Tag: V6_main_FINAL~310 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6172109e1cf9342a93ef88bd9291477099181e38;p=tools%2Fmedcoupling.git Some little imp to be protected against modification during interpolation --- 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();