Changeset 5499 for LMDZ6/trunk/libf/phylmd/lmdz_wake.f90
- Timestamp:
- Jan 21, 2025, 11:18:55 AM (18 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/lmdz_wake.f90
r5451 r5499 4 4 5 5 IMPLICIT NONE; PRIVATE 6 PUBLIC wake 6 7 LOGICAL, PARAMETER :: phys_sub=.false. 8 LOGICAL :: first_call=.true. 9 !$OMP THREADPRIVATE(first_call) 10 11 PUBLIC wake, wake_first 7 12 8 13 CONTAINS 14 15 SUBROUTINE wake_first(klev, dtime) 16 USE lmdz_wake_ini , ONLY : wk_nsub 17 IMPLICIT NONE 18 INTEGER, INTENT(IN) :: klev 19 REAL, INTENT(IN) :: dtime 20 REAL :: dtimesub 21 22 dtimesub = dtime/wk_nsub 23 ! 24 IF (first_call) THEN 25 IF (CPPKEY_IOPHYS_WK) THEN 26 IF (phys_sub) THEN 27 call iophys_ini(dtimesub,klev) 28 ELSE 29 call iophys_ini(dtime,klev) 30 ENDIF 31 END IF 32 first_call = .false. 33 ENDIF !(first_call) 34 35 END SUBROUTINE wake_first 9 36 10 37 SUBROUTINE wake(klon,klev,znatsurf, p, ph, pi, dtime, & … … 306 333 REAL, DIMENSION(klon) :: wdens_in, awdens_in ! pour les prints 307 334 308 !!! LOGICAL :: phys_sub=.true.309 LOGICAL :: phys_sub=.false.310 311 LOGICAL :: first_call=.true.312 313 314 335 !!-- variables liees au nouveau calcul de ptop et hw 315 336 REAL, DIMENSION (klon, klev) :: int_dth … … 350 371 ! alpk = 0.05 351 372 ! 352 igout = klon/2+1/klon 373 igout = klon/2+1/klon 353 374 ! 354 375 ! sub-time-stepping parameters 355 376 dtimesub = dtime/wk_nsub 356 377 ! 357 IF (first_call) THEN358 IF (CPPKEY_IOPHYS_WK) THEN359 IF (phys_sub) THEN360 call iophys_ini(dtimesub,klev)361 ELSE362 call iophys_ini(dtime,klev)363 ENDIF364 END IF365 first_call = .false.366 ENDIF !(first_call)367 368 378 IF (iflag_wk_pop_dyn == 0) THEN 369 379 ! Initialisation de toutes des densites a wdens_ref.
Note: See TracChangeset
for help on using the changeset viewer.