Changeset 1047
- Timestamp:
- 08/26/20 11:34:31 (4 years ago)
- Location:
- codes/icosagcm/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/trunk/src/dissip/sponge.f90
r953 r1047 45 45 ENDIF 46 46 47 IF (iflag_sponge > 0) THEN48 CALL abort_acc("iflag_sponge > 0")49 END IF50 47 51 48 !$OMP MASTER 52 49 ALLOCATE(rdamp(llm)) 53 50 ALLOCATE(lambda(llm)) 54 51 !$acc enter data create(rdamp(:),lambda(:)) async 52 55 53 IF (iflag_sponge == 1) THEN 56 54 ! sponge quenching over the topmost 4 atmospheric layers … … 88 86 !$OMP END MASTER 89 87 !$OMP BARRIER 90 88 !$acc update device(rdamp(:), lambda(:)) async 89 91 90 END SUBROUTINE init_sponge 92 91 … … 128 127 dtheta_rhodz=f_dtheta_rhodz(ind) 129 128 129 !$acc parallel loop collapse(2) present(ue(:,:), due(:,:), rdamp(:), dtheta_rhodz) async 130 130 DO l=ll_begin,ll_end 131 131 !$SIMD … … 139 139 ENDDO 140 140 ENDDO 141 !$acc end parallel loop 141 142 END DO 142 143 ELSE -
codes/icosagcm/trunk/src/time/timeloop_gcm.F90
r1023 r1047 360 360 CALL euler_scheme(.FALSE.) ! update only u, theta 361 361 IF (iflag_sponge > 0) THEN 362 CALL abort_acc("iflag_sponge>0")363 362 CALL sponge(f_u,f_du,f_theta_rhodz,f_dtheta_rhodz) 364 363 CALL euler_scheme(.FALSE.) ! update only u, theta
Note: See TracChangeset
for help on using the changeset viewer.