From 9eec2cc707406dfa5c4ab6f76faa26b216616bc0 Mon Sep 17 00:00:00 2001 From: ageay Date: Wed, 4 Nov 2009 16:01:09 +0000 Subject: [PATCH] Polys management in MEDMEM. --- doc/doxygen/interpkernel.dox | 2 +- .../MEDCouplingNormalizedUnstructuredMesh.hxx | 2 +- .../MEDCouplingNormalizedUnstructuredMesh.txx | 4 ++-- src/ParaMEDMEM/InterpolationMatrix.cxx | 12 ++++++------ 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/doc/doxygen/interpkernel.dox b/doc/doxygen/interpkernel.dox index deba6a461..afe4b70c3 100644 --- a/doc/doxygen/interpkernel.dox +++ b/doc/doxygen/interpkernel.dox @@ -182,7 +182,7 @@ rules : -# \code const MyConnType *getConnectivityPtr() const \endcode -# \code const double *getCoordinatesPtr() const \endcode -# \code const MyConnType *getConnectivityIndexPtr() const \endcode - -# \code void ReleaseTempArrays() \endcode + -# \code void releaseTempArrays() \endcode - Formats of arrays - the array returned by \c getCoordinatesPtr must be a \b full \b interlace array. - the arrays returned by \c getConnectivityPtr and \c diff --git a/src/MEDCoupling/MEDCouplingNormalizedUnstructuredMesh.hxx b/src/MEDCoupling/MEDCouplingNormalizedUnstructuredMesh.hxx index 82c402f84..016dd675c 100644 --- a/src/MEDCoupling/MEDCouplingNormalizedUnstructuredMesh.hxx +++ b/src/MEDCoupling/MEDCouplingNormalizedUnstructuredMesh.hxx @@ -44,7 +44,7 @@ public: const int *getConnectivityPtr() const; const double *getCoordinatesPtr() const; const int *getConnectivityIndexPtr() const; - void ReleaseTempArrays(); + void releaseTempArrays(); ~MEDCouplingNormalizedUnstructuredMesh(); private: void prepare(); diff --git a/src/MEDCoupling/MEDCouplingNormalizedUnstructuredMesh.txx b/src/MEDCoupling/MEDCouplingNormalizedUnstructuredMesh.txx index 7b08b093a..64e8e9a24 100644 --- a/src/MEDCoupling/MEDCouplingNormalizedUnstructuredMesh.txx +++ b/src/MEDCoupling/MEDCouplingNormalizedUnstructuredMesh.txx @@ -100,7 +100,7 @@ const int *MEDCouplingNormalizedUnstructuredMesh::getConnectiv } template -void MEDCouplingNormalizedUnstructuredMesh::ReleaseTempArrays() +void MEDCouplingNormalizedUnstructuredMesh::releaseTempArrays() { delete [] _conn_for_interp; delete [] _conn_index_for_interp; @@ -113,7 +113,7 @@ MEDCouplingNormalizedUnstructuredMesh::~MEDCouplingNormalizedU { if(_mesh) _mesh->decrRef(); - ReleaseTempArrays(); + releaseTempArrays(); } template diff --git a/src/ParaMEDMEM/InterpolationMatrix.cxx b/src/ParaMEDMEM/InterpolationMatrix.cxx index 353f715cf..d272a1b34 100644 --- a/src/ParaMEDMEM/InterpolationMatrix.cxx +++ b/src/ParaMEDMEM/InterpolationMatrix.cxx @@ -121,8 +121,8 @@ namespace ParaMEDMEM INTERP_KERNEL::Interpolation3DSurf interpolator (*this); colSize=interpolator.interpolateMeshes(target_wrapper,source_wrapper,surfaces,interpMethod.c_str()); - target_wrapper.ReleaseTempArrays(); - source_wrapper.ReleaseTempArrays(); + target_wrapper.releaseTempArrays(); + source_wrapper.releaseTempArrays(); } else if ( distant_support.getMeshDimension() == 2 && distant_support.getSpaceDimension() == 2) @@ -132,8 +132,8 @@ namespace ParaMEDMEM INTERP_KERNEL::Interpolation2D interpolator (*this); colSize=interpolator.interpolateMeshes(target_wrapper,source_wrapper,surfaces,interpMethod.c_str()); - target_wrapper.ReleaseTempArrays(); - source_wrapper.ReleaseTempArrays(); + target_wrapper.releaseTempArrays(); + source_wrapper.releaseTempArrays(); } else if ( distant_support.getMeshDimension() == 3 && distant_support.getSpaceDimension() == 3 ) @@ -143,8 +143,8 @@ namespace ParaMEDMEM INTERP_KERNEL::Interpolation3D interpolator (*this); colSize=interpolator.interpolateMeshes(target_wrapper,source_wrapper,surfaces,interpMethod.c_str()); - target_wrapper.ReleaseTempArrays(); - source_wrapper.ReleaseTempArrays(); + target_wrapper.releaseTempArrays(); + source_wrapper.releaseTempArrays(); } else { -- 2.39.2