From 96c99a3cc3818cc2e052abba2a9e4c99e47d228a Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 16 Dec 2009 13:19:10 +0000 Subject: [PATCH] EHPOC Interpolators Dimension of cartesian mesh == space dimension --- .../MEDCouplingNormalizedCartesianMesh.hxx | 4 ++-- .../MEDCouplingNormalizedCartesianMesh.txx | 20 +++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/MEDCoupling/MEDCouplingNormalizedCartesianMesh.hxx b/src/MEDCoupling/MEDCouplingNormalizedCartesianMesh.hxx index 70dc2686d..0f59f1407 100644 --- a/src/MEDCoupling/MEDCouplingNormalizedCartesianMesh.hxx +++ b/src/MEDCoupling/MEDCouplingNormalizedCartesianMesh.hxx @@ -26,12 +26,12 @@ namespace ParaMEDMEM class MEDCouplingCMesh; } -template +template class MEDCouplingNormalizedCartesianMesh : public INTERP_KERNEL::GenericMesh { public: static const int MY_SPACEDIM=SPACEDIM; - static const int MY_MESHDIM=MESHDIM; + static const int MY_MESHDIM=SPACEDIM; typedef int MyConnType; static const INTERP_KERNEL::NumberingPolicy My_numPol=INTERP_KERNEL::ALL_C_MODE; public: diff --git a/src/MEDCoupling/MEDCouplingNormalizedCartesianMesh.txx b/src/MEDCoupling/MEDCouplingNormalizedCartesianMesh.txx index 16b715337..2e82d28fe 100644 --- a/src/MEDCoupling/MEDCouplingNormalizedCartesianMesh.txx +++ b/src/MEDCoupling/MEDCouplingNormalizedCartesianMesh.txx @@ -24,34 +24,34 @@ #include "MEDCouplingNormalizedCartesianMesh.hxx" #include "MEDCouplingCMesh.hxx" -template -MEDCouplingNormalizedCartesianMesh::MEDCouplingNormalizedCartesianMesh(ParaMEDMEM::MEDCouplingCMesh *mesh):_mesh(mesh) +template +MEDCouplingNormalizedCartesianMesh::MEDCouplingNormalizedCartesianMesh(ParaMEDMEM::MEDCouplingCMesh *mesh):_mesh(mesh) { if(_mesh) _mesh->incrRef(); } -template -MEDCouplingNormalizedCartesianMesh::~MEDCouplingNormalizedCartesianMesh() +template +MEDCouplingNormalizedCartesianMesh::~MEDCouplingNormalizedCartesianMesh() { if(_mesh) _mesh->decrRef(); } -template -unsigned long MEDCouplingNormalizedCartesianMesh::getNumberOfElements() const +template +unsigned long MEDCouplingNormalizedCartesianMesh::getNumberOfElements() const { return _mesh->getNumberOfCells(); } -template -unsigned long MEDCouplingNormalizedCartesianMesh::nbCellsAlongAxis(int axis) const +template +unsigned long MEDCouplingNormalizedCartesianMesh::nbCellsAlongAxis(int axis) const { return _mesh->getCoordsAt(axis)->getNumberOfTuples() - 1; } -template -const double * MEDCouplingNormalizedCartesianMesh::getCoordsAlongAxis(int axis) const +template +const double * MEDCouplingNormalizedCartesianMesh::getCoordsAlongAxis(int axis) const { return _mesh->getCoordsAt(axis)->getConstPointer(); } -- 2.39.2