MPAS-Dev / MPAS-Model

Repository for MPAS models and shared framework releases.
238 stars 317 forks source link

Bug fix to for MYNN PBL option with Thompson cloud microphysics #1215

Closed ldfowler58 closed 1 month ago

ldfowler58 commented 1 month ago

When running ./atmosphere_model with the convection_permitting suite, forecasts crash because we update the arrays tend_scalars(index_nc,...), tend_scalars(index_nifa,...) , and tend_scalars(index_nwfa,...) in mpas_atmphys_todynamics when they have not been allocated. Note that these arrays are only allocated when we run the aerosol-aware option of the Thompson cloud microphysics scheme (microp_scheme = mp_thompson_aerosols).

This error is fixed by ensuring that we only update these three arrays when we run the aerosol-aware option of the Thompson cloud microphysics scheme.