Skip to content

Commit

Permalink
Adding default(present) to the parallel clauses.
Browse files Browse the repository at this point in the history
  • Loading branch information
abishekg7 committed Jan 16, 2025
1 parent 63b1e58 commit eeecb13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core_atmosphere/dynamics/mpas_atm_time_integration.F
Original file line number Diff line number Diff line change
Expand Up @@ -2006,15 +2006,15 @@ subroutine atm_compute_vert_imp_coefs_work(nCells, moist_start, moist_end, dts,
rcv = rgas/(cp-rgas)
c2 = cp*rcv

!$acc parallel
!$acc parallel default(present)
!$acc loop gang worker
! MGD bad to have all threads setting this variable?
do k=1,nVertLevels
cofrz(k) = dtseps*rdzw(k)
end do
!$acc end parallel

!$acc parallel
!$acc parallel default(present)
!$acc loop gang worker private(b_tri,c_tri)
do iCell = cellSolveStart,cellSolveEnd ! we only need to do cells we are solving for, not halo cells

Expand Down

0 comments on commit eeecb13

Please sign in to comment.