From dca85987a4df8c6bdbd0f1d0c41b78362841a3ec Mon Sep 17 00:00:00 2001 From: tomc271 Date: Tue, 1 Oct 2024 13:26:52 +0100 Subject: [PATCH] Improve readability of preprocessor directive --- include/bout/coordinates.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bout/coordinates.hxx b/include/bout/coordinates.hxx index b964c62fce..078912a3ac 100644 --- a/include/bout/coordinates.hxx +++ b/include/bout/coordinates.hxx @@ -154,7 +154,7 @@ public: const BoutReal& g_13(int x, int y, int z) const { return covariantMetricTensor.g13(x, y, z); } const BoutReal& g_23(int x, int y, int z) const { return covariantMetricTensor.g23(x, y, z); } -#if BOUT_USE_METRIC_3D != 1 +#if not(BOUT_USE_METRIC_3D) const BoutReal& g_11(int x, int y) const { return covariantMetricTensor.g11(x, y); } const BoutReal& g_22(int x, int y) const { return covariantMetricTensor.g22(x, y); } const BoutReal& g_33(int x, int y) const { return covariantMetricTensor.g33(x, y); }