Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
d2af9df
Clean up some changes that were made for development purposes
May 9, 2017
f4e0063
Changes made so that regridding onto pure isopycnal kind of works. Ne…
May 10, 2017
ab0575d
Add option to skip convective readjustment when reading offline fields
May 17, 2017
ff690d1
To aid in the debugging of tracer routines, a new subroutine is created
Jun 1, 2017
af73ea8
Tracer now conserves when remapping input fields onto a different grid.
Jun 1, 2017
7ddc722
Added option to intersperse ALE step between horizontal advection
Jun 2, 2017
53d03a7
Fixed conflicts with upstream dev/gfdl
Jun 8, 2017
48fe2c7
Added modified Leith viscosity.
sdbachman Jun 9, 2017
0576b2b
(*)Moved set_viscous_BBL out of the dynamics code
Hallberg-NOAA Jun 13, 2017
e1aed13
+Eliminated calc_bbl from the vertvisc_type
Hallberg-NOAA Jun 13, 2017
144daae
Merge branch 'dev/gfdl' of github.com:NOAA-GFDL/MOM6 into dev/gfdl
Hallberg-NOAA Jun 13, 2017
b80fc8b
Merge branch 'dev/gfdl' of github.com:NOAA-GFDL/MOM6 into dev/gfdl
Hallberg-NOAA Jun 13, 2017
2b8670f
Merge pull request #519 from Hallberg-NOAA/dev/gfdl
adcroft Jun 13, 2017
833dd84
Bugfix to reintroduce group halo pass check removed in 282a1601c9bccf…
wfcooke Jun 14, 2017
db3a5b5
(*)Corrected the barotropic mass source compensation
Hallberg-NOAA Jun 14, 2017
ab9e05e
+BT_OBC%H_u fix.
kshedstrom Jun 14, 2017
1e8c2b4
Merge pull request #520 from NOAA-GFDL/user/wfcooke/grouphalopass_fix
wfcooke Jun 14, 2017
e8b7f0e
Merge branch 'dev/gfdl' of github.com:NOAA-GFDL/MOM6 into dev/gfdl
Hallberg-NOAA Jun 14, 2017
5daf60f
Corrected typos in dOxyGen comments
Hallberg-NOAA Jun 14, 2017
a8565c7
Replaced group_pass of h with pass_var of h
Hallberg-NOAA Jun 14, 2017
e22cdeb
added Doxygen comments to MOM_checksum_packages.F90
CarolineCardinale Jun 15, 2017
d20e897
Merge pull request #521 from Hallberg-NOAA/dev/gfdl
adcroft Jun 15, 2017
76a8484
Merge remote-tracking branch 'refs/remotes/origin/dev/gfdl' into dev/…
CarolineCardinale Jun 15, 2017
73380f5
added Doxygen comments to MOM_checksum_packages.F90
CarolineCardinale Jun 15, 2017
a06258f
Added Doxygen comments to MOM_dynamics_legacy_split.F90
CarolineCardinale Jun 15, 2017
e216c50
Added Doxygen comments to MOM_dynamics_unsplit.F90
CarolineCardinale Jun 15, 2017
22827d0
Added doxygen comments to MOM_dynamics_unsplit_RK2.F90
CarolineCardinale Jun 16, 2017
d8627bc
Merge branch 'dev/gfdl' of https://github.com/NOAA-GFDL/MOM6 into off…
Jun 16, 2017
ce44698
Undo some changes made for diagnostic purposes, add comments, and cle…
Jun 16, 2017
ced9786
Added doxygen comments to MOM_interface_heights.F90
CarolineCardinale Jun 16, 2017
869be3c
Added doxygen comments to MOM_verticalGrid.F90
CarolineCardinale Jun 16, 2017
d96c87b
Final changes before PR
Jun 16, 2017
9aa2110
Found another BT_cont issue with silly values.
kshedstrom Jun 17, 2017
c929a77
Added Doxygen comments to MOM_checksum_packages.F90
CarolineCardinale Jun 19, 2017
8abf4af
Added Doxygen comments to MOM_dynamics_legacy_split.F90
CarolineCardinale Jun 19, 2017
a74868f
Added doxygen comments to MOM_verticalGrid.F90
CarolineCardinale Jun 19, 2017
3486d83
Merge branch 'ashao-offline_tracer_updates' into dev/gfdl
adcroft Jun 19, 2017
bb5a9cc
Merge pull request #524 from CarolineCardinale/dev/gfdl
adcroft Jun 19, 2017
64b35c3
Added doxygen comments to MOM_legacy_barotropic.F90
CarolineCardinale Jun 19, 2017
fcca0b8
+Permit Gregorian calendar with MOM6 solo driver
Hallberg-NOAA Jun 19, 2017
56316f3
Merge branch 'dev/gfdl' of github.com:NOAA-GFDL/MOM6 into dev/gfdl
Hallberg-NOAA Jun 19, 2017
5c49c2d
Added doxygen comments to MOM_OCMIP_CFC.F90
CarolineCardinale Jun 19, 2017
5c9706f
Corrected two openMP directives
Hallberg-NOAA Jun 19, 2017
4274481
* Corrected diurnal tide _struct
awallcraft Jun 20, 2017
1d44eec
+Another silly_value find, in Coriolis.
kshedstrom Jun 20, 2017
9ccbe6f
Merge pull request #525 from Hallberg-NOAA/dev/gfdl
adcroft Jun 20, 2017
a64f5ba
Merge remote-tracking branch 'gfdl/dev/gfdl' into user/ksh/open_bc
kshedstrom Jun 20, 2017
f348179
Merge pull request #526 from awallcraft/dev/gfdl
adcroft Jun 20, 2017
379c6b0
Changed intent for G in tidal_forcing_init()
adcroft Jun 21, 2017
9aa01c9
Merge branch 'dev/gfdl' of https://github.com/NOAA-GFDL/MOM6 into dev…
Jun 21, 2017
0356c63
Added doxygen comments to MOM_domains.F90
Jun 21, 2017
e9b0a48
Added doxygen comments to MOM_diag_to_Z.F90
Jun 21, 2017
3fdcb86
Added doxygen comments to MOM_diagnostics.F90
Jun 21, 2017
c8cdb04
Added doxygen comments to MOM_PointAccel.F90
Jun 21, 2017
154877e
Added doxygen comments to MOM_sum_output.F90
Jun 21, 2017
26ed48b
Added doxygen comments to MOM_wave_structure.F90
Jun 21, 2017
e09f0a9
Merge pull request #528 from adcroft/fix-domain-intent-tidal-forcing-…
Hallberg-NOAA Jun 21, 2017
0d5399f
Merge branch 'dev/gfdl' of https://github.com/NOAA-GFDL/MOM6 into dev…
CarolineCardinale Jun 22, 2017
86972b5
Added doxygen comments to subroutines
CarolineCardinale Jun 22, 2017
d9afca3
+Added the ability to read a time type as a date
Hallberg-NOAA Jun 22, 2017
3f7def7
Eliminated trailing white space
Hallberg-NOAA Jun 22, 2017
db9ae76
Merge pull request #529 from Hallberg-NOAA/dev/gfdl
adcroft Jun 22, 2017
0b961d1
Added doxumentation for the Fox-Kemper scheme
adcroft Jun 22, 2017
d2e6771
Merge branch 'dev/gfdl' of https://github.com/NOAA-GFDL/MOM6 into dev…
CarolineCardinale Jun 23, 2017
54b51b3
Initialized CS%Modified_Leith.
sdbachman Jun 23, 2017
40a7aed
Added Doxygen comments to subroutines
CarolineCardinale Jun 23, 2017
127e8dd
Merge pull request #515 from septicscuzzy/add_Leith
adcroft Jun 23, 2017
b616fbd
Merge branch 'dev/gfdl' of https://github.com/NOAA-GFDL/MOM6 into dev…
Jun 23, 2017
86786a5
Added Doxygen comments to subroutines
Jun 23, 2017
f4da414
Merge branch 'user/ksh/open_bc' of https://github.com/ESMG/MOM6 into …
Hallberg-NOAA Jun 23, 2017
f9087c5
Merge branch 'ESMG-user/ksh/open_bc' into dev/gfdl
Hallberg-NOAA Jun 23, 2017
2cccc6a
Merge pull request #530 from adcroft/document-fox-kemper
Hallberg-NOAA Jun 23, 2017
8d8ad81
Merge pull request #533 from CarolineCardinale/dev/gfdl
Hallberg-NOAA Jun 23, 2017
97c8f81
Corrects schematic of symmetric arrays
adcroft Jun 27, 2017
0c4f909
Merge pull request #534 from adcroft/correct-horizontal-indexing-sche…
Hallberg-NOAA Jun 28, 2017
d69ca55
Fixes openmp directives for Leith mods
adcroft Jun 28, 2017
76bd4d4
Renames "mod" variable to avoid using imod() fn
adcroft Jun 28, 2017
9c3ff33
Merge pull request #535 from adcroft/fix-hor-visc-openmp
Hallberg-NOAA Jun 29, 2017
e6b7df2
+Always call initialization routines to get_params
Hallberg-NOAA Jun 29, 2017
530fea2
+Made OS argument to ocean_model_flux_init optional
Hallberg-NOAA Jun 29, 2017
5f0fec7
Removed trailing white space
Hallberg-NOAA Jun 29, 2017
83f606a
Merge pull request #536 from adcroft/fix-gnu-openmp-490
Hallberg-NOAA Jun 29, 2017
ebbce13
Merge branch 'dev/gfdl' of github.com:NOAA-GFDL/MOM6 into dev/gfdl
Hallberg-NOAA Jun 29, 2017
74bcc77
Merge branch 'dev/gfdl' of https://github.com/Hallberg-NOAA/MOM6 into…
adcroft Jun 29, 2017
249e9f6
Merge branch 'Hallberg-NOAA-dev/gfdl' into dev/gfdl
adcroft Jun 29, 2017
f6bade7
Merge branch 'dev/gfdl' of github.com:NOAA-GFDL/MOM6 into dev/gfdl
Hallberg-NOAA Jun 29, 2017
fec16b9
Renamed variables "mod" to "mdl"
Hallberg-NOAA Jun 29, 2017
a1ac57f
Merge pull request #538 from Hallberg-NOAA/dev/gfdl
adcroft Jun 30, 2017
3e50273
Re-factor of MOM_lateral_mixing_coeffs.F90 (VarMix)
adcroft Jul 1, 2017
a110df9
Fix VarMix cleanup with openMP
adcroft Jul 1, 2017
f733ff0
Implemented scale-aware option for MLE
adcroft Jul 2, 2017
6e4eaa4
Fixed argument name to match declaration gen_trcr_col_physics()
adcroft Jul 2, 2017
3eecc26
Replaced "sum" with "res" for variable name
adcroft Jul 2, 2017
0f28767
Replaced array-syntax with loops
adcroft Jul 2, 2017
04116e8
Avoid allocating unused arrays in diabatic_driver
adcroft Jul 2, 2017
b56e593
Added "skip_diags" argument to extractFluxes1d()
adcroft Jul 2, 2017
7d401bc
Merge pull request #539 from adcroft/cleanup-varmix
Hallberg-NOAA Jul 5, 2017
13541f4
Merge pull request #540 from adcroft/mle-length-scale
Hallberg-NOAA Jul 5, 2017
e05d8ae
Merge pull request #541 from adcroft/fix-generic-tracer-MLD-arg
Hallberg-NOAA Jul 5, 2017
e9f146d
Merge pull request #542 from adcroft/replace-keyword-variable-name
Hallberg-NOAA Jul 5, 2017
0192c3c
Merge pull request #544 from adcroft/fix-hdfs-diagnostic
Hallberg-NOAA Jul 5, 2017
6db42af
Fix openMP directive in MOM_forcing_type.F90
adcroft Jul 5, 2017
b2e405a
Merge branch 'dev/master' into dev/ncar
gustavo-marques Jul 21, 2017
976671a
Merge branch 'dev/ncar' of https://github.com/NCAR/MOM6 into dev/ncar
gustavo-marques Jul 31, 2017
a51bd0b
Fix thickness conversion
gustavo-marques Jul 31, 2017
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
84 changes: 42 additions & 42 deletions config_src/coupled_driver/MOM_surface_forcing.F90

