Changeset 4000


Ignore:
Timestamp:
Jan 14, 2026, 8:29:27 PM (3 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

Location:
trunk/WRF.COMMON
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WRF.COMMON/INTERFACES/module_lmd_driver.F

    r2758 r4000  
    816816ENDDO
    817817ENDDO
     818
     819!!!!! KEPT COMMENTED FOR TESTING PURPOSES
     820!!! sometimes tracers are coming slightly negative from the physics
     821!!! enforce positivity here (rough patch admittedly)
     822!where (scalar < 1.e-30)
     823!        scalar = 1.e-30
     824!endwhere
     825
    818826CALL deallocate_interface
    819827DEALLOCATE(pdtheta)
  • 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.