Changeset 3799 for LMDZ6


Ignore:
Timestamp:
Jan 12, 2021, 12:03:09 AM (4 years ago)
Author:
lguez
Message:

Bug fix: no operation in arg of histwrite_phy

An operation like zx_rhl*100. in the actual argument of
histwrite_phy crashes the code if it is compiled in debug mode: at
the first call of phys_output_write_mod, zx_rhl is not defined.

File:
1 edited

Legend:

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

    r3792 r3799  
    17121712       CALL histwrite_phy(o_rhum, zx_rh)
    17131713       IF (iflag_ice_thermo .GT. 0) THEN
    1714          CALL histwrite_phy(o_rhl, zx_rhl*100.)
    1715          CALL histwrite_phy(o_rhi, zx_rhi*100.)
     1714          IF (vars_defined) zx_tmp_fi3d = zx_rhl * 100.
     1715          CALL histwrite_phy(o_rhl, zx_tmp_fi3d)
     1716          IF (vars_defined) zx_tmp_fi3d = zx_rhi * 100.
     1717          CALL histwrite_phy(o_rhi, zx_tmp_fi3d)
    17161718       ENDIF
    17171719
Note: See TracChangeset for help on using the changeset viewer.