Large diffs are not rendered by default.

57 changes: 30 additions & 27 deletions config_src/coupled_driver/ocean_model_MOM.F90
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module ocean_model_mod

use MOM, only : initialize_MOM, step_MOM, MOM_control_struct, MOM_end
use MOM, only : calculate_surface_state, finish_MOM_initialization
use MOM, only : step_tracers
use MOM, only : step_offline
use MOM_constants, only : CELSIUS_KELVIN_OFFSET, hlf
use MOM_diag_mediator, only : diag_ctrl, enable_averaging, disable_averaging
use MOM_diag_mediator, only : diag_mediator_close_registration, diag_mediator_end
Expand Down Expand Up @@ -222,7 +222,7 @@ subroutine ocean_model_init(Ocean_sfc, OS, Time_init, Time_in)
real :: G_Earth ! The gravitational acceleration in m s-2.
! This include declares and sets the variable "version".
#include "version_variable.h"
character(len=40) :: mod = "ocean_model_init" ! This module's name.
character(len=40) :: mdl = "ocean_model_init" ! This module's name.
character(len=48) :: stagger
integer :: secs, days
type(param_file_type) :: param_file !< A structure to parse for run-time parameters
Expand All @@ -248,22 +248,22 @@ subroutine ocean_model_init(Ocean_sfc, OS, Time_init, Time_in)
OS%fluxes%C_p = OS%MOM_CSp%tv%C_p

