New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 4116 – NEMO

Changeset 4116


Ignore:
Timestamp:
2013-10-23T22:14:42+02:00 (11 years ago)
Author:
andrewryan
Message:

Refactored OOO_SRC nemogcm module to reduce memory overheads.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/NEMO/OOO_SRC/nemogcm.F90

    r4108 r4116  
    4141   !!---------------------------------------------------------------------- 
    4242   USE step_oce        ! module used in the ocean time stepping module 
    43    USE sbc_oce         ! surface boundary condition: ocean 
    44    USE cla             ! cross land advection               (tra_cla routine) 
    4543   USE domcfg          ! domain configuration               (dom_cfg routine) 
    4644   USE mppini          ! shared/distributed memory setting (mpp_init routine) 
     
    4947   USE ice_domain_size, only: nx_global, ny_global 
    5048#endif 
    51    USE tideini         ! tidal components initialization   (tide_ini routine) 
    52    USE obcini          ! open boundary cond. initialization (obc_ini routine) 
    53    USE bdyini          ! open boundary cond. initialization (bdy_init routine) 
    54    USE bdydta          ! open boundary cond. initialization (bdy_dta_init routine) 
    55    USE bdytides        ! open boundary cond. initialization (bdytide_init routine) 
    5649   USE istate          ! initial state setting          (istate_init routine) 
    57    USE ldfdyn          ! lateral viscosity setting      (ldfdyn_init routine) 
    58    USE ldftra          ! lateral diffusivity setting    (ldftra_init routine) 
    59    USE zdfini          ! vertical physics setting          (zdf_init routine) 
    6050   USE phycst          ! physical constant                  (par_cst routine) 
    61    USE trdmod          ! momentum/tracers trends       (trd_mod_init routine) 
    62    USE asminc          ! assimilation increments      
    63    USE asmbkg          ! writing out state trajectory 
    64    USE diaptr          ! poleward transports           (dia_ptr_init routine) 
    65    USE diadct          ! sections transports           (dia_dct_init routine) 
    6651   USE diaobs          ! Observation diagnostics       (dia_obs_init routine) 
    6752   USE lib_fortran     ! Fortran utilities (allows no signed zero when 'key_nosignedzero' defined) 
     
    7459   USE cpl_oasis4      ! OASIS4 coupling (not working) 
    7560#endif 
    76    USE c1d             ! 1D configuration 
    77    USE step_c1d        ! Time stepping loop for the 1D configuration 
    78 #if defined key_top 
    79    USE trcini          ! passive tracer initialisation 
    80 #endif 
    8161   USE lib_mpp         ! distributed memory computing 
    8262#if defined key_iomput 
    8363   USE xios 
    8464#endif 
    85    USE sbctide, ONLY: lk_tide 
    8665 
    8766   IMPLICIT NONE 
     
    364343      USE diawri    , ONLY: dia_wri_alloc 
    365344      USE dom_oce   , ONLY: dom_oce_alloc 
    366       USE ldfdyn_oce, ONLY: ldfdyn_oce_alloc 
    367       USE ldftra_oce, ONLY: ldftra_oce_alloc 
    368       USE trc_oce   , ONLY: trc_oce_alloc 
    369 #if defined key_diadct  
    370       USE diadct    , ONLY: diadct_alloc  
    371 #endif  
    372345      ! 
    373346      INTEGER :: ierr 
     
    377350      ierr = ierr + dia_wri_alloc   () 
    378351      ierr = ierr + dom_oce_alloc   ()          ! ocean domain 
    379       ierr = ierr + ldfdyn_oce_alloc()          ! ocean lateral  physics : dynamics 
    380       ierr = ierr + ldftra_oce_alloc()          ! ocean lateral  physics : tracers 
    381       ierr = ierr + zdf_oce_alloc   ()          ! ocean vertical physics 
    382352      ! 
    383353      ierr = ierr + lib_mpp_alloc   (numout)    ! mpp exchanges 
    384       ierr = ierr + trc_oce_alloc   ()          ! shared TRC / TRA arrays 
    385       ! 
    386 #if defined key_diadct  
    387       ierr = ierr + diadct_alloc    ()          !  
    388 #endif  
    389354      ! 
    390355      IF( lk_mpp    )   CALL mpp_sum( ierr ) 
Note: See TracChangeset for help on using the changeset viewer.