Skip to content

Commit

Permalink
Bugfix inactive top cell surface restoring
Browse files Browse the repository at this point in the history
  • Loading branch information
cbegeman committed May 2, 2022
1 parent 8b87c04 commit 2236e64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/mpas-ocean/src/shared/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ mpas_ocn_transport_tests.o: mpas_ocn_config.o

mpas_ocn_effective_density_in_land_ice.o: mpas_ocn_constants.o mpas_ocn_config.o

mpas_ocn_forcing_restoring.o: mpas_ocn_constants.o mpas_ocn_config.o
mpas_ocn_forcing_restoring.o: mpas_ocn_constants.o mpas_ocn_config.o mpas_ocn_mesh.o

mpas_ocn_tracer_surface_restoring.o: mpas_ocn_constants.o mpas_ocn_config.o mpas_ocn_framework_forcing.o mpas_ocn_diagnostics_variables.o

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module ocn_tracer_surface_restoring
use ocn_config
use ocn_framework_forcing
use ocn_diagnostics_variables
use ocn_mesh

implicit none

Expand Down Expand Up @@ -135,11 +136,11 @@ subroutine ocn_tracer_surface_restoring_compute(groupName, nTracers, nCells, tra

err = 0

iLevel = 1 ! base surface flux restoring on tracer fields in the top layer

!$omp parallel
!$omp do schedule(runtime) private(iTracer)
!$omp do schedule(runtime) private(iTracer, iLevel)
do iCell=1,nCells
iLevel = minLevelCell(iCell) ! base surface flux restoring on tracer fields in the top layer

do iTracer=1,nTracers

! For monthly salinity restoring, tracersSurfaceRestoringValue contains the zero-mean deltaS
Expand Down

0 comments on commit 2236e64

Please sign in to comment.