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 9313 for branches/UKMO/dev_r5518_new_runoff_coupling/NEMOGCM/NEMO/OPA_SRC/SBC/cpl_oasis3.F90 – NEMO

Ignore:
Timestamp:
2018-02-08T15:41:43+01:00 (6 years ago)
Author:
dancopsey
Message:

Changed number of rivers to be nn_cpl_river which is fed in from the nam_cpl_rnf_1d namelist. Made new scheme turn on and off by setting sn_rcv_rnf%cldes = 'coupled1d'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_new_runoff_coupling/NEMOGCM/NEMO/OPA_SRC/SBC/cpl_oasis3.F90

    r9242 r9313  
    3131   USE in_out_manager               ! I/O manager 
    3232   USE lbclnk                       ! ocean lateral boundary conditions (or mpp link) 
     33   USE cpl_rnf_1d, ONLY: nn_cpl_river, runoff_id   ! Variables used in 1D river outflow 
    3334 
    3435   IMPLICIT NONE 
     
    6869   INTEGER, PUBLIC, PARAMETER ::   nmaxcat=5    ! Maximum number of coupling fields 
    6970   INTEGER, PUBLIC, PARAMETER ::   nmaxcpl=5    ! Maximum number of coupling fields 
    70    INTEGER, PUBLIC, PARAMETER ::   n_rivers=2000  ! Total number of rivers in coupled runoff using 1D array 
    71     
    72    INTEGER, PUBLIC :: runoff_id 
     71    
     72    
    7373    
    7474   TYPE, PUBLIC ::   FLD_CPL               !: Type for coupling field information 
     
    206206      paral(1) = 0                                              ! serial partitioning 
    207207      paral(2) = 0    
    208       paral(3) = n_rivers                                       ! size of array to couple 
     208      paral(3) = nn_cpl_river                                       ! size of array to couple 
    209209      paral(4) = 0 
    210210      paral(5) = 0 
    211211       
    212       CALL oasis_def_partition ( id_part_rnf_1d, paral, nerror, n_rivers ) 
     212      CALL oasis_def_partition ( id_part_rnf_1d, paral, nerror, nn_cpl_river ) 
    213213       
    214214      ! ... Announce send variables.  
     
    305305      ! Define coupled river runoff using 1D array  
    306306      CALL oasis_def_var (runoff_id, 'runoffo', id_part_rnf_1d   , (/ 1, 0 /),   & 
    307                      &                OASIS_In           , (/ 1, n_rivers /) , OASIS_REAL, nerror ) 
     307                     &                OASIS_In           , (/ 1, nn_cpl_river /) , OASIS_REAL, nerror ) 
    308308      IF ( nerror /= OASIS_Ok ) THEN 
    309309          WRITE(numout,*) 'Failed to define transient runoffo' 
Note: See TracChangeset for help on using the changeset viewer.