Changeset 3999


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

MESOSCALE: workaround to a problem in initialization of vertical levels arising in debug mode

File:
1 edited

Legend:

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

    r2039 r3999  
    53205320               DO k = fixedpbl, kte-1
    53215321                  pb = (znw(k)+znw(k+1))*0.5 * (p_surf - p_top) + p_top
     5322!! sometimes pb could be negative in the iteration process
     5323!! because one of znw(k) znw(k+1) is negative
     5324!! this triggers error in the LOG below in debug mode
     5325!! so if the case arises, we set pb to p_top
     5326!! in the end with that patch convergence looks OK
     5327IF (pb<0.) THEN
     5328        print*,"AAAA",pb,znw(k), znw(k+1), loop, loop1
     5329        pb = p_top
     5330ENDIF
    53225331!!                 temp = MAX ( 200., t00 + A*LOG(pb/p00) )
    53235332!                  temp =             t00 + A*LOG(pb/p00)
Note: See TracChangeset for help on using the changeset viewer.