X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDCoupling%2FMEDCouplingNormalizedUnstructuredMesh.txx;h=111b6186cb3776cf513ac447c6d1a7bef740cd51;hb=e66b6e2d02fe4b9e544deb731cc68d070382029c;hp=2ba9ee1d7e9b52d2d25f4ca4043581452c41dbce;hpb=1123dccd6613b2e8abba35182759d5c4a11ecc8d;p=tools%2Fmedcoupling.git diff --git a/src/MEDCoupling/MEDCouplingNormalizedUnstructuredMesh.txx b/src/MEDCoupling/MEDCouplingNormalizedUnstructuredMesh.txx index 2ba9ee1d7..111b6186c 100644 --- a/src/MEDCoupling/MEDCouplingNormalizedUnstructuredMesh.txx +++ b/src/MEDCoupling/MEDCouplingNormalizedUnstructuredMesh.txx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 CEA/DEN, EDF R&D +// Copyright (C) 2007-2016 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -22,6 +22,7 @@ #define __MEDCOUPLINGNORMALIZEDUNSTRUCTUREDMESH_TXX__ #include "MEDCouplingNormalizedUnstructuredMesh.hxx" +#include "InterpKernelAssert.hxx" #include "MEDCouplingUMesh.hxx" #include "MEDCoupling1GTUMesh.hxx" @@ -30,7 +31,7 @@ #include template -MEDCouplingNormalizedUnstructuredMesh::MEDCouplingNormalizedUnstructuredMesh(const ParaMEDMEM::MEDCouplingPointSet *mesh):_mesh(mesh) +MEDCouplingNormalizedUnstructuredMesh::MEDCouplingNormalizedUnstructuredMesh(const MEDCoupling::MEDCouplingPointSet *mesh):_mesh(mesh) { if(_mesh) _mesh->incrRef(); @@ -45,7 +46,7 @@ void MEDCouplingNormalizedUnstructuredMesh::getBoundingBox(dou boundingBox[i]=std::numeric_limits::max(); boundingBox[SPACEDIM+i]=-std::numeric_limits::max(); } - const ParaMEDMEM::DataArrayDouble *array=_mesh->getCoords(); + const MEDCoupling::DataArrayDouble *array=_mesh->getCoords(); const double *ptr=array->getConstPointer(); int nbOfPts=array->getNbOfElems()/SPACEDIM; for(int j=0;j::getConnectiv template const double *MEDCouplingNormalizedUnstructuredMesh::getCoordinatesPtr() const { - const ParaMEDMEM::DataArrayDouble *array=_mesh->getCoords(); + const MEDCoupling::DataArrayDouble *array=_mesh->getCoords(); return array->getConstPointer(); } @@ -124,7 +125,8 @@ MEDCouplingNormalizedUnstructuredMesh::~MEDCouplingNormalizedU template void MEDCouplingNormalizedUnstructuredMesh::prepare() { - const ParaMEDMEM::MEDCouplingUMesh *m1(dynamic_cast(_mesh)); + IKAssert(_mesh->getSpaceDimension()==SPACEDIM); + const MEDCoupling::MEDCouplingUMesh *m1(dynamic_cast(_mesh)); if(m1) { int nbOfCell=m1->getNumberOfCells(); @@ -147,7 +149,7 @@ void MEDCouplingNormalizedUnstructuredMesh::prepare() } return ; } - const ParaMEDMEM::MEDCoupling1DGTUMesh *m2(dynamic_cast(_mesh)); + const MEDCoupling::MEDCoupling1DGTUMesh *m2(dynamic_cast(_mesh)); if(m2) { int nbOfCell(m2->getNumberOfCells()); @@ -158,7 +160,7 @@ void MEDCouplingNormalizedUnstructuredMesh::prepare() std::copy(m2->getNodalConnectivity()->begin(),m2->getNodalConnectivity()->end(),_conn_for_interp); return ; } - const ParaMEDMEM::MEDCoupling1SGTUMesh *m3(dynamic_cast(_mesh)); + const MEDCoupling::MEDCoupling1SGTUMesh *m3(dynamic_cast(_mesh)); if(m3) { int nbOfCell(m3->getNumberOfCells()),nbNodesPerCell(m3->getNumberOfNodesPerCell());