Changeset 1046 for codes/icosagcm/trunk/src/diagnostics
- Timestamp:
- 08/20/20 16:22:41 (4 years ago)
- Location:
- codes/icosagcm/trunk/src/diagnostics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/trunk/src/diagnostics/geopotential_mod.f90
r899 r1046 28 28 theta_rhodz = f_theta_rhodz(ind) 29 29 theta = f_theta(ind) 30 CALL compute_theta_rhodz2theta(ps, theta_rhodz,theta,0 )30 CALL compute_theta_rhodz2theta(ps, theta_rhodz,theta,0, ondevice=.FALSE.) 31 31 phis = f_phis(ind) 32 32 phi = f_phi(ind) -
codes/icosagcm/trunk/src/diagnostics/theta_rhodz.f90
r548 r1046 39 39 theta_rhodz=f_theta_rhodz(ind) 40 40 theta=f_theta(ind) 41 CALL compute_theta_rhodz2theta(ps, theta_rhodz,theta,0 )41 CALL compute_theta_rhodz2theta(ps, theta_rhodz,theta,0, ondevice=.false.) 42 42 ENDDO 43 43 !$OMP BARRIER … … 132 132 theta=f_theta(ind) 133 133 theta_rhodz=f_theta_rhodz(ind) 134 CALL compute_theta2theta_rhodz(ps, theta, theta_rhodz,0 )134 CALL compute_theta2theta_rhodz(ps, theta, theta_rhodz,0,ondevice=.false.) 135 135 ENDDO 136 136 !$OMP BARRIER … … 138 138 END SUBROUTINE theta2theta_rhodz 139 139 140 SUBROUTINE compute_theta2theta_rhodz(ps,theta, theta_rhodz,offset )140 SUBROUTINE compute_theta2theta_rhodz(ps,theta, theta_rhodz,offset, ondevice) 141 141 USE icosa 142 142 USE disvert_mod … … 147 147 REAL(rstd),INTENT(OUT) :: theta_rhodz(iim*jjm,llm) 148 148 INTEGER,INTENT(IN) :: offset 149 LOGICAL, INTENT(IN) :: ondevice 149 150 REAL(rstd) :: rhodz 150 151 INTEGER :: i,j,ij,l 151 152 152 153 !$OMP BARRIER 154 !$acc parallel loop collapse(3) default(present) async if(ondevice) 153 155 DO l = ll_begin, ll_end 154 156 DO j=jj_begin-offset,jj_end+offset … … 165 167 END SUBROUTINE compute_theta2theta_rhodz 166 168 167 SUBROUTINE compute_theta_rhodz2theta(ps,theta_rhodz,theta,offset )169 SUBROUTINE compute_theta_rhodz2theta(ps,theta_rhodz,theta,offset,ondevice) 168 170 USE icosa 169 171 USE disvert_mod … … 174 176 REAL(rstd),INTENT(OUT) :: theta(iim*jjm,llm) 175 177 INTEGER,INTENT(IN) :: offset 178 LOGICAL, INTENT(IN) :: ondevice 176 179 REAL(rstd) :: rhodz 177 180 INTEGER :: i,j,ij,l 178 181 179 182 !$OMP BARRIER 183 !$acc parallel loop collapse(3) default(present) async if(ondevice) 180 184 DO l = ll_begin, ll_end 181 185 DO j=jj_begin-offset,jj_end+offset
Note: See TracChangeset
for help on using the changeset viewer.