Skip to content

Commit 88994b1

Browse files
fix: allocate arrays for crash in models that use _USE_LEGACY_LAND_ (#156)
1 parent 57c2538 commit 88994b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

full/atm_land_ice_flux_exchange.F90

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3891,6 +3891,10 @@ subroutine diag_field_init ( Time, atmos_axes, land_axes, land_pe )
38913891
standard_name='specific_humidity', missing_value=-1.0 )
38923892
allocate(id_tr_flux_land(n_exch_tr))
38933893
allocate(id_tr_mol_flux_land(n_exch_tr))
3894+
allocate(id_tr_con_atm_land(n_exch_tr)); id_tr_con_atm_land(:)=-1
3895+
allocate(id_tr_con_ref_land(n_exch_tr)); id_tr_con_ref_land(:)=-1
3896+
allocate(id_tr_ref_land(n_exch_tr)); id_tr_ref_land(:)=-1
3897+
38943898
do tr = 1, n_exch_tr
38953899
call fms_tracer_manager_get_tracer_names( MODEL_ATMOS, tr_table(tr)%atm, name, longname, units )
38963900
id_tr_flux_land(tr) = fms_diag_register_diag_field( 'flux_land', trim(name)//'_flux', Land_axes, Time, &

0 commit comments

Comments
 (0)