Changeset 3999
- Timestamp:
- Jan 14, 2026, 8:29:20 PM (3 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WRF.COMMON/WRFV2/dyn_em/module_initialize_real.F
r2039 r3999 5320 5320 DO k = fixedpbl, kte-1 5321 5321 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 5327 IF (pb<0.) THEN 5328 print*,"AAAA",pb,znw(k), znw(k+1), loop, loop1 5329 pb = p_top 5330 ENDIF 5322 5331 !! temp = MAX ( 200., t00 + A*LOG(pb/p00) ) 5323 5332 ! temp = t00 + A*LOG(pb/p00)
Note: See TracChangeset
for help on using the changeset viewer.
