Ignore:
Timestamp:
Jan 14, 2026, 8:29:27 PM (10 days ago)
Author:
aslmd
Message:

MESOSCALE: in module_initialize_real, replace 0 by 1E-30 in the enforcing positivity.

[kept commented for reference] MESOSCALE: sometimes tracers are coming slightly negative from the physics, enforce positivity. this seems to solve problems occurring in the physics which makes the model to crash in normal mode and to raise an exception in lwtt in debug mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WRF.COMMON/WRFV2/dyn_em/module_initialize_real.F

    r3999 r4000  
    16991699!!! we want any scalar (i.e. tracer) to be positive
    17001700!!! and because of interpolation it is possible that negative values occur...
    1701 WHERE( scalar < 0. )  scalar = 0.
     1701WHERE( scalar < 1.e-30 )  scalar = 1.e-30
    17021702
    17031703!!!!!!****MARS****!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     
    60186018      real p_pgcm(dimlevs)    ! high res to GCM pressure ratios
    60196019
     6020
    60206021! 1. Coefficients
    60216022      rp=ps_hr/ps_gcm
Note: See TracChangeset for help on using the changeset viewer.