Skip to content

Commit a14c823

Browse files
committed
MAM4xx: Adding the size of the view.
1 parent 3bd41e1 commit a14c823

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mam4xx/mo_gas_phase_chemdr.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ void perform_atmospheric_chemistry_and_microphysics(
204204

205205
// vmr0 stores mixing ratios before chemistry changes the mixing
206206
const auto vmr_col = View2D(work_set_het_ptr, nlev, gas_pcnst);
207+
work_set_het_ptr += nlev * gas_pcnst;
207208
const int sethet_work_len = mam4::mo_sethet::get_work_len_sethet();
208209
const auto work_sethet_call = View1D(work_set_het_ptr, sethet_work_len);
209210
work_set_het_ptr += sethet_work_len;

0 commit comments

Comments
 (0)