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;
const double * getCoordsAlongAxis(int axis) const;
~MEDCouplingNormalizedCartesianMesh();
private:
- ParaMEDMEM::MEDCouplingCMesh *_mesh;
+ const ParaMEDMEM::MEDCouplingCMesh *_mesh;
};
#endif
#include "MEDCouplingCMesh.hxx"
template<int SPACEDIM>
-MEDCouplingNormalizedCartesianMesh<SPACEDIM>::MEDCouplingNormalizedCartesianMesh(ParaMEDMEM::MEDCouplingCMesh *mesh):_mesh(mesh)
+MEDCouplingNormalizedCartesianMesh<SPACEDIM>::MEDCouplingNormalizedCartesianMesh(const ParaMEDMEM::MEDCouplingCMesh *mesh):_mesh(mesh)
{
if(_mesh)
_mesh->incrRef();