Skip to content

Commit

Permalink
OMP directive fixes for build and runtime failures in CESM C cases (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
alperaltuntas authored Feb 10, 2025
1 parent 1221ef3 commit 9f3de48
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/parameterizations/lateral/MOM_hor_visc.F90
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ subroutine horizontal_viscosity(u, v, h, uh, vh, diffu, diffv, MEKE, VarMix, G,
! call pass_vector(slope_x, slope_y, G%Domain, halo=2)
endif

!$OMP parallel do default(none) &
!$OMP parallel do default(none) if (.not. CS%smooth_AH) &
!$OMP shared( &
!$OMP CS, G, GV, US, OBC, VarMix, MEKE, u, v, h, uh, vh, &
!$OMP is, ie, js, je, Isq, Ieq, Jsq, Jeq, nz, &
Expand Down
4 changes: 2 additions & 2 deletions src/parameterizations/lateral/MOM_lateral_mixing_coeffs.F90
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ subroutine calc_Eady_growth_rate_2D(CS, G, GV, US, h, e, dzu, dzv, dzSxN, dzSyN,
CS%SN_v(i,j) = 0.0
enddo ; enddo

!$OMP parallel do default(shared) private(dnew,dz,weight,l_seg,vint_SN,sum_dz)
!$OMP parallel do default(shared) private(dnew,dz,weight,l_seg,vint_SN,sum_dz,dT,dB)
do j=G%jsc-1,G%jec+1
do I=G%isc-1,G%iec
vint_SN(I) = 0.
Expand Down Expand Up @@ -901,7 +901,7 @@ subroutine calc_Eady_growth_rate_2D(CS, G, GV, US, h, e, dzu, dzv, dzSxN, dzSyN,
enddo
enddo

!$OMP parallel do default(shared) private(dnew,dz,weight,l_seg)
!$OMP parallel do default(shared) private(dnew,dz,weight,l_seg,vint_SN,sum_dz,dT,dB)
do J=G%jsc-1,G%jec
do i=G%isc-1,G%iec+1
vint_SN(i) = 0.
Expand Down
2 changes: 1 addition & 1 deletion src/parameterizations/lateral/MOM_mixed_layer_restrat.F90
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ subroutine mixedlayer_restrat_OM4(h, uhtr, vhtr, tv, forces, dt, h_MLD, VarMix,
!$OMP parallel default(shared) private(rho_ml,h_vel,u_star,absf,mom_mixrate,timescale, &
!$OMP SpV_ml,SpV_int_fast,SpV_int_slow,Rml_int_fast,Rml_int_slow, &
!$OMP line_is_empty,keep_going,res_scaling_fac, &
!$OMP a,IhTot,b,Ihtot_slow,zpb,hAtVel,zpa,dh) &
!$OMP a,IhTot,b,Ihtot_slow,zpb,hAtVel,zpa,dh,lfront,I_LFront) &
!$OMP firstprivate(uDml,vDml,uDml_slow,vDml_slow)

if (GV%Boussinesq .or. GV%semi_Boussinesq) then
Expand Down

0 comments on commit 9f3de48

Please sign in to comment.