! Read all relevant parameters and write them to the model log.
call log_version(param_file, mod, version, "")
call get_param(param_file, mod, "RESTART_CONTROL", OS%Restart_control, &
call log_version(param_file, mdl, version, "")
call get_param(param_file, mdl, "RESTART_CONTROL", OS%Restart_control, &
"An integer whose bits encode which restart files are \n"//&
"written. Add 2 (bit 1) for a time-stamped file, and odd \n"//&
"(bit 0) for a non-time-stamped file. A restart file \n"//&
"will be saved at the end of the run segment for any \n"//&
"non-negative value.", default=1)
call get_param(param_file, mod, "TIMEUNIT", Time_unit, &
call get_param(param_file, mdl, "TIMEUNIT", Time_unit, &
"The time unit for ENERGYSAVEDAYS.", &
units="s", default=86400.0)
call get_param(param_file, mod, "ENERGYSAVEDAYS",OS%energysavedays, &
call get_param(param_file, mdl, "ENERGYSAVEDAYS",OS%energysavedays, &
"The interval in units of TIMEUNIT between saves of the \n"//&
"energies of the run and other globally summed diagnostics.", &
default=set_time(0,days=1), timeunit=Time_unit)

call get_param(param_file, mod, "OCEAN_SURFACE_STAGGER", stagger, &
call get_param(param_file, mdl, "OCEAN_SURFACE_STAGGER", stagger, &
"A case-insensitive character string to indicate the \n"//&
"staggering of the surface velocity field that is \n"//&
"returned to the coupler. Valid values include \n"//&
Expand All @@ -274,38 +274,38 @@ subroutine ocean_model_init(Ocean_sfc, OS, Time_init, Time_in)
else ; call MOM_error(FATAL,"ocean_model_init: OCEAN_SURFACE_STAGGER = "// &
trim(stagger)//" is invalid.") ; endif

call get_param(param_file, mod, "RESTORE_SALINITY",OS%restore_salinity, &
call get_param(param_file, mdl, "RESTORE_SALINITY",OS%restore_salinity, &
"If true, the coupled driver will add a globally-balanced \n"//&
"fresh-water flux that drives sea-surface salinity \n"//&
"toward specified values.", default=.false.)
call get_param(param_file, mod, "RESTORE_TEMPERATURE",OS%restore_temp, &
call get_param(param_file, mdl, "RESTORE_TEMPERATURE",OS%restore_temp, &
"If true, the coupled driver will add a \n"//&
"heat flux that drives sea-surface temperauture \n"//&
"toward specified values.", default=.false.)
call get_param(param_file, mod, "RHO_0", Rho0, &
call get_param(param_file, mdl, "RHO_0", Rho0, &
"The mean ocean density used with BOUSSINESQ true to \n"//&
"calculate accelerations and the mass for conservation \n"//&
"properties, or with BOUSSINSEQ false to convert some \n"//&
"parameters from vertical units of m to kg m-2.", &
units="kg m-3", default=1035.0)
call get_param(param_file, mod, "G_EARTH", G_Earth, &
call get_param(param_file, mdl, "G_EARTH", G_Earth, &
"The gravitational acceleration of the Earth.", &
units="m s-2", default = 9.80)

call get_param(param_file, mod, "ICE_SHELF", OS%use_ice_shelf, &
call get_param(param_file, mdl, "ICE_SHELF", OS%use_ice_shelf, &
"If true, enables the ice shelf model.", default=.false.)

call get_param(param_file, mod, "ICEBERGS_APPLY_RIGID_BOUNDARY", OS%icebergs_apply_rigid_boundary, &
call get_param(param_file, mdl, "ICEBERGS_APPLY_RIGID_BOUNDARY", OS%icebergs_apply_rigid_boundary, &
"If true, allows icebergs to change boundary condition felt by ocean", default=.false.)

if (OS%icebergs_apply_rigid_boundary) then
call get_param(param_file, mod, "KV_ICEBERG", OS%kv_iceberg, &
call get_param(param_file, mdl, "KV_ICEBERG", OS%kv_iceberg, &
"The viscosity of the icebergs", units="m2 s-1",default=1.0e10)
call get_param(param_file, mod, "DENSITY_ICEBERGS", OS%density_iceberg, &
call get_param(param_file, mdl, "DENSITY_ICEBERGS", OS%density_iceberg, &
"A typical density of icebergs.", units="kg m-3", default=917.0)
call get_param(param_file, mod, "LATENT_HEAT_FUSION", OS%latent_heat_fusion, &
call get_param(param_file, mdl, "LATENT_HEAT_FUSION", OS%latent_heat_fusion, &
"The latent heat of fusion.", units="J/kg", default=hlf)
call get_param(param_file, mod, "BERG_AREA_THRESHOLD", OS%berg_area_threshold, &
call get_param(param_file, mdl, "BERG_AREA_THRESHOLD", OS%berg_area_threshold, &
"Fraction of grid cell which iceberg must occupy, so that fluxes \n"//&
"below berg are set to zero. Not applied for negative \n"//&
" values.", units="non-dim", default=-1.0)
Expand Down Expand Up @@ -472,7 +472,7 @@ subroutine update_ocean_model(Ice_ocean_boundary, OS, Ocean_sfc, &
Master_time = OS%Time ; Time1 = OS%Time

if(OS%MOM_Csp%offline_tracer_mode) then
call step_tracers(OS%fluxes, OS%state, Time1, time_step, OS%MOM_CSp)
call step_offline(OS%fluxes, OS%state, Time1, time_step, OS%MOM_CSp)
else
call step_MOM(OS%fluxes, OS%state, Time1, time_step, OS%MOM_CSp)
endif
Expand Down Expand Up @@ -879,25 +879,28 @@ end subroutine ocean_model_init_sfc
!WGA

subroutine ocean_model_flux_init(OS)
type(ocean_state_type), pointer :: OS
type(ocean_state_type), optional, pointer :: OS

integer :: dummy
character(len=128) :: default_ice_restart_file, default_ocean_restart_file
character(len=40) :: mod = "ocean_model_flux_init" ! This module's name.

character(len=40) :: mdl = "ocean_model_flux_init" ! This module's name.
type(param_file_type) :: param_file !< A structure to parse for run-time parameters
type(directories) :: dirs_tmp ! A structure containing several relevant directory paths.
logical :: use_OCMIP_CFCs, use_MOM_generic_tracer
logical :: OS_is_set

OS_is_set = .false. ; if (present(OS)) OS_is_set = associated(OS)

call get_MOM_Input(param_file, dirs_tmp, check_params=.false.)

call get_param(param_file, mod, "USE_OCMIP2_CFC", use_OCMIP_CFCs, &
default=.false.)
call get_param(param_file, mod, "USE_generic_tracer", use_MOM_generic_tracer,&
default=.false.)
call get_param(param_file, mdl, "USE_OCMIP2_CFC", use_OCMIP_CFCs, &
default=.false., do_not_log=.true.)
call get_param(param_file, mdl, "USE_generic_tracer", use_MOM_generic_tracer,&
default=.false., do_not_log=.true.)

call close_param_file(param_file, quiet_close=.true.)

if(.not.associated(OS)) then
if(.not.OS_is_set) then
if (use_OCMIP_CFCs)then
default_ice_restart_file = 'ice_ocmip2_cfc.res.nc'
default_ocean_restart_file = 'ocmip2_cfc.res.nc'
Expand All @@ -919,7 +922,7 @@ subroutine ocean_model_flux_init(OS)

if (use_MOM_generic_tracer) then
#ifdef _USE_GENERIC_TRACER
call MOM_generic_flux_init
call MOM_generic_flux_init()
#else
call MOM_error(FATAL, &
"call_tracer_register: use_MOM_generic_tracer=.true. BUT not compiled with _USE_GENERIC_TRACER")
Expand Down
Loading