Skip to content

Commit

Permalink
Set parallel slices only for 3D metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwoerer committed Nov 6, 2024
1 parent c9124f6 commit adf3e51
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/mesh/parallel/fci.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ std::string parallel_slice_field_name(std::string field, int offset) {
return direction + "_" + field + slice_suffix;
};

#if BOUT_USE_METRIC3D
bool load_parallel_metric_component(std::string name, Field3D& component, int offset,
bool doZero) {
Mesh* mesh = component.getMesh();
Expand Down Expand Up @@ -101,8 +102,10 @@ bool load_parallel_metric_component(std::string name, Field3D& component, int of
}
return isValid;
}
#endif

void load_parallel_metric_components(Coordinates* coords, int offset){
void load_parallel_metric_components([[maybe_unused]] Coordinates* coords, [[maybe_unused]] int offset){
#if BOUT_USE_METRIC3D
#define LOAD_PAR(var, doZero) \
load_parallel_metric_component(#var, coords->var, offset, doZero)
LOAD_PAR(g11, false);
Expand Down Expand Up @@ -139,6 +142,7 @@ void load_parallel_metric_components(Coordinates* coords, int offset){
BOUT_FOR(i, J.getRegion(rgn)) { pcom[i] = J[i]; }
}
#undef LOAD_PAR
#endif
}

} // namespace
Expand Down

0 comments on commit adf3e51

Please sign in to comment.