Skip to content

Commit

Permalink
Remove unused module use for calculate_density
Browse files Browse the repository at this point in the history
  Removed unused module use statements for EOS_type, calculate_density or
calculate_density_derivs in 20 files.  All answers are bitwise identical.
  • Loading branch information
Hallberg-NOAA committed Apr 26, 2022
1 parent 82b879e commit 548be25
Show file tree
Hide file tree
Showing 20 changed files with 6 additions and 23 deletions.
2 changes: 0 additions & 2 deletions src/ALE/MOM_ALE.F90
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ module MOM_ALE
use MOM_diag_mediator, only : time_type, diag_update_remap_grids
use MOM_diag_vkernels, only : interpolate_column, reintegrate_column
use MOM_domains, only : create_group_pass, do_group_pass, group_pass_type
use MOM_EOS, only : calculate_density
use MOM_domains, only : create_group_pass, do_group_pass, group_pass_type
use MOM_error_handler, only : MOM_error, FATAL, WARNING
use MOM_error_handler, only : callTree_showQuery
use MOM_error_handler, only : callTree_enter, callTree_leave, callTree_waypoint
Expand Down
2 changes: 1 addition & 1 deletion src/diagnostics/MOM_wave_speed.F90
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module MOM_wave_speed
use MOM_unit_scaling, only : unit_scale_type
use MOM_variables, only : thermo_var_ptrs
use MOM_verticalGrid, only : verticalGrid_type
use MOM_EOS, only : calculate_density, calculate_density_derivs
use MOM_EOS, only : calculate_density_derivs

implicit none ; private

Expand Down
1 change: 0 additions & 1 deletion src/parameterizations/vertical/MOM_bkgnd_mixing.F90
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ module MOM_bkgnd_mixing
use MOM_debugging, only : hchksum
use MOM_diag_mediator, only : diag_ctrl, time_type, register_diag_field
use MOM_diag_mediator, only : post_data
use MOM_EOS, only : calculate_density, calculate_density_derivs
use MOM_error_handler, only : MOM_error, FATAL, WARNING, NOTE
use MOM_file_parser, only : get_param, log_version, param_file_type
use MOM_file_parser, only : openParameterBlock, closeParameterBlock
Expand Down
2 changes: 1 addition & 1 deletion src/parameterizations/vertical/MOM_internal_tide_input.F90
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module MOM_int_tide_input
use MOM_unit_scaling, only : unit_scale_type
use MOM_variables, only : thermo_var_ptrs, vertvisc_type, p3d
use MOM_verticalGrid, only : verticalGrid_type
use MOM_EOS, only : calculate_density, calculate_density_derivs, EOS_domain
use MOM_EOS, only : calculate_density_derivs, EOS_domain

implicit none ; private

Expand Down
4 changes: 1 addition & 3 deletions src/parameterizations/vertical/MOM_regularize_layers.F90
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module MOM_regularize_layers
use MOM_unit_scaling, only : unit_scale_type
use MOM_variables, only : thermo_var_ptrs
use MOM_verticalGrid, only : verticalGrid_type
use MOM_EOS, only : calculate_density, calculate_density_derivs, EOS_domain
use MOM_EOS, only : calculate_density, EOS_domain

implicit none ; private

Expand Down Expand Up @@ -228,8 +228,6 @@ subroutine regularize_surface(h, tv, dt, ea, eb, G, GV, US, CS)
!$OMP eb,nkml,EOSdom)
do j=js,je ; if (do_j(j)) then

! call calculate_density_derivs(T(:,1), S(:,1), p_ref_cv, dRcv_dT, dRcv_dS, tv%eqn_of_state, EOSdom)

do k=1,nz ; do i=is,ie ; d_ea(i,k) = 0.0 ; d_eb(i,k) = 0.0 ; enddo ; enddo
kmax_d_ea = 0

