Skip to content

Commit

Permalink
EAMxx: fix bad usage of macro for IOP remapper
Browse files Browse the repository at this point in the history
SCREAM_MPI_ON_DEVICE is *always* defined
  • Loading branch information
bartgol committed Jan 21, 2025
1 parent a92269c commit a00b781
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/eamxx/src/share/grid/remap/iop_remapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void IOPRemapper::remap_fwd_impl ()
for (int i=0; i<m_num_fields; ++i) {
auto& f = m_single_col_fields[i];
int col_size = f.get_header().get_identifier().get_layout().size();
#ifdef SCREAM_MPI_ON_DEVICE
#if SCREAM_MPI_ON_DEVICE
m_comm.broadcast(f.get_internal_view_data<Real>(),col_size,root_id);
#else
if (iam_root) {
Expand Down
2 changes: 1 addition & 1 deletion components/eamxx/src/share/tests/iop_remapper_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ TEST_CASE("iop_remap")
if (comm.rank()==closest_rank) {
col.deep_copy(src.subfield(COL,closest_lid));
}
#ifdef SCREAM_MPI_ON_DEVICE
#if SCREAM_MPI_ON_DEVICE
comm.broadcast(col.get_internal_view_data<Real>(),col_size,closest_rank);
#else
col.sync_to_host();
Expand Down

0 comments on commit a00b781

Please sign in to comment.