Skip to content

Commit

Permalink
Fix Redi resolution taper
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-petersen committed Apr 21, 2022
1 parent 88fd9c0 commit 492d8dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions components/mpas-ocean/src/shared/mpas_ocn_gm.F
Original file line number Diff line number Diff line change
Expand Up @@ -1096,9 +1096,9 @@ subroutine ocn_GM_init(domain, err)!{{{
else if (dcEdge(iEdge) >= config_GM_horizontal_ramp_max) then
gmHorizontalTaper(iEdge) = 1.0_RKIND
else
gmHorizontalTaper(iEdge) = 1.0_RKIND &
/(config_GM_horizontal_ramp_max - config_GM_horizontal_ramp_min) &
*(dcEdge(iEdge) - config_GM_horizontal_ramp_min)
gmHorizontalTaper(iEdge) = &
(dcEdge(iEdge) - config_GM_horizontal_ramp_min) &
/(config_GM_horizontal_ramp_max - config_GM_horizontal_ramp_min)
end if
end do
!$omp end do
Expand Down
4 changes: 2 additions & 2 deletions components/mpas-ocean/src/shared/mpas_ocn_tracer_hmix_redi.F
Original file line number Diff line number Diff line change
Expand Up @@ -554,8 +554,8 @@ subroutine ocn_tracer_hmix_Redi_init(domain, err)!{{{
else if (dcEdge(iEdge) >= config_Redi_horizontal_ramp_max) then
RediHorizontalTaper(iEdge) = 1.0_RKIND
else
RediHorizontalTaper(iEdge) = RediHorizontalTaper(iEdge) &
*(dcEdge(iEdge) - config_Redi_horizontal_ramp_min) &
RediHorizontalTaper(iEdge) = &
(dcEdge(iEdge) - config_Redi_horizontal_ramp_min) &
/(config_Redi_horizontal_ramp_max - config_Redi_horizontal_ramp_min)
end if
end do
Expand Down

0 comments on commit 492d8dc

Please sign in to comment.