Skip to content

Commit

Permalink
Fix #if guard
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwoerer committed Nov 8, 2024
1 parent adf3e51 commit 0619ffe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mesh/parallel/fci.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ std::string parallel_slice_field_name(std::string field, int offset) {
return direction + "_" + field + slice_suffix;
};

#if BOUT_USE_METRIC3D
#if BOUT_USE_METRIC_3D
bool load_parallel_metric_component(std::string name, Field3D& component, int offset,
bool doZero) {
Mesh* mesh = component.getMesh();
Expand Down Expand Up @@ -105,7 +105,7 @@ bool load_parallel_metric_component(std::string name, Field3D& component, int of
#endif

void load_parallel_metric_components([[maybe_unused]] Coordinates* coords, [[maybe_unused]] int offset){
#if BOUT_USE_METRIC3D
#if BOUT_USE_METRIC_3D
#define LOAD_PAR(var, doZero) \
load_parallel_metric_component(#var, coords->var, offset, doZero)
LOAD_PAR(g11, false);
Expand Down

0 comments on commit 0619ffe

Please sign in to comment.