Changeset 5499 for LMDZ6/trunk/libf/phylmd/calwake.f90
- Timestamp:
- Jan 21, 2025, 11:18:55 AM (18 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/calwake.f90
r5285 r5499 1 2 1 ! $Id$ 2 MODULE calwake_mod 3 PRIVATE 4 5 LOGICAL, SAVE, ALLOCATABLE :: first(:) ! first(klon) : first calwake computation on columns 6 !$OMP THREADPRIVATE(first) 7 8 LOGICAL, SAVE :: first_first=.TRUE. ! fisrt call to calwake 9 !$OMP THREADPRIVATE(first_first) 10 11 PUBLIC calwake_first, calwake 12 13 CONTAINS 14 15 SUBROUTINE calwake_first(dtime) 16 USE dimphy, ONLY : klon,klev 17 USE lmdz_wake, ONLY : wake_first 18 REAL, INTENT(IN) :: dtime 19 20 IF (first_first) THEN 21 ALLOCATE(first(klon)) 22 first(:)=.TRUE. 23 24 CALL wake_first(klev, dtime) 25 26 first_first=.FALSE. 27 ENDIF 28 29 END SUBROUTINE calwake_first 30 3 31 4 32 SUBROUTINE calwake(iflag_wake_tend, paprs, pplay, dtime, & … … 28 56 USE phys_state_var_mod, ONLY: pctsrf 29 57 USE indice_sol_mod, ONLY: is_oce 30 USE print_control_mod, ONLY: mydebug=>debug ,lunout, prt_level58 USE print_control_mod, ONLY: lunout, prt_level 31 59 USE lmdz_wake, ONLY : wake 32 60 USE yomcst_mod_h … … 76 104 ! Variable internes 77 105 ! ----------------- 78 LOGICAL, SAVE :: first = .TRUE.79 !$OMP THREADPRIVATE(first)80 106 INTEGER :: i, l 81 107 INTEGER, DIMENSION(klon) :: znatsurf ! 0 if pctsrf(is_oce)>0.1; 1 else. … … 318 344 ENDIF ! (iflag_wake_tend .EQ. 0) 319 345 ! 320 IF (first) THEN321 DO i = 1,klon346 DO i = 1,klon 347 IF (first(i)) THEN 322 348 IF (wake_dens(i) < -1.) THEN 323 349 wake_dens(i) = wdens(i) 324 350 ENDIF 325 ENDDO 326 first=.false. 327 ENDIF ! (first) 351 first(i)=.FALSE. 352 ENDIF 353 ENDDO 354 328 355 !>jyg 329 356 IF (prt_level >= 10) THEN … … 334 361 END SUBROUTINE calwake 335 362 336 363 END MODULE calwake_mod
Note: See TracChangeset
for help on using the changeset viewer.