Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GFDL to main candidate branch (2022-05-16) #1569

Closed
wants to merge 195 commits into from
Closed
Show file tree
Hide file tree
Changes from 185 commits
Commits
Show all changes
195 commits
Select commit Hold shift + click to select a range
0add693
additions for stochastic physics and ePBL perts
May 5, 2020
a534541
cleanup of code and enhancement of ePBL perts
pjpegion Dec 2, 2020
a0e5b56
Update MOM_diabatic_driver.F90
pjpegion Dec 2, 2020
c48a46a
Update MOM_diabatic_driver.F90
pjpegion Dec 2, 2020
5f6973b
Update MOM_diabatic_driver.F90
pjpegion Dec 2, 2020
36ce2d1
add stochy_restart writing to mom_cap
pjpegion Dec 14, 2020
becb442
additions for stochy restarts
pjpegion Dec 22, 2020
0c48bfc
clean up debug statements
pjpegion Dec 23, 2020
49111ff
clean up code
pjpegion Jan 6, 2021
15dde36
fix non stochastic ePBL calculation
pjpegion Jan 7, 2021
58f1fe9
re-write of stochastic code to remove CPP directives
pjpegion Jan 29, 2021
9e7029c
clean up MOM_domains
pjpegion Jan 29, 2021
0bf4ff0
make stochastics optional
pjpegion Feb 2, 2021
e80d5f5
correct coupled_driver/ocean_model_MOM.F90 and other cleanup
pjpegion Feb 2, 2021
08dc1a4
clean up of code for MOM6 coding standards
pjpegion Feb 2, 2021
c7531a7
remove stochastics container
pjpegion Feb 4, 2021
4c93109
revert MOM_domains.F90
pjpegion Feb 5, 2021
ea36db2
clean up of mom_ocean_model_nuopc.F90
pjpegion Feb 5, 2021
e2431bc
remove PE_here from mom_ocean_model_nuopc.F90
pjpegion Feb 5, 2021
a67bc78
remove debug statements
pjpegion Feb 26, 2021
493717a
stochastic physics re-write
pjpegion Jul 26, 2021
cf1d296
move stochastics to external directory
pjpegion Jul 26, 2021
e91c966
doxygen cleanup
pjpegion Jul 26, 2021
a5d9065
add write_stoch_restart_ocn to MOM_stochastics
pjpegion Jul 26, 2021
78b8d79
add logic to remove incrments from restart if outside IAU window
pjpegion Jul 27, 2021
15e4029
revert logic wrt increments
pjpegion Jul 28, 2021
59e733f
add comments
pjpegion Jul 28, 2021
9221b5d
update to gfdl 20210806 (#74)
jiandewang Aug 16, 2021
348a81b
Several little things, one is making sponge less verbose.
kshedstrom Sep 22, 2021
c3ff425
return a more accurate error message in MOM_stochasics
pjpegion Sep 28, 2021
b7b4141
Working on boundary layer docs.
kshedstrom Oct 4, 2021
71908c8
Done with EPBL docs?
kshedstrom Oct 6, 2021
3dbf2f5
Undoing some patches from others
kshedstrom Oct 6, 2021
45d6151
Adding in that SAL commit again.
kshedstrom Oct 12, 2021
65cccb7
correction on type in directory name
jiandewang Oct 28, 2021
ebb643a
Oops, more cleanup.
kshedstrom Jan 28, 2022
56401b6
+Add MOM_check_scaling.F90 and MOM_scaling_check.F90
Hallberg-NOAA Dec 22, 2021
75bf521
+Move MOM_scaling_check.F90 to MOM_unique_scales.F90
Hallberg-NOAA Jan 24, 2022
fc5253f
(*)Correct memory declarations in MOM_regridding
Hallberg-NOAA Jan 24, 2022
c166358
Add optional argument to FMS2 version of get_field_size
MJHarrison-GFDL Feb 1, 2022
e841609
remove unnecessary optional flag
MJHarrison-GFDL Feb 2, 2022
5f56798
Merge branch 'main' into main_to_dev
marshallward Feb 18, 2022
32e1ecf
Fixes issues with the GME code and get_param calls for Leith options …
gustavo-marques Feb 20, 2022
149073f
Remove hard-wired parameter in adjustEtaToFitBathymetry (#69)
gustavo-marques Feb 20, 2022
712ff9e
Merge branch 'dev/gfdl' into main_to_dev
Hallberg-NOAA Feb 20, 2022
2e72b88
Merge pull request #71 from NOAA-GFDL/main_to_dev
Hallberg-NOAA Feb 21, 2022
65b2c82
Merge remote-tracking branch 'gfdl/dev/gfdl' into dev/esmg
kshedstrom Feb 26, 2022
d46dbc7
Report mean temperature from MOM_state_stats()
Hallberg-NOAA Dec 16, 2021
9c7bf29
+Add global_mass_int_EFP
Hallberg-NOAA Dec 16, 2021
8197cea
Use global_mass_integral in lateral_bdry_diff
Hallberg-NOAA Dec 16, 2021
1bf8220
(*)+Reproducing tracer stocks
Hallberg-NOAA Dec 16, 2021
a0d0238
(*)+Use reproducing stocks for all tracer packages
Hallberg-NOAA Feb 21, 2022
a468bee
Removed trailing white space
Hallberg-NOAA Feb 23, 2022
b3e80f7
+(*)Add tmp_scale arguments to global_area_mean
Hallberg-NOAA Feb 27, 2022
fa2832c
+(*)Rescale variables with homogenize_forcing
Hallberg-NOAA Feb 27, 2022
9caa701
(+) Refactor of MOM_file_parser
marshallward Feb 23, 2022
cf193a8
Merge pull request #74 from marshallward/file_parser_refactor
Hallberg-NOAA Feb 28, 2022
9a01cd5
+Add ALE options mimicking Hycom
Hallberg-NOAA Feb 26, 2022
4640461
(*)Avoid negative thicknesses in mixed_layer_restrat
Hallberg-NOAA Feb 24, 2022
b4a67c1
Merge remote-tracking branch 'gfdl/dev/gfdl' into dev/esmg
kshedstrom Mar 7, 2022
efa503b
bugfix: static h_new shape remaining_transport_sum
marshallward Mar 8, 2022
ab50f0e
Merge pull request #82 from marshallward/offline_static_bugfix
Hallberg-NOAA Mar 10, 2022
d7b6f4f
Merge branch 'dev/gfdl' into fix_homogenize_forcing
Hallberg-NOAA Mar 10, 2022
d560169
+Stop logging NEW_SPONGES
Hallberg-NOAA Mar 12, 2022
3042942
Fix nolibs build in CI pipeline
adcroft Mar 13, 2022
92f5a98
Merge branch 'dev/gfdl' into fix_homogenize_forcing
adcroft Mar 13, 2022
6e85b23
Merge pull request #78 from Hallberg-NOAA/fix_homogenize_forcing
adcroft Mar 13, 2022
3675c21
+Add Hybgen remapping options
Hallberg-NOAA Mar 6, 2022
0f4ebf6
Merge pull request #81 from Hallberg-NOAA/add_Hybgen_remapping
adcroft Mar 14, 2022
9c341f0
Merge remote-tracking branch 'gfdl/dev/gfdl' into dev/esmg
kshedstrom Mar 14, 2022
406bc59
Merge remote-tracking branch 'alexandra/main' into dev/esmg
kshedstrom Mar 14, 2022
5a8590b
+Add Laplacian diffusion of interface heights
Hallberg-NOAA Mar 8, 2022
14a28f4
Avoid copying the tracer registry in advect_tracer
Hallberg-NOAA Mar 11, 2022
a002923
(*)Fix rescaling in RGC_initialize_sponges
Hallberg-NOAA Mar 12, 2022
8c6ae0e
Corrected the license on RGC_initialization.F90
Hallberg-NOAA Mar 15, 2022
e308893
Merge branch 'main' into main_to_dev
marshallward Mar 17, 2022
41b101d
Merge pull request #92 from NOAA-GFDL/main_to_dev
marshallward Mar 17, 2022
ab4d226
+(*)MOM_hor_visc bug fix and loop size cleanup
Hallberg-NOAA Mar 10, 2022
966d50f
(*)Minor MOM_hor_visc code cleanup
Hallberg-NOAA Mar 17, 2022
11d03b1
+Add unit conversion capability for restarts
Hallberg-NOAA Mar 21, 2022
7c3f31b
+(*)Write unscaled MOM6 restart files
Hallberg-NOAA Mar 21, 2022
2993f1b
Merge branch 'dev/gfdl' into stop_logging_NEW_SPONGES
marshallward Mar 21, 2022
0ff0daa
Merge pull request #87 from Hallberg-NOAA/stop_logging_NEW_SPONGES
Hallberg-NOAA Mar 22, 2022
115d714
Ice dynamics (#80)
OlgaSergienko Mar 22, 2022
ce22d7a
add missing shared variable
raphaeldussin Mar 13, 2022
8bf9abb
reworked algebra corner spread, rotation parenthesis (#90)
raphaeldussin Mar 23, 2022
97331e7
+Better multi-line parameter specification handling
Hallberg-NOAA Mar 13, 2022
3b5d264
Support arbitrarily long parameter spec lines
Hallberg-NOAA Mar 14, 2022
4e94c5d
Reduce the populate_param_data memory footprint
Hallberg-NOAA Mar 15, 2022
2ac64b3
Set INPUT_STR_LENGTH to 1024
Hallberg-NOAA Mar 15, 2022
4c5e98e
Error handler support
marshallward Mar 17, 2022
fa55d54
Merge branch 'dev/gfdl' into unscale_restarts
Hallberg-NOAA Mar 28, 2022
eae86d6
Merge pull request #94 from Hallberg-NOAA/unscale_restarts
marshallward Mar 30, 2022
08582ee
add residual loss term for internal tides (#95)
raphaeldussin Mar 31, 2022
356671c
+Refactor writing the vertical_coordinate file
Hallberg-NOAA Mar 23, 2022
9c4363e
+Add optional conversion argument to register_diag_scalar
Hallberg-NOAA Mar 26, 2022
a6992a9
Convert global_area_mean diagnostics when writing
Hallberg-NOAA Mar 26, 2022
39206d9
Simplify diagnostics using global_area_integral
Hallberg-NOAA Mar 26, 2022
305f744
Rescale new_depth in apply_topography_edits_from_file
Hallberg-NOAA Mar 26, 2022
c626cc4
MOM_internal_tides diagnostic code simplification
Hallberg-NOAA Mar 26, 2022
6bfd073
+Avoid nonsensical units descriptions
Hallberg-NOAA Mar 26, 2022
063ef75
Minor get_param call reformatting
Hallberg-NOAA Mar 26, 2022
db59e14
MOM_neutral_diffusion code cleanup
Hallberg-NOAA Mar 26, 2022
edd3f9c
+Corrected units in dumbbell get_param calls
Hallberg-NOAA Mar 26, 2022
78c574b
Add missing h_neglect (#98)
NoraLoose Apr 4, 2022
e853f83
additions for stochastic physics and ePBL perts
May 5, 2020
45acf37
cleanup of code and enhancement of ePBL perts
pjpegion Dec 2, 2020
b6ac287
Update MOM_diabatic_driver.F90
pjpegion Dec 2, 2020
2f5d83d
Update MOM_diabatic_driver.F90
pjpegion Dec 2, 2020
cefdb81
Update MOM_diabatic_driver.F90
pjpegion Dec 2, 2020
6ff36ec
add stochy_restart writing to mom_cap
pjpegion Dec 14, 2020
095c36c
additions for stochy restarts
pjpegion Dec 22, 2020
878543d
clean up debug statements
pjpegion Dec 23, 2020
583c6ae
clean up code
pjpegion Jan 6, 2021
48354da
fix non stochastic ePBL calculation
pjpegion Jan 7, 2021
390fee8
re-write of stochastic code to remove CPP directives
pjpegion Jan 29, 2021
f874d11
clean up MOM_domains
pjpegion Jan 29, 2021
045d5c2
make stochastics optional
pjpegion Feb 2, 2021
121ce71
correct coupled_driver/ocean_model_MOM.F90 and other cleanup
pjpegion Feb 2, 2021
65e0e71
clean up of code for MOM6 coding standards
pjpegion Feb 2, 2021
80fdfb4
remove stochastics container
pjpegion Feb 4, 2021
b12c09c
revert MOM_domains.F90
pjpegion Feb 5, 2021
077413a
clean up of mom_ocean_model_nuopc.F90
pjpegion Feb 5, 2021
ebe9d1f
remove PE_here from mom_ocean_model_nuopc.F90
pjpegion Feb 5, 2021
0932b9e
remove debug statements
pjpegion Feb 26, 2021
199126e
stochastic physics re-write
pjpegion Jul 26, 2021
97bbdbf
move stochastics to external directory
pjpegion Jul 26, 2021
8382652
doxygen cleanup
pjpegion Jul 26, 2021
3e573eb
add write_stoch_restart_ocn to MOM_stochastics
pjpegion Jul 26, 2021
64e83b7
add logic to remove incrments from restart if outside IAU window
pjpegion Jul 27, 2021
8775c6d
revert logic wrt increments
pjpegion Jul 28, 2021
71f7354
add comments
pjpegion Jul 28, 2021
aac6b75
update to gfdl 20210806 (#74)
jiandewang Aug 16, 2021
1428a36
Several little things, one is making sponge less verbose.
kshedstrom Sep 22, 2021
a180d33
return a more accurate error message in MOM_stochasics
pjpegion Sep 28, 2021
918742b
Working on boundary layer docs.
kshedstrom Oct 4, 2021
11fa114
Done with EPBL docs?
kshedstrom Oct 6, 2021
4a91628
Undoing some patches from others
kshedstrom Oct 6, 2021
28003a8
Adding in that SAL commit again.
kshedstrom Oct 12, 2021
1853352
correction on type in directory name
jiandewang Oct 28, 2021
6f48b9d
Oops, more cleanup.
kshedstrom Jan 28, 2022
24f412d
Part of the fix for issue #54.
kshedstrom Mar 31, 2022
1e6924e
More fixes for issue #54.
kshedstrom Apr 4, 2022
f50551c
Fix to Z_RESCALE bug in ePBL.
kshedstrom Apr 5, 2022
41757c7
Fix the rebase
kshedstrom Apr 6, 2022
57a1a8a
Rest of fix for issue #54.
kshedstrom Apr 6, 2022
7a2af6c
Merge branch 'dev/esmg' of github.com:ESMG/MOM6 into dev/esmg
kshedstrom Apr 6, 2022
4b218c0
Tweaks in response to Hallberg's comments.
kshedstrom Apr 7, 2022
936b11f
Format string fixes; function index reorder
marshallward Apr 6, 2022
a535021
Mixed layer restrat statement function refactor
marshallward Apr 6, 2022
d2fb2d0
MOM_random: Set mask with bits rather than integer
marshallward Apr 7, 2022
3c7bd19
More cleaning up for issue #54
kshedstrom Apr 7, 2022
9c22ff2
Taking out some unused OBC constants.
kshedstrom Apr 7, 2022
8d92579
Deleted an unused function, made public OBC funcs.
kshedstrom Apr 8, 2022
1383961
It would be good to initialize CS%answers_2018.
kshedstrom Apr 8, 2022
fd2060c
+Add Hybgen regridding
Hallberg-NOAA Apr 5, 2022
28ff86e
+Convective adjustment outside regridding_main
Hallberg-NOAA Apr 5, 2022
6809ee3
Fix tides_CS attribute in unsplit mode (#103)
herrwang0 Apr 10, 2022
c150f37
Correct --with-driver args for coupled tests (#106)
adcroft Apr 10, 2022
d3d0c8e
Merge branch 'dev/gfdl' into pedantic
Hallberg-NOAA Apr 10, 2022
7f6dac2
Merge pull request #105 from marshallward/pedantic
Hallberg-NOAA Apr 10, 2022
e9fdf5d
Standardized syntax in mask2d logical tests
Hallberg-NOAA Apr 5, 2022
7a147ad
+Document or eliminate undocumented interfaces
Hallberg-NOAA Apr 10, 2022
d8bc963
Removal of non-standard extensions
marshallward Apr 11, 2022
d729c67
+Remove append_substring
Hallberg-NOAA Apr 11, 2022
b9697e2
Merge branch 'dev/gfdl' into dev/esmg
Hallberg-NOAA Apr 14, 2022
f54338a
Fix non-standard white space (#109)
Hallberg-NOAA Apr 14, 2022
f6fc6ce
FMS2: get_field_sizes with FMS1 emulation
marshallward Apr 13, 2022
54b8ff5
Merge branch 'dev/gfdl' into field_size_fixes
Hallberg-NOAA Apr 19, 2022
b4b7368
Merge pull request #111 from marshallward/field_size_fixes
Hallberg-NOAA Apr 19, 2022
684878e
Add a deta_dt diagnostic to the split BT/BC mode (#99)
ashao Apr 19, 2022
48ae48a
Remove unused variables
marshallward Apr 13, 2022
861a8f1
Use ODA_2018_ANSWERS to specify ODA remapping
Hallberg-NOAA Apr 20, 2022
03c7485
Merge pull request #112 from marshallward/unused
Hallberg-NOAA Apr 20, 2022
e73c231
+Set thickness_units for use by deta_dt diagnostic
Hallberg-NOAA Apr 20, 2022
ed850e2
Merge branch 'dev/esmg' of https://github.com/ESMG/MOM6 into Bering_d…
Hallberg-NOAA Apr 21, 2022
82b879e
Merge pull request #117 from Hallberg-NOAA/Bering_domain_rescaling_fix
Hallberg-NOAA Apr 22, 2022
548be25
Remove unused module use for calculate_density
Hallberg-NOAA Apr 26, 2022
9c2e573
Document variables in diagnoseMLDbyEnergy
Hallberg-NOAA Apr 26, 2022
07df0bf
Clarify units for equation of state arguments
Hallberg-NOAA Apr 26, 2022
3a9d511
Revise how the drho_dT diagnostic is calculated
Hallberg-NOAA Apr 26, 2022
75ebb40
+Refactored MOM_density_integrals
Hallberg-NOAA Apr 26, 2022
f513554
Clarify argument units for int_density_dz_wright
Hallberg-NOAA Apr 27, 2022
0903609
+Make equation of state interfaces more consistent
Hallberg-NOAA Apr 27, 2022
f52c40a
Fix a bug in the rescaling of drho_dT_dP
Hallberg-NOAA Apr 27, 2022
41a278b
Candidate branch main->dev/gfdl
marshallward May 3, 2022
5824970
Merge pull request #120 from NOAA-GFDL/main_to_dev
adcroft May 4, 2022
84d78a6
+Revised stochastics code for style compliance
Hallberg-NOAA Apr 21, 2022
1d8fb50
+Style compliance in external/drifters code
Hallberg-NOAA Apr 21, 2022
9b1d382
Style compliance in external/ODA_hooks code
Hallberg-NOAA Apr 21, 2022
3b05cdf
Impose standard indentation in most driver code
Hallberg-NOAA Apr 21, 2022
005c460
Impose standard indentation in nuopc_cap code
Hallberg-NOAA Apr 21, 2022
0e8acd9
+(*)Fix a scaling bug in MOM_horizontal_regridding
Hallberg-NOAA May 7, 2022
2a362c4
Merge branch 'dev/gfdl' into EOS_interface_cleanup
Hallberg-NOAA May 11, 2022
9d6def6
Merge pull request #118 from Hallberg-NOAA/EOS_interface_cleanup
marshallward May 19, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ gnu:ocean-only-nolibs:
tags:
- ncrc4
script:
- make -f tools/MRS/Makefile pipeline-build-gnu-oceanonly-nolibs
- make -f tools/MRS/Makefile MOM6_SRC=../.. pipeline-build-gnu-oceanonly-nolibs

gnu:ice-ocean-nolibs:
stage: builds
tags:
- ncrc4
script:
- make -f tools/MRS/Makefile pipeline-build-gnu-iceocean-nolibs
- make -f tools/MRS/Makefile MOM6_SRC=../.. pipeline-build-gnu-iceocean-nolibs

intel:repro:
stage: builds
Expand Down
6 changes: 3 additions & 3 deletions .testing/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,9 @@ build/openmp/Makefile: MOM_ACFLAGS=--enable-openmp
build/target/Makefile: MOM_ACFLAGS=
build/opt/Makefile: MOM_ACFLAGS=
build/opt_target/Makefile: MOM_ACFLAGS=
build/coupled/Makefile: MOM_ACFLAGS=--with-driver=coupled_driver
build/nuopc/Makefile: MOM_ACFLAGS=--with-driver=nuopc_driver
build/mct/Makefile: MOM_ACFLAGS=--with-driver=mct_driver
build/coupled/Makefile: MOM_ACFLAGS=--with-driver=FMS_cap
build/nuopc/Makefile: MOM_ACFLAGS=--with-driver=nuopc_cap
build/mct/Makefile: MOM_ACFLAGS=--with-driver=mct_cap

# Fetch regression target source code
build/target/Makefile: | $(TARGET_CODEBASE)
Expand Down
22 changes: 11 additions & 11 deletions config_src/drivers/FMS_cap/MOM_surface_forcing_gfdl.F90
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ subroutine convert_IOB_to_fluxes(IOB, fluxes, index_bounds, Time, valid_time, G,
fluxes%salt_flux_added(is:ie,js:je) = fluxes%salt_flux(is:ie,js:je) ! Diagnostic
else
do j=js,je ; do i=is,ie
if (G%mask2dT(i,j) > 0.5) then
if (G%mask2dT(i,j) > 0.0) then
delta_sss = sfc_state%SSS(i,j) - data_restore(i,j)
delta_sss = sign(1.0,delta_sss)*min(abs(delta_sss),CS%max_delta_srestore)
fluxes%vprec(i,j) = (CS%basin_mask(i,j)*open_ocn_mask(i,j)*CS%srestore_mask(i,j))* &
Expand Down Expand Up @@ -956,13 +956,13 @@ subroutine extract_IOB_stresses(IOB, index_bounds, Time, G, US, CS, taux, tauy,
if (present(taux).and.present(tauy)) then
do j=jsh,jeh ; do I=Isqh,Ieqh
taux(I,j) = 0.0
if ((G%mask2dBu(I,J) + G%mask2dBu(I,J-1)) > 0) &
if ((G%mask2dBu(I,J) + G%mask2dBu(I,J-1)) > 0.0) &
taux(I,j) = (G%mask2dBu(I,J)*taux_in_B(I,J) + G%mask2dBu(I,J-1)*taux_in_B(I,J-1)) / &
(G%mask2dBu(I,J) + G%mask2dBu(I,J-1))
enddo ; enddo
do J=Jsqh,Jeqh ; do i=ish,ieh
tauy(i,J) = 0.0
if ((G%mask2dBu(I,J) + G%mask2dBu(I-1,J)) > 0) &
if ((G%mask2dBu(I,J) + G%mask2dBu(I-1,J)) > 0.0) &
tauy(i,J) = (G%mask2dBu(I,J)*tauy_in_B(I,J) + G%mask2dBu(I-1,J)*tauy_in_B(I-1,J)) / &
(G%mask2dBu(I,J) + G%mask2dBu(I-1,J))
enddo ; enddo
Expand All @@ -984,14 +984,14 @@ subroutine extract_IOB_stresses(IOB, index_bounds, Time, G, US, CS, taux, tauy,

if (present(taux)) then ; do j=jsh,jeh ; do I=Isqh,Ieqh
taux(I,j) = 0.0
if ((G%mask2dT(i,j) + G%mask2dT(i+1,j)) > 0) &
if ((G%mask2dT(i,j) + G%mask2dT(i+1,j)) > 0.0) &
taux(I,j) = (G%mask2dT(i,j)*taux_in_A(i,j) + G%mask2dT(i+1,j)*taux_in_A(i+1,j)) / &
(G%mask2dT(i,j) + G%mask2dT(i+1,j))
enddo ; enddo ; endif

if (present(tauy)) then ; do J=Jsqh,Jeqh ; do i=ish,ieh
tauy(i,J) = 0.0
if ((G%mask2dT(i,j) + G%mask2dT(i,j+1)) > 0) &
if ((G%mask2dT(i,j) + G%mask2dT(i,j+1)) > 0.0) &
tauy(i,J) = (G%mask2dT(i,j)*tauy_in_A(i,j) + G%mask2dT(i,J+1)*tauy_in_A(i,j+1)) / &
(G%mask2dT(i,j) + G%mask2dT(i,j+1))
enddo ; enddo ; endif
Expand Down Expand Up @@ -1029,10 +1029,10 @@ subroutine extract_IOB_stresses(IOB, index_bounds, Time, G, US, CS, taux, tauy,
gustiness = CS%gust_const
if (CS%read_gust_2d) then
if ((wind_stagger == CGRID_NE) .or. &
((wind_stagger == AGRID) .and. (G%mask2dT(i,j) > 0)) .or. &
((wind_stagger == AGRID) .and. (G%mask2dT(i,j) > 0.0)) .or. &
((wind_stagger == BGRID_NE) .and. &
(((G%mask2dBu(I,J) + G%mask2dBu(I-1,J-1)) + &
(G%mask2dBu(I,J-1) + G%mask2dBu(I-1,J))) > 0)) ) &
(G%mask2dBu(I,J-1) + G%mask2dBu(I-1,J))) > 0.0)) ) &
gustiness = CS%gust(i,j)
endif
ustar(i,j) = sqrt(gustiness*IRho0 + IRho0*Pa_conversion*IOB%stress_mag(i-i0,j-j0))
Expand All @@ -1050,7 +1050,7 @@ subroutine extract_IOB_stresses(IOB, index_bounds, Time, G, US, CS, taux, tauy,
do j=js,je ; do i=is,ie
tau_mag = 0.0 ; gustiness = CS%gust_const
if (((G%mask2dBu(I,J) + G%mask2dBu(I-1,J-1)) + &
(G%mask2dBu(I,J-1) + G%mask2dBu(I-1,J))) > 0) then
(G%mask2dBu(I,J-1) + G%mask2dBu(I-1,J))) > 0.0) then
tau_mag = sqrt(((G%mask2dBu(I,J)*(taux_in_B(I,J)**2 + tauy_in_B(I,J)**2) + &
G%mask2dBu(I-1,J-1)*(taux_in_B(I-1,J-1)**2 + tauy_in_B(I-1,J-1)**2)) + &
(G%mask2dBu(I,J-1)*(taux_in_B(I,J-1)**2 + tauy_in_B(I,J-1)**2) + &
Expand All @@ -1069,7 +1069,7 @@ subroutine extract_IOB_stresses(IOB, index_bounds, Time, G, US, CS, taux, tauy,
do j=js,je ; do i=is,ie
tau_mag = G%mask2dT(i,j) * sqrt(taux_in_A(i,j)**2 + tauy_in_A(i,j)**2)
gustiness = CS%gust_const
if (CS%read_gust_2d .and. (G%mask2dT(i,j) > 0)) gustiness = CS%gust(i,j)
if (CS%read_gust_2d .and. (G%mask2dT(i,j) > 0.0)) gustiness = CS%gust(i,j)
if (do_ustar) ustar(i,j) = sqrt(gustiness*IRho0 + IRho0 * tau_mag)
if (CS%answers_2018) then
if (do_gustless) gustless_ustar(i,j) = sqrt(US%L_to_Z*tau_mag / CS%Rho0)
Expand All @@ -1080,10 +1080,10 @@ subroutine extract_IOB_stresses(IOB, index_bounds, Time, G, US, CS, taux, tauy,
else ! C-grid wind stresses.
do j=js,je ; do i=is,ie
taux2 = 0.0 ; tauy2 = 0.0
if ((G%mask2dCu(I-1,j) + G%mask2dCu(I,j)) > 0) &
if ((G%mask2dCu(I-1,j) + G%mask2dCu(I,j)) > 0.0) &
taux2 = (G%mask2dCu(I-1,j)*taux_in_C(I-1,j)**2 + G%mask2dCu(I,j)*taux_in_C(I,j)**2) / &
(G%mask2dCu(I-1,j) + G%mask2dCu(I,j))
if ((G%mask2dCv(i,J-1) + G%mask2dCv(i,J)) > 0) &
if ((G%mask2dCv(i,J-1) + G%mask2dCv(i,J)) > 0.0) &
tauy2 = (G%mask2dCv(i,J-1)*tauy_in_C(i,J-1)**2 + G%mask2dCv(i,J)*tauy_in_C(i,J)**2) / &
(G%mask2dCv(i,J-1) + G%mask2dCv(i,J))
tau_mag = sqrt(taux2 + tauy2)
Expand Down
2 changes: 1 addition & 1 deletion config_src/drivers/FMS_cap/ocean_model_MOM.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ subroutine Ocean_stock_pe(OS, index, value, time_index)
case (ISTOCK_HEAT) ! Return the heat content of the ocean in J.
call get_ocean_stocks(OS%MOM_CSp, heat=value, on_PE_only=.true.)
case (ISTOCK_SALT) ! Return the mass of the salt in the ocean in kg.
call get_ocean_stocks(OS%MOM_CSp, salt=value, on_PE_only=.true.)
call get_ocean_stocks(OS%MOM_CSp, salt=value, on_PE_only=.true.)
case default ; value = 0.0
end select
! If the FMS coupler is changed so that Ocean_stock_PE is only called on
Expand Down
50 changes: 25 additions & 25 deletions config_src/drivers/mct_cap/mom_ocean_model_mct.F90
Original file line number Diff line number Diff line change
Expand Up @@ -689,34 +689,34 @@ subroutine ocean_model_restart(OS, timestamp, restartname)
"restart files can only be created after the buoyancy forcing is applied.")

if (present(restartname)) then
call save_restart(OS%dirs%restart_output_dir, OS%Time, OS%grid, &
call save_restart(OS%dirs%restart_output_dir, OS%Time, OS%grid, &
OS%restart_CSp, GV=OS%GV, filename=restartname)
call forcing_save_restart(OS%forcing_CSp, OS%grid, OS%Time, &
call forcing_save_restart(OS%forcing_CSp, OS%grid, OS%Time, &
OS%dirs%restart_output_dir) ! Is this needed?
if (OS%use_ice_shelf) then
call ice_shelf_save_restart(OS%Ice_shelf_CSp, OS%Time, &
if (OS%use_ice_shelf) then
call ice_shelf_save_restart(OS%Ice_shelf_CSp, OS%Time, &
OS%dirs%restart_output_dir)
endif
endif
else
if (BTEST(OS%Restart_control,1)) then
call save_restart(OS%dirs%restart_output_dir, OS%Time, OS%grid, &
OS%restart_CSp, .true., GV=OS%GV)
call forcing_save_restart(OS%forcing_CSp, OS%grid, OS%Time, &
OS%dirs%restart_output_dir, .true.)
if (OS%use_ice_shelf) then
call ice_shelf_save_restart(OS%Ice_shelf_CSp, OS%Time, OS%dirs%restart_output_dir, .true.)
endif
endif
if (BTEST(OS%Restart_control,0)) then
call save_restart(OS%dirs%restart_output_dir, OS%Time, OS%grid, &
OS%restart_CSp, GV=OS%GV)
call forcing_save_restart(OS%forcing_CSp, OS%grid, OS%Time, &
OS%dirs%restart_output_dir)
if (OS%use_ice_shelf) then
call ice_shelf_save_restart(OS%Ice_shelf_CSp, OS%Time, OS%dirs%restart_output_dir)
endif
endif
end if
if (BTEST(OS%Restart_control,1)) then
call save_restart(OS%dirs%restart_output_dir, OS%Time, OS%grid, &
OS%restart_CSp, .true., GV=OS%GV)
call forcing_save_restart(OS%forcing_CSp, OS%grid, OS%Time, &
OS%dirs%restart_output_dir, .true.)
if (OS%use_ice_shelf) then
call ice_shelf_save_restart(OS%Ice_shelf_CSp, OS%Time, OS%dirs%restart_output_dir, .true.)
endif
endif
if (BTEST(OS%Restart_control,0)) then
call save_restart(OS%dirs%restart_output_dir, OS%Time, OS%grid, &
OS%restart_CSp, GV=OS%GV)
call forcing_save_restart(OS%forcing_CSp, OS%grid, OS%Time, &
OS%dirs%restart_output_dir)
if (OS%use_ice_shelf) then
call ice_shelf_save_restart(OS%Ice_shelf_CSp, OS%Time, OS%dirs%restart_output_dir)
endif
endif
endif

end subroutine ocean_model_restart
! </SUBROUTINE> NAME="ocean_model_restart"
Expand Down Expand Up @@ -1033,7 +1033,7 @@ subroutine Ocean_stock_pe(OS, index, value, time_index)
case (ISTOCK_HEAT) ! Return the heat content of the ocean in J.
call get_ocean_stocks(OS%MOM_CSp, heat=value, on_PE_only=.true.)
case (ISTOCK_SALT) ! Return the mass of the salt in the ocean in kg.
call get_ocean_stocks(OS%MOM_CSp, salt=value, on_PE_only=.true.)
call get_ocean_stocks(OS%MOM_CSp, salt=value, on_PE_only=.true.)
case default ; value = 0.0
end select
! If the FMS coupler is changed so that Ocean_stock_PE is only called on
Expand Down
Loading