Skip to content

Commit

Permalink
Remove unused module use statements
Browse files Browse the repository at this point in the history
  Removed unused module use statements in various modules, to help eliminate
apparent but inaccurate module dependencies, and to facilitate the migration
to FMS2.  All answers are bitwise identical.
  • Loading branch information
Hallberg-NOAA committed Jan 3, 2021
1 parent 353cc63 commit 1e6bdd6
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 43 deletions.
2 changes: 1 addition & 1 deletion src/core/MOM_dynamics_split_RK2.F90
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module MOM_dynamics_split_RK2
use MOM_error_handler, only : callTree_enter, callTree_leave, callTree_waypoint
use MOM_file_parser, only : get_param, log_version, param_file_type
use MOM_get_input, only : directories
use MOM_io, only : MOM_io_init, vardesc, var_desc
use MOM_io, only : vardesc, var_desc
use MOM_restart, only : register_restart_field, register_restart_pair
use MOM_restart, only : query_initialized, save_restart
use MOM_restart, only : restart_init, is_new_run, MOM_restart_CS
Expand Down
1 change: 0 additions & 1 deletion src/core/MOM_dynamics_unsplit.F90
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ module MOM_dynamics_unsplit
use MOM_error_handler, only : MOM_error, MOM_mesg, FATAL, WARNING, is_root_pe
use MOM_file_parser, only : get_param, log_version, param_file_type
use MOM_get_input, only : directories
use MOM_io, only : MOM_io_init
use MOM_restart, only : register_restart_field, query_initialized, save_restart
use MOM_restart, only : restart_init, MOM_restart_CS
use MOM_time_manager, only : time_type, real_to_time, operator(+)
Expand Down
1 change: 0 additions & 1 deletion src/core/MOM_dynamics_unsplit_RK2.F90
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ module MOM_dynamics_unsplit_RK2
use MOM_error_handler, only : MOM_set_verbosity
use MOM_file_parser, only : get_param, log_version, param_file_type
use MOM_get_input, only : directories
use MOM_io, only : MOM_io_init
use MOM_restart, only : register_restart_field, query_initialized, save_restart
use MOM_restart, only : restart_init, MOM_restart_CS
use MOM_time_manager, only : time_type, time_type_to_real, operator(+)
Expand Down
1 change: 0 additions & 1 deletion src/framework/MOM_diag_remap.F90
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ module MOM_diag_remap
use coord_sigma, only : build_sigma_column
use coord_rho, only : build_rho_column

use diag_axis_mod, only : get_diag_axis_name
use diag_manager_mod, only : diag_axis_init

use MOM_debugging, only : check_column_integrals
Expand Down
11 changes: 4 additions & 7 deletions src/framework/MOM_horizontal_regridding.F90
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,12 @@ module MOM_horizontal_regridding
use MOM_time_manager, only : get_external_field_axes, get_external_field_missing
use MOM_transform_FMS, only : time_interp_external => rotated_time_interp_external
use MOM_variables, only : thermo_var_ptrs
use mpp_io_mod, only : axistype
use mpp_domains_mod, only : mpp_global_field, mpp_get_compute_domain
use mpp_mod, only : mpp_broadcast,mpp_root_pe,mpp_sync,mpp_sync_self
use mpp_mod, only : mpp_max
use horiz_interp_mod, only : horiz_interp_new, horiz_interp,horiz_interp_type

use mpp_io_mod, only : axistype, mpp_get_axis_data
use mpp_mod, only : mpp_broadcast, mpp_sync, mpp_sync_self, mpp_max
use horiz_interp_mod, only : horiz_interp_new, horiz_interp, horiz_interp_type
use horiz_interp_mod, only : horiz_interp_init, horiz_interp_del

use mpp_io_mod, only : mpp_get_axis_data
use mpp_io_mod, only : MPP_SINGLE
use netcdf

implicit none ; private
Expand Down
2 changes: 1 addition & 1 deletion src/framework/MOM_transform_FMS.F90
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module MOM_transform_FMS
use MOM_error_handler, only : MOM_error, FATAL
use MOM_io, only : fieldtype, write_field
use mpp_domains_mod, only : domain2D
use fms_mod, only : mpp_chksum
use mpp_mod, only : mpp_chksum
use time_manager_mod, only : time_type
use time_interp_external_mod, only : time_interp_external

