From ececfb831dff6ae17aff36924fe01e97c9eeb7d7 Mon Sep 17 00:00:00 2001 From: David Bold Date: Wed, 6 Nov 2024 16:46:26 +0100 Subject: [PATCH] Apply suggestions from clang-tidy --- include/bout/mesh.hxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/bout/mesh.hxx b/include/bout/mesh.hxx index c1a6a1336d..ed9f6f8d60 100644 --- a/include/bout/mesh.hxx +++ b/include/bout/mesh.hxx @@ -651,7 +651,7 @@ public: /// Returns the non-CELL_CENTRE location /// allowed as a staggered location - CELL_LOC getAllowedStaggerLoc(DIRECTION direction) const { + static CELL_LOC getAllowedStaggerLoc(DIRECTION direction) { AUTO_TRACE(); switch (direction) { case (DIRECTION::X): @@ -860,8 +860,7 @@ private: /// (useful if CELL_CENTRE Coordinates have been changed, so reading from file /// would not be correct). std::shared_ptr - createDefaultCoordinates(const CELL_LOC location, - bool force_interpolate_from_centre = false); + createDefaultCoordinates(CELL_LOC location, bool force_interpolate_from_centre = false); //Internal region related information std::map regionMap3D;