Skip to content

Commit

Permalink
Improve readability of preprocessor directive
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchapman committed Oct 1, 2024
1 parent 4852b00 commit dca8598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/bout/coordinates.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -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); }
Expand Down

0 comments on commit dca8598

Please sign in to comment.