Expand Down
1 change: 0 additions & 1 deletion src/parameterizations/vertical/MOM_tidal_mixing.F90
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module MOM_tidal_mixing
use MOM_diag_mediator, only : diag_ctrl, time_type, register_diag_field
use MOM_diag_mediator, only : safe_alloc_ptr, post_data
use MOM_debugging, only : hchksum
use MOM_EOS, only : calculate_density
use MOM_error_handler, only : MOM_error, is_root_pe, FATAL, WARNING, NOTE
use MOM_file_parser, only : openParameterBlock, closeParameterBlock
use MOM_file_parser, only : get_param, log_param, log_version, param_file_type
Expand Down
1 change: 0 additions & 1 deletion src/user/BFB_initialization.F90
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ module BFB_initialization
use MOM_tracer_registry, only : tracer_registry_type
use MOM_unit_scaling, only : unit_scale_type
use MOM_variables, only : thermo_var_ptrs
use MOM_EOS, only : calculate_density, calculate_density_derivs, EOS_type
use MOM_verticalGrid, only : verticalGrid_type
implicit none ; private

Expand Down
1 change: 0 additions & 1 deletion src/user/DOME2d_initialization.F90
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ module DOME2d_initialization
use MOM_unit_scaling, only : unit_scale_type
use MOM_variables, only : thermo_var_ptrs
use MOM_verticalGrid, only : verticalGrid_type
use MOM_EOS, only : calculate_density, calculate_density_derivs, EOS_type
use regrid_consts, only : coordinateMode, DEFAULT_COORDINATE_MODE
use regrid_consts, only : REGRIDDING_LAYER, REGRIDDING_ZSTAR
use regrid_consts, only : REGRIDDING_RHO, REGRIDDING_SIGMA
Expand Down
2 changes: 1 addition & 1 deletion src/user/DOME_initialization.F90
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module DOME_initialization
use MOM_unit_scaling, only : unit_scale_type
use MOM_variables, only : thermo_var_ptrs
use MOM_verticalGrid, only : verticalGrid_type
use MOM_EOS, only : calculate_density, calculate_density_derivs, EOS_type
use MOM_EOS, only : calculate_density, calculate_density_derivs

implicit none ; private

Expand Down
1 change: 0 additions & 1 deletion src/user/Neverworld_initialization.F90
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ module Neverworld_initialization
use MOM_unit_scaling, only : unit_scale_type
use MOM_variables, only : thermo_var_ptrs
use MOM_verticalGrid, only : verticalGrid_type
use MOM_EOS, only : calculate_density, calculate_density_derivs, EOS_type

use random_numbers_mod, only: initializeRandomNumberStream, getRandomNumbers, randomNumberStream

Expand Down
1 change: 0 additions & 1 deletion src/user/Phillips_initialization.F90
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ module Phillips_initialization
use MOM_unit_scaling, only : unit_scale_type
use MOM_variables, only : thermo_var_ptrs
use MOM_verticalGrid, only : verticalGrid_type
use MOM_EOS, only : calculate_density, calculate_density_derivs, EOS_type

implicit none ; private

Expand Down
2 changes: 1 addition & 1 deletion src/user/RGC_initialization.F90
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module RGC_initialization
use MOM_unit_scaling, only : unit_scale_type
use MOM_variables, only : thermo_var_ptrs
use MOM_verticalGrid, only : verticalGrid_type
use MOM_EOS, only : calculate_density, calculate_density_derivs, EOS_type, EOS_domain
use MOM_EOS, only : calculate_density, EOS_domain
implicit none ; private

