Ignore:
Timestamp:
Aug 31, 2024, 8:39:33 PM (2 months ago)
Author:
evignon
Message:

adding a condition to prescribe surface temperature in 1D cases forced in flux
this is needed for the new MOSAI 1D case to avoid spurious crashes

File:
1 edited

Legend:

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

    r5084 r5171  
    27152715            yt1_new=(1./RCPD)*(AcoefH(j)+BcoefH(j)*y_flux_t1(j)*dtime)
    27162716            ytsurf_new(j)=yt1_new-y_flux_t1(j)/(Kech_h(j)*RCPD)
     2717            ! for cases forced in flux and for which forcing in Ts is needed
     2718            ! to prevent the latter to reach unrealistic value (even if not used,
     2719            ! Ts is calculated and hgardfou can appear during the calculation
     2720            ! of surface saturation humidity for example
     2721            if (ok_forc_tsurf) ytsurf_new(j)=tg
    27172722          ENDDO
    27182723
Note: See TracChangeset for help on using the changeset viewer.