From aae17416970c3ff5c7b99f9f7482d69d6d3b1a63 Mon Sep 17 00:00:00 2001 From: michael Date: Sat, 28 Nov 2020 20:43:00 +0100 Subject: [PATCH] Function minratiosurfvol is const --- CDMATH/mesh/inc/Mesh.hxx | 2 +- CDMATH/mesh/src/Mesh.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CDMATH/mesh/inc/Mesh.hxx b/CDMATH/mesh/inc/Mesh.hxx index 5a9deff..b5a69d8 100644 --- a/CDMATH/mesh/inc/Mesh.hxx +++ b/CDMATH/mesh/inc/Mesh.hxx @@ -348,7 +348,7 @@ public: //---------------------------------------------------------------- /** * \brief Compute the minimum value over all cells of the ratio cell perimeter/cell vaolume */ - double minRatioVolSurf(); + double minRatioVolSurf() const; /** * \brief Compute the maximum number of neighbours around an element (cells around a cell or nodes around a node) diff --git a/CDMATH/mesh/src/Mesh.cxx b/CDMATH/mesh/src/Mesh.cxx index b1eb216..1b1d4fe 100644 --- a/CDMATH/mesh/src/Mesh.cxx +++ b/CDMATH/mesh/src/Mesh.cxx @@ -1916,7 +1916,7 @@ bool Mesh::isIndexFacePeriodicSet() const } //---------------------------------------------------------------------- double -Mesh::minRatioVolSurf() +Mesh::minRatioVolSurf() const { double dx_min = 1e30; for(int i=0; i<_numberOfCells; i++) -- 2.39.2