Expand Down
24 changes: 7 additions & 17 deletions src/initialization/MOM_tracer_initialization_from_Z.F90
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,17 @@ module MOM_tracer_initialization_from_Z
! This file is part of MOM6. See LICENSE.md for the license.

use MOM_debugging, only : hchksum
use MOM_coms, only : max_across_PEs, min_across_PEs
use MOM_cpu_clock, only : cpu_clock_id, cpu_clock_begin, cpu_clock_end
use MOM_cpu_clock, only : CLOCK_ROUTINE, CLOCK_LOOP
use MOM_density_integrals, only : int_specific_vol_dp
use MOM_domains, only : pass_var, pass_vector, sum_across_PEs, broadcast
use MOM_domains, only : root_PE, To_All, SCALAR_PAIR, CGRID_NE, AGRID
use MOM_error_handler, only : MOM_mesg, MOM_error, FATAL, WARNING, is_root_pe
use MOM_cpu_clock, only : CLOCK_ROUTINE, CLOCK_LOOP
use MOM_domains, only : pass_var
use MOM_error_handler, only : MOM_mesg, MOM_error, FATAL, WARNING
use MOM_error_handler, only : callTree_enter, callTree_leave, callTree_waypoint
use MOM_file_parser, only : get_param, read_param, log_param, param_file_type
use MOM_file_parser, only : log_version
use MOM_get_input, only : directories
use MOM_grid, only : ocean_grid_type, isPointInCell
use MOM_file_parser, only : get_param, param_file_type, log_version
use MOM_grid, only : ocean_grid_type
use MOM_horizontal_regridding, only : myStats, horiz_interp_and_extrap_tracer
use MOM_regridding, only : regridding_CS
use MOM_remapping, only : remapping_CS, initialize_remapping
use MOM_remapping, only : remapping_core_h
use MOM_string_functions, only : uppercase
use MOM_unit_scaling, only : unit_scale_type
use MOM_variables, only : thermo_var_ptrs
use MOM_verticalGrid, only : verticalGrid_type, setVerticalGridAxes
use MOM_EOS, only : calculate_density, calculate_density_derivs, EOS_type
use MOM_verticalGrid, only : verticalGrid_type
use MOM_ALE, only : ALE_remap_scalar

implicit none ; private
Expand All @@ -42,7 +32,7 @@ module MOM_tracer_initialization_from_Z

contains

!> Initializes a tracer from a z-space data file.
!> Initializes a tracer from a z-space data file, including any lateral regridding that is needed.
subroutine MOM_initialize_tracer_from_Z(h, tr, G, GV, US, PF, src_file, src_var_nam, &
src_var_unit_conversion, src_var_record, homogenize, &
useALEremapping, remappingScheme, src_var_gridspec )
Expand Down
2 changes: 1 addition & 1 deletion src/tracer/advection_test_tracer.F90
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module advection_test_tracer
use MOM_forcing_type, only : forcing
use MOM_grid, only : ocean_grid_type
use MOM_hor_index, only : hor_index_type
use MOM_io, only : file_exists, read_data, slasher, vardesc, var_desc, query_vardesc
use MOM_io, only : slasher, vardesc, var_desc, query_vardesc
use MOM_open_boundary, only : ocean_OBC_type
use MOM_restart, only : query_initialized, MOM_restart_CS
use MOM_sponge, only : set_up_sponge_field, sponge_CS
Expand Down
5 changes: 2 additions & 3 deletions src/tracer/boundary_impulse_tracer.F90
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module boundary_impulse_tracer
use MOM_forcing_type, only : forcing
use MOM_grid, only : ocean_grid_type
use MOM_hor_index, only : hor_index_type
use MOM_io, only : file_exists, read_data, slasher, vardesc, var_desc, query_vardesc
use MOM_io, only : vardesc, var_desc, query_vardesc
use MOM_open_boundary, only : ocean_OBC_type
use MOM_restart, only : register_restart_field, query_initialized, MOM_restart_CS
use MOM_sponge, only : set_up_sponge_field, sponge_CS
Expand All @@ -18,8 +18,7 @@ module boundary_impulse_tracer
use MOM_tracer_diabatic, only : tracer_vertdiff, applyTracerBoundaryFluxesInOut
use MOM_tracer_Z_init, only : tracer_Z_init
use MOM_unit_scaling, only : unit_scale_type
use MOM_variables, only : surface
use MOM_variables, only : thermo_var_ptrs
use MOM_variables, only : surface, thermo_var_ptrs
use MOM_verticalGrid, only : verticalGrid_type

