Skip to content

Commit

Permalink
Merge branch 'Hallberg-NOAA-test_depth_units' into dev/gfdl
Browse files Browse the repository at this point in the history
  • Loading branch information
adcroft committed Oct 15, 2018
2 parents 587c9b7 + 0569c2b commit ef9ecf2
Show file tree
Hide file tree
Showing 108 changed files with 4,354 additions and 4,231 deletions.
16 changes: 8 additions & 8 deletions config_src/solo_driver/Neverland_surface_forcing.F90
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ subroutine Neverland_surface_forcing_init(Time, G, param_file, diag, CS)
! This include declares and sets the variable "version".
#include "version_variable.h"
! Local variables
character(len=40) :: mod = "Neverland_surface_forcing" ! This module's name.
character(len=40) :: mdl = "Neverland_surface_forcing" ! This module's name.

if (associated(CS)) then
call MOM_error(WARNING, "Neverland_surface_forcing_init called with an associated "// &
Expand All @@ -229,31 +229,31 @@ subroutine Neverland_surface_forcing_init(Time, G, param_file, diag, CS)
CS%diag => diag

! Read all relevant parameters and write them to the model log.
call log_version(param_file, mod, version, "")
call get_param(param_file, mod, "ENABLE_THERMODYNAMICS", CS%use_temperature, &
call log_version(param_file, mdl, version, "")
call get_param(param_file, mdl, "ENABLE_THERMODYNAMICS", CS%use_temperature, &
"If true, Temperature and salinity are used as state \n"//&
"variables.", default=.true.)

call get_param(param_file, mod, "G_EARTH", CS%G_Earth, &
call get_param(param_file, mdl, "G_EARTH", CS%G_Earth, &
"The gravitational acceleration of the Earth.", &
units="m s-2", default = 9.80)
call get_param(param_file, mod, "RHO_0", CS%Rho0, &
call get_param(param_file, mdl, "RHO_0", CS%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, "GUST_CONST", CS%gust_const, &
! call get_param(param_file, mdl, "GUST_CONST", CS%gust_const, &
! "The background gustiness in the winds.", units="Pa", &
! default=0.02)

call get_param(param_file, mod, "RESTOREBUOY", CS%restorebuoy, &
call get_param(param_file, mdl, "RESTOREBUOY", CS%restorebuoy, &
"If true, the buoyancy fluxes drive the model back \n"//&
"toward some specified surface state with a rate \n"//&
"given by FLUXCONST.", default= .false.)

if (CS%restorebuoy) then
call get_param(param_file, mod, "FLUXCONST", CS%flux_const, &
call get_param(param_file, mdl, "FLUXCONST", CS%flux_const, &
"The constant that relates the restoring surface fluxes \n"//&
"to the relative surface anomalies (akin to a piston \n"//&
"velocity). Note the non-MKS units.", units="m day-1", &
Expand Down
4 changes: 2 additions & 2 deletions src/ALE/MOM_ALE.F90
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ subroutine ALE_main( G, GV, h, u, v, tv, Reg, CS, dt, frac_shelf_h)
if (CS%id_T_preale > 0) call post_data(CS%id_T_preale, tv%T, CS%diag)
if (CS%id_S_preale > 0) call post_data(CS%id_S_preale, tv%S, CS%diag)
if (CS%id_e_preale > 0) then
call find_eta(h, tv, GV%g_Earth, G, GV, eta_preale)
call find_eta(h, tv, G, GV, eta_preale, eta_to_m=1.0)
call post_data(CS%id_e_preale, eta_preale, CS%diag)
endif

Expand Down Expand Up @@ -1225,7 +1225,7 @@ subroutine ALE_initThicknessToCoord( CS, G, GV, h )
integer :: i, j, k

do j = G%jsd,G%jed ; do i = G%isd,G%ied
h(i,j,:) = GV%m_to_H * getStaticThickness( CS%regridCS, 0., G%bathyT(i,j) )
h(i,j,:) = GV%m_to_H * getStaticThickness( CS%regridCS, 0., G%Zd_to_m*G%bathyT(i,j) )
enddo ; enddo

end subroutine ALE_initThicknessToCoord
Expand Down
140 changes: 70 additions & 70 deletions src/ALE/MOM_regridding.F90

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/ALE/coord_adapt.F90
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ subroutine build_adapt_column(CS, G, GV, tv, i, j, zInt, tInt, sInt, h, zNext)
zNext(nz+1) = zInt(i,j,nz+1)

! local depth for scaling diffusivity
depth = G%bathyT(i,j) * GV%m_to_H
depth = G%bathyT(i,j) * G%Zd_to_m*GV%m_to_H

! initialize del2sigma to zero
del2sigma(:) = 0.
Expand Down
132 changes: 80 additions & 52 deletions src/core/MOM.F90

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/core/MOM_CoriolisAdv.F90
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ subroutine CorAdCalc(u, v, h, uh, vh, CAu, CAv, OBC, AD, G, GV, CS)
is = G%isc ; ie = G%iec ; js = G%jsc ; je = G%jec
Isq = G%IscB ; Ieq = G%IecB ; Jsq = G%JscB ; Jeq = G%JecB ; nz = G%ke
h_neglect = GV%H_subroundoff
h_tiny = GV%Angstrom ! Perhaps this should be set to h_neglect instead.
h_tiny = GV%Angstrom_H ! Perhaps this should be set to h_neglect instead.

!$OMP parallel do default(private) shared(Isq,Ieq,Jsq,Jeq,G,Area_h)
do j=Jsq-1,Jeq+2 ; do I=Isq-1,Ieq+2
Expand Down
2 changes: 1 addition & 1 deletion src/core/MOM_PressureForce.F90
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module MOM_PressureForce
use MOM_PressureForce_Mont, only : PressureForce_Mont_Bouss, PressureForce_Mont_nonBouss
use MOM_PressureForce_Mont, only : PressureForce_Mont_init, PressureForce_Mont_end
use MOM_PressureForce_Mont, only : PressureForce_Mont_CS
use MOM_tidal_forcing, only : calc_tidal_forcing, tidal_forcing_CS
use MOM_tidal_forcing, only : tidal_forcing_CS
use MOM_variables, only : thermo_var_ptrs
use MOM_verticalGrid, only : verticalGrid_type
use MOM_ALE, only: ALE_CS
Expand Down
Loading

0 comments on commit ef9ecf2

Please sign in to comment.