Skip to content

Commit f01ebc6

Browse files
committed
EAMxx: fix bad usage of macro for IOP remapper
SCREAM_MPI_ON_DEVICE is *always* defined
1 parent 36bef5f commit f01ebc6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/eamxx/src/share/grid/remap/iop_remapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ void IOPRemapper::remap_fwd_impl ()
123123
for (int i=0; i<m_num_fields; ++i) {
124124
auto& f = m_single_col_fields[i];
125125
int col_size = f.get_header().get_identifier().get_layout().size();
126-
#ifdef SCREAM_MPI_ON_DEVICE
126+
#if SCREAM_MPI_ON_DEVICE
127127
m_comm.broadcast(f.get_internal_view_data<Real>(),col_size,root_id);
128128
#else
129129
if (iam_root) {

components/eamxx/src/share/tests/iop_remapper_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ TEST_CASE("iop_remap")
171171
if (comm.rank()==closest_rank) {
172172
col.deep_copy(src.subfield(COL,closest_lid));
173173
}
174-
#ifdef SCREAM_MPI_ON_DEVICE
174+
#if SCREAM_MPI_ON_DEVICE
175175
comm.broadcast(col.get_internal_view_data<Real>(),col_size,closest_rank);
176176
#else
177177
col.sync_to_host();

0 commit comments

Comments
 (0)