-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accumulate fluxes%salt_flux_added and pass to generic_tracer_update_f…
…rom_coupler
- Loading branch information
1 parent
69f7199
commit 63ed4a4
Showing
4 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule GFDL_generic_tracers
updated
3 files
+771 −635 | generic_tracers/generic_WOMBATlite.F90 | |
+50 −2 | generic_tracers/generic_tracer.F90 | |
+14 −3 | generic_tracers/generic_tracer_utils.F90 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/MOM6/src/core/MOM_forcing_type.F90 b/MOM6/src/core/MOM_forcing_type.F90.new | ||
index 200bbd7..fca9187 100644 | ||
--- a/MOM6/src/core/MOM_forcing_type.F90 | ||
+++ b/MOM6/src/core/MOM_forcing_type.F90.new | ||
@@ -2080,6 +2080,11 @@ subroutine fluxes_accumulate(flux_tmp, fluxes, G, wt2, forces) | ||
|
||
fluxes%salt_flux(i,j) = wt1*fluxes%salt_flux(i,j) + wt2*flux_tmp%salt_flux(i,j) | ||
enddo ; enddo | ||
+ if (associated(fluxes%salt_flux_added) .and. associated(flux_tmp%salt_flux_added)) then | ||
+ do j=js,je ; do i=is,ie | ||
+ fluxes%salt_flux_added(i,j) = wt1*fluxes%salt_flux_added(i,j) + wt2*flux_tmp%salt_flux_added(i,j) | ||
+ enddo ; enddo | ||
+ endif | ||
if (associated(fluxes%heat_added) .and. associated(flux_tmp%heat_added)) then | ||
do j=js,je ; do i=is,ie | ||
fluxes%heat_added(i,j) = wt1*fluxes%heat_added(i,j) + wt2*flux_tmp%heat_added(i,j) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters