Skip to content

Commit

Permalink
Corrected declaration of variable in OMP region
Browse files Browse the repository at this point in the history
Moved climate_nudging from private to shared  declaration.
  • Loading branch information
wfcooke committed Aug 27, 2020
1 parent cce65ac commit db7b60f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/fv_nudge.F90
Original file line number Diff line number Diff line change
Expand Up @@ -612,8 +612,8 @@ subroutine fv_nwp_nudge ( Time, dt, npx, npy, npz, ps_dt, u_dt, v_dt, t_dt, q_dt
if ( nudge_hght .and. kht<npz ) then ! averaged (in log-p) temperature
rdt = factor_nwp*1. / (tau_hght/factor + dt)
!$OMP parallel do default(none) shared(is,ie,js,je,npz,ak,h2,delp,kht,t_obs,q_obs,pt,zvir, &
!$OMP q,rdt,ps_fac,mask,t_dt) &
!$OMP private(pe2, peln,climate_nudging )
!$OMP q,rdt,ps_fac,mask,t_dt, climate_nudging) &
!$OMP private(pe2, peln )
do j=js,je
do i=is,ie
pe2(i,1) = ak(1)
Expand Down

0 comments on commit db7b60f

Please sign in to comment.