Skip to content

Commit

Permalink
runtime fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vanroekel committed Jul 12, 2024
1 parent 0e861cf commit 0e9cd30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion components/mpas-ocean/src/shared/mpas_ocn_diagnostics.F
Original file line number Diff line number Diff line change
Expand Up @@ -3463,7 +3463,8 @@ subroutine ocn_compute_mixing_input_fields(statePool, forcingPool, &
activeTracersSurfaceFlux(indexTempFlux,iCell) &
+ penetrativeTemperatureFlux(iCell) &
- penetrativeTemperatureFluxOBL(iCell) &
- fracAbsorbed*activeTracers(indexTempFlux,kmin,iCell)
- fracAbsorbed*surfaceThicknessFlux(iCell) * &
activeTracers(indexTempFlux,kmin,iCell)

nonLocalSurfaceTracerFlux(indexSaltFlux,iCell) = &
activeTracersSurfaceFlux(indexSaltFlux,iCell) &
Expand Down
6 changes: 3 additions & 3 deletions components/mpas-ocean/src/shared/mpas_ocn_vmix_cvmix.F
Original file line number Diff line number Diff line change
Expand Up @@ -725,9 +725,9 @@ subroutine ocn_vmix_coefs_cvmix_build(meshPool, statePool, forcingPool, err, tim
! intent out of BoundaryLayerDepth is boundary layer depth measured in meters and vertical index
indexBoundaryLayerDepth(iCell) = cvmix_variables % kOBL_depth

do k = minLevelCell(iCell), floor(indexBoundaryLayerDepth(iCell)) + 1
vertViscTopOfCell(k, iCell) = multVal*vertViscTopOfCell(k,iCell) + cvmix_variables % Mdiff_iface(k)
vertDiffTopOfCell(k, iCell) = multVal*vertDiffTopOfCell(k,iCell) + cvmix_variables % Tdiff_iface(k)
do k = minLevelCell(iCell), maxLevelCell(iCell) !floor(indexBoundaryLayerDepth(iCell)) + 1
vertViscTopOfCell(k, iCell) = cvmix_variables % Mdiff_iface(k)
vertDiffTopOfCell(k, iCell) = cvmix_variables % Tdiff_iface(k)
end do

! store non-local flux terms
Expand Down

0 comments on commit 0e9cd30

Please sign in to comment.