Skip to content

Commit 23fd730

Browse files
committed
Fix bug by using target grid instead of source grid.
1 parent f1c9a39 commit 23fd730

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/eamxx/src/physics/mam/eamxx_mam_microphysics_process_interface.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ void MAMMicrophysics::set_grids(
205205
LinozHorizInterp_, linoz_file_name_);
206206

207207
// linoz reader
208-
const auto io_grid_linoz = LinozHorizInterp_->get_src_grid();
208+
const auto io_grid_linoz = LinozHorizInterp_->get_tgt_grid();
209209
const int num_cols_io_linoz =
210210
io_grid_linoz->get_num_local_dofs(); // Number of columns on this rank
211211
const int num_levs_io_linoz =
@@ -233,7 +233,7 @@ void MAMMicrophysics::set_grids(
233233
TracerHorizInterp_, oxid_file_name_);
234234

235235
const int nvars = int(var_names.size());
236-
const auto io_grid = TracerHorizInterp_->get_src_grid();
236+
const auto io_grid = TracerHorizInterp_->get_tgt_grid();
237237
const int num_cols_io =
238238
io_grid->get_num_local_dofs(); // Number of columns on this rank
239239
const int num_levs_io =
@@ -308,7 +308,7 @@ void MAMMicrophysics::set_grids(
308308
// I am assuming the order of species in extfrc_lst_.
309309
// Indexing in mam4xx is fortran.
310310
forcings_[i].frc_ndx = i + 1;
311-
const auto io_grid_emis = VertEmissionsHorizInterp_[i]->get_src_grid();
311+
const auto io_grid_emis = VertEmissionsHorizInterp_[i]->get_tgt_grid();
312312
const int num_cols_io_emis =
313313
io_grid_emis->get_num_local_dofs(); // Number of columns on this rank
314314
const int num_levs_io_emis =

0 commit comments

Comments
 (0)