Skip to content

Commit 5700d67

Browse files
Merge pull request #6 from adcroft/add-use-only-for-imports
Adds "only" for all use statements
2 parents 231d19e + beac3ed commit 5700d67

2 files changed

Lines changed: 15 additions & 8 deletions

File tree

config_src/mct_driver/coupler_indices.F90

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
module coupler_indices
22

3-
! From MCT:
3+
! MCT types
4+
use mct_mod, only : mct_aVect
5+
! MCT fucntions
6+
use mct_mod, only : mct_avect_indexra, mct_aVect_init, mct_aVect_clean
47
use seq_flds_mod, only : seq_flds_x2o_fields, seq_flds_o2x_fields
58
use seq_flds_mod, only : seq_flds_i2o_per_cat, ice_ncat
6-
use mct_mod
79

8-
! From MOM:
10+
! MOM types
911
use MOM_grid, only : ocean_grid_type
12+
! MOM functions
1013
use MOM_domains, only : pass_var
1114
use MOM_variables, only : surface
1215

config_src/mct_driver/ocn_comp_mct.F90

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ module ocn_comp_mct
1111
! !REVISION HISTORY:
1212
!
1313
! !USES:
14-
use esmf
15-
use seq_cdata_mod
16-
use mct_mod
14+
use ESMF, only: ESMF_clock, ESMF_time
15+
use ESMF, only: ESMF_ClockGet, ESMF_TimeGet
16+
use seq_cdata_mod, only: seq_cdata
17+
use seq_cdata_mod, only: seq_cdata_setptrs
18+
use mct_mod, only: mct_gsMap, mct_gsmap_init, mct_gsMap_lsize, mct_gsmap_orderedpoints
19+
use mct_mod, only: mct_aVect, mct_aVect_init, mct_aVect_zero, mct_aVect_nRattr
20+
use mct_mod, only: mct_gGrid, mct_gGrid_init, mct_gGrid_importRAttr, mct_gGrid_importIAttr
1721
use seq_flds_mod, only: seq_flds_x2o_fields, &
1822
seq_flds_o2x_fields, &
1923
SEQ_FLDS_DOM_COORD, &
@@ -92,7 +96,7 @@ subroutine ocn_init_mct( EClock, cdata_o, x2o_o, o2x_o, NLFilename )
9296
!
9397
! !INPUT/OUTPUT PARAMETERS:
9498

95-
type(ESMF_Clock) , intent(inout) :: EClock
99+
type(ESMF_clock) , intent(inout) :: EClock
96100
type(seq_cdata) , intent(inout) :: cdata_o
97101
type(mct_aVect) , intent(inout) :: x2o_o, o2x_o
98102
character(len=*), optional , intent(in) :: NLFilename ! Namelist filename
@@ -442,7 +446,7 @@ subroutine ocn_domain_mct( lsize, gsMap_ocn, dom_ocn)
442446
type(mct_ggrid), intent(inout) :: dom_ocn
443447

444448
! Local Variables
445-
integer, parameter :: SHR_REAL_R8 = selected_real_kind (12)
449+
integer, parameter :: SHR_REAL_R8 = selected_real_kind(12)
446450
integer, pointer :: idata(:)
447451
integer :: i,j,k
448452
real(kind=SHR_REAL_R8), pointer :: data(:)

0 commit comments

Comments
 (0)