#include <MOM_memory.h>
Expand Down
1 change: 0 additions & 1 deletion src/user/Rossby_front_2d_initialization.F90
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ module Rossby_front_2d_initialization
use MOM_unit_scaling, only : unit_scale_type
use MOM_variables, only : thermo_var_ptrs
use MOM_verticalGrid, only : verticalGrid_type
use MOM_EOS, only : calculate_density, calculate_density_derivs, EOS_type
use regrid_consts, only : coordinateMode, DEFAULT_COORDINATE_MODE
use regrid_consts, only : REGRIDDING_LAYER, REGRIDDING_ZSTAR
use regrid_consts, only : REGRIDDING_RHO, REGRIDDING_SIGMA
Expand Down
1 change: 0 additions & 1 deletion src/user/adjustment_initialization.F90
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ module adjustment_initialization
use MOM_unit_scaling, only : unit_scale_type
use MOM_variables, only : thermo_var_ptrs
use MOM_verticalGrid, only : verticalGrid_type
use MOM_EOS, only : calculate_density, calculate_density_derivs, EOS_type
use regrid_consts, only : coordinateMode, DEFAULT_COORDINATE_MODE
use regrid_consts, only : REGRIDDING_LAYER, REGRIDDING_ZSTAR
use regrid_consts, only : REGRIDDING_RHO, REGRIDDING_SIGMA
Expand Down
1 change: 0 additions & 1 deletion src/user/circle_obcs_initialization.F90
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ module circle_obcs_initialization
use MOM_tracer_registry, only : tracer_registry_type
use MOM_variables, only : thermo_var_ptrs
use MOM_verticalGrid, only : verticalGrid_type
use MOM_EOS, only : calculate_density, calculate_density_derivs, EOS_type

implicit none ; private

Expand Down
1 change: 0 additions & 1 deletion src/user/dumbbell_initialization.F90
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ module dumbbell_initialization
use MOM_unit_scaling, only : unit_scale_type
use MOM_variables, only : thermo_var_ptrs
use MOM_verticalGrid, only : verticalGrid_type
use MOM_EOS, only : calculate_density, calculate_density_derivs, EOS_type
use regrid_consts, only : coordinateMode, DEFAULT_COORDINATE_MODE
use regrid_consts, only : REGRIDDING_LAYER, REGRIDDING_ZSTAR
use regrid_consts, only : REGRIDDING_RHO, REGRIDDING_SIGMA
Expand Down
1 change: 0 additions & 1 deletion src/user/seamount_initialization.F90
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ module seamount_initialization
use MOM_unit_scaling, only : unit_scale_type
use MOM_variables, only : thermo_var_ptrs
use MOM_verticalGrid, only : verticalGrid_type
use MOM_EOS, only : calculate_density, calculate_density_derivs, EOS_type
use regrid_consts, only : coordinateMode, DEFAULT_COORDINATE_MODE
use regrid_consts, only : REGRIDDING_LAYER, REGRIDDING_ZSTAR
use regrid_consts, only : REGRIDDING_RHO, REGRIDDING_SIGMA
Expand Down
1 change: 0 additions & 1 deletion src/user/sloshing_initialization.F90
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ module sloshing_initialization
use MOM_unit_scaling, only : unit_scale_type
use MOM_variables, only : thermo_var_ptrs
use MOM_verticalGrid, only : verticalGrid_type
use MOM_EOS, only : calculate_density, calculate_density_derivs, EOS_type

implicit none ; private

Expand Down
1 change: 0 additions & 1 deletion src/user/soliton_initialization.F90
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ module soliton_initialization
use MOM_unit_scaling, only : unit_scale_type
use MOM_variables, only : thermo_var_ptrs
use MOM_verticalGrid, only : verticalGrid_type
use MOM_EOS, only : calculate_density, calculate_density_derivs, EOS_type
use regrid_consts, only : coordinateMode, DEFAULT_COORDINATE_MODE
use regrid_consts, only : REGRIDDING_LAYER, REGRIDDING_ZSTAR
use regrid_consts, only : REGRIDDING_RHO, REGRIDDING_SIGMA
Expand Down
2 changes: 1 addition & 1 deletion src/user/user_initialization.F90
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module user_initialization
use MOM_unit_scaling, only : unit_scale_type
use MOM_variables, only : thermo_var_ptrs
use MOM_verticalGrid, only : verticalGrid_type
use MOM_EOS, only : calculate_density, calculate_density_derivs, EOS_type

implicit none ; private

#include <MOM_memory.h>
Expand Down

0 comments on commit 548be25

Please sign in to comment.