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 7068 for branches/2016/dev_r7012_ROBUST5_CNRS/NEMOGCM/NEMO/TOP_SRC/trcini.F90 – NEMO

Ignore:
Timestamp:
2016-10-21T17:38:13+02:00 (8 years ago)
Author:
cetlod
Message:

ROBUST5_CNRS : implementation of part I of new TOP interface - 1st step -, see ticket #1782

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_r7012_ROBUST5_CNRS/NEMOGCM/NEMO/TOP_SRC/trcini.F90

    r7041 r7068  
    5959      IF(lwp) WRITE(numout,*) '~~~~~~~' 
    6060 
    61       IF( .NOT.lk_offline )   CALL trc_nam_run     ! Parameters of the run  
    62       ! 
    63       CALL top_alloc()   ! allocate TOP arrays 
     61      ! 
    6462      ! 
    6563      CALL trc_ini_ctl   ! control  
    6664      CALL trc_nam       ! read passive tracers namelists 
     65      CALL top_alloc()   ! allocate TOP arrays 
    6766      ! 
    6867      ! 
     
    152151      !! ** Purpose :   SMS initialisation 
    153152      !!---------------------------------------------------------------------- 
    154       USE par_trc 
    155153      USE trcini_pisces  ! PISCES   initialisation 
    156154      USE trcini_cfc     ! CFC      initialisation 
     
    159157      USE trcini_my_trc  ! MY_TRC   initialisation 
    160158      !!---------------------------------------------------------------------- 
    161       jp_lc = 0 
    162       IF( lk_pisces  )  THEN       ! PISCES bio-model 
    163          CALL trc_ini_pisces     
    164          jp_lc       = jp_pisces  
    165       ELSE 
    166          jp_pisces   = 0 
    167          jp_pcs0     = 0               
    168          jp_pcs1     = 0          
    169       ENDIF 
    170       IF( lk_my_trc )  THEN      ! MY_TRC 
    171          CALL trc_ini_my_trc 
    172          jp_lc       = jp_lc + jp_my_trc   
    173       ELSE 
    174          jp_my_trc   = 0 
    175          jp_myt0     = 0        
    176          jp_myt1     = 0       
    177       ENDIF 
    178       IF( ll_cfc    )  THEN          ! CFC 
    179          CALL trc_ini_cfc     
    180          jp_lc       = jp_lc + jp_cfc 
    181       ELSE 
    182          jp_cfc      = 0 
    183          jp_cfc0     = 0        
    184          jp_cfc1     = 0       
    185       ENDIF 
    186       IF( ln_c14    )  THEN      ! C14 
    187          CALL trc_ini_c14 
    188          jp_lc       = jp_lc + jp_c14 
    189       ELSE 
    190          jp_c14      = 0 
    191          jp_c140     = 0        
    192       ENDIF 
    193       IF( ln_age    )  THEN      ! AGE 
    194          CALL trc_ini_age 
    195          jp_lc       = jp_lc + jp_age 
    196       ELSE 
    197          jp_age      = 0 
    198          jp_age0     = 0        
    199       ENDIF 
    200       ! 
    201       IF( jp_lc /= jptra ) THEN 
    202         IF( lwp ) WRITE(numout,*) ' The total number of tracers in namelist_top jptra = ', jptra 
    203         IF( lwp ) WRITE(numout,*) ' The total number of tracers to be used by the model is jp_lc = ', jp_lc 
    204         CALL ctl_stop( " Change the value of total number of tracers in namelist " ) 
    205       ENDIF 
     159      !     
     160      IF( ln_pisces  )   CALL trc_ini_pisces     !  PISCES model 
     161      IF( ln_my_trc  )   CALL trc_ini_my_trc     !  MY_TRC model 
     162      IF( ll_cfc     )   CALL trc_ini_cfc        !  CFC's 
     163      IF( ln_c14     )   CALL trc_ini_c14        !  C14 model 
     164      IF( ln_age     )   CALL trc_ini_age        !  AGE 
    206165      ! 
    207166   END SUBROUTINE trc_ini_sms 
     
    247206 
    248207      ! Initialisation of tracers Boundary Conditions 
    249       IF( lk_my_trc )     CALL trc_bc_init(jptra) 
     208      IF( ln_my_trc )     CALL trc_bc_init(jptra) 
    250209 
    251210      IF( ln_rsttr ) THEN 
Note: See TracChangeset for help on using the changeset viewer.