Ignore:
Timestamp:
Mar 17, 2026, 4:00:47 PM (3 weeks ago)
Author:
Sebastien Nguyen
Message:

fix bug that can make LMDZISO crash when trying to write Rland_ice before variable allocation and initialisation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/phys_output_write_mod.F90

    r6092 r6110  
    32153215    !write(*,*) 'tmp phys_output_write: ntiso=',ntiso
    32163216
     3217    zx_tmp_fi2d=0. ; zx_tmp_fi3d=0.
    32173218    DO ixt = 1, ntiso
    32183219        !write(*,*) 'ixt,o_xtovap(ixt)=',ixt,o_xtovap(ixt)
     
    32303231        CALL histwrite_phy(o_xtpluc(ixt), zx_tmp_fi2d)
    32313232        CALL histwrite_phy(o_xtevap(ixt),   xtevap(ixt,:))
     3233
     3234        IF (vars_defined) zx_tmp_fi2d(:) = Rland_ice(ixt,:)
    32323235        CALL histwrite_phy(o_Rland_ice(ixt), Rland_ice(ixt,:))
    32333236        CALL histwrite_phy(o_xtovap(ixt),  xt_seri(ixt,:,:))
     
    32363239        !! runoff land bucket + soil isotopes ratio + river and costal flows PRSN 2025
    32373240        CALL histwrite_phy(o_xtrunoff_diag(ixt), xtrunoff_diag(ixt,:))
     3241          !! LMDZORISO variables set to 0 and not updating in bucket
    32383242        CALL histwrite_phy(o_xtriverflow(ixt),   xtriverflow(ixt,:))
    32393243        CALL histwrite_phy(o_xtcoastalflow(ixt),   xtcoastalflow(ixt,:))
Note: See TracChangeset for help on using the changeset viewer.