use coupler_types_mod, only : coupler_type_set_data, ind_csurf
Expand Down
2 changes: 1 addition & 1 deletion src/tracer/dye_example.F90
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module regional_dyes
use MOM_forcing_type, only : forcing
use MOM_grid, only : ocean_grid_type
use MOM_hor_index, only : hor_index_type
use MOM_io, only : file_exists, read_data, slasher, vardesc, var_desc, query_vardesc
use MOM_io, only : vardesc, var_desc, query_vardesc
use MOM_open_boundary, only : ocean_OBC_type
use MOM_restart, only : query_initialized, MOM_restart_CS
use MOM_sponge, only : set_up_sponge_field, sponge_CS
Expand Down
5 changes: 2 additions & 3 deletions src/tracer/pseudo_salt_tracer.F90
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module pseudo_salt_tracer
use MOM_forcing_type, only : forcing
use MOM_grid, only : ocean_grid_type
use MOM_hor_index, only : hor_index_type
use MOM_io, only : file_exists, read_data, slasher, vardesc, var_desc, query_vardesc
use MOM_io, only : vardesc, var_desc, query_vardesc
use MOM_open_boundary, only : ocean_OBC_type
use MOM_restart, only : query_initialized, MOM_restart_CS
use MOM_sponge, only : set_up_sponge_field, sponge_CS
Expand All @@ -20,8 +20,7 @@ module pseudo_salt_tracer
use MOM_tracer_diabatic, only : tracer_vertdiff, applyTracerBoundaryFluxesInOut
use MOM_tracer_Z_init, only : tracer_Z_init
use MOM_unit_scaling, only : unit_scale_type
use MOM_variables, only : surface
use MOM_variables, only : thermo_var_ptrs
use MOM_variables, only : surface, thermo_var_ptrs
use MOM_verticalGrid, only : verticalGrid_type

use coupler_types_mod, only : coupler_type_set_data, ind_csurf
Expand Down
1 change: 0 additions & 1 deletion src/user/BFB_surface_forcing.F90
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ module BFB_surface_forcing
use MOM_file_parser, only : get_param, param_file_type, log_version
use MOM_forcing_type, only : forcing, allocate_forcing_type
use MOM_grid, only : ocean_grid_type
use MOM_io, only : file_exists, read_data
use MOM_safe_alloc, only : safe_alloc_ptr
use MOM_time_manager, only : time_type, operator(+), operator(/)
use MOM_tracer_flow_control, only : call_tracer_set_forcing
Expand Down
4 changes: 1 addition & 3 deletions src/user/ISOMIP_initialization.F90
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ module ISOMIP_initialization
use MOM_file_parser, only : get_param, log_version, param_file_type
use MOM_get_input, only : directories
use MOM_grid, only : ocean_grid_type
use MOM_io, only : file_exists
use MOM_io, only : MOM_read_data
use MOM_io, only : slasher
use MOM_io, only : file_exists, MOM_read_data, slasher
use MOM_unit_scaling, only : unit_scale_type
use MOM_variables, only : thermo_var_ptrs
use MOM_verticalGrid, only : verticalGrid_type
Expand Down
1 change: 0 additions & 1 deletion src/user/dumbbell_surface_forcing.F90
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ module dumbbell_surface_forcing
use MOM_file_parser, only : get_param, param_file_type, log_version
use MOM_forcing_type, only : forcing, allocate_forcing_type
use MOM_grid, only : ocean_grid_type
use MOM_io, only : file_exists, read_data
use MOM_safe_alloc, only : safe_alloc_ptr
use MOM_time_manager, only : time_type, operator(+), operator(/), get_time
use MOM_tracer_flow_control, only : call_tracer_set_forcing
Expand Down
2 changes: 1 addition & 1 deletion src/user/user_revise_forcing.F90
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module user_revise_forcing
use MOM_file_parser, only : get_param, log_version, param_file_type
use MOM_forcing_type, only : forcing
use MOM_grid, only : ocean_grid_type
use MOM_io, only : file_exists, read_data
use MOM_io, only : file_exists, MOM_read_data
use MOM_restart, only : register_restart_field, MOM_restart_CS
use MOM_time_manager, only : time_type, operator(+), operator(/)
use MOM_tracer_flow_control, only : call_tracer_set_forcing
Expand Down

0 comments on commit 1e6bdd6

Please sign in to comment.