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

Ignore:
Timestamp:
2016-10-19T12:55:07+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

    r6701 r7041  
    5959      IF(lwp) WRITE(numout,*) '~~~~~~~' 
    6060 
     61      IF( .NOT.lk_offline )   CALL trc_nam_run     ! Parameters of the run  
    6162      ! 
    6263      CALL top_alloc()   ! allocate TOP arrays 
    6364      ! 
    6465      CALL trc_ini_ctl   ! control  
    65       ! 
    6666      CALL trc_nam       ! read passive tracers namelists 
    6767      ! 
     68      ! 
    6869      IF(lwp) WRITE(numout,*) 
    69       ! 
    7070      IF( ln_rsttr .AND. .NOT. lk_offline ) CALL trc_rst_cal( nit000, 'READ' )   ! calendar 
    71       ! 
    7271      IF(lwp) WRITE(numout,*) 
    7372      ! 
    7473      CALL trc_ini_sms   ! SMS 
    75       ! 
    7674      CALL trc_ini_trp   ! passive tracers transport 
    77       ! 
    7875      CALL trc_ice_ini   ! Tracers in sea ice 
    7976      ! 
    80       IF( lwp )  & 
    81          &  CALL ctl_opn( numstr, 'tracer.stat', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp , narea ) 
     77      IF(lwp) CALL ctl_opn( numstr, 'tracer.stat', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp , narea ) 
    8278      ! 
    8379      CALL trc_ini_state  !  passive tracers initialisation : from a restart or from clim 
    84       ! 
    85       IF( nn_dttrc /= 1 )        CALL trc_sub_ini      ! Initialize variables for substepping passive tracers 
    86       ! 
     80      IF( nn_dttrc /= 1 ) & 
     81      CALL trc_sub_ini      ! Initialize variables for substepping passive tracers 
    8782      CALL trc_ini_inv   ! Inventories 
    8883      ! 
     
    120115         cvol(:,:,jk) = e1e2t(:,:) * e3t_n(:,:,jk) * tmask(:,:,jk) 
    121116      END DO 
    122       IF( lk_degrad )   cvol(:,:,:) = cvol(:,:,:) * facvol(:,:,:)    ! degrad option: reduction by facvol 
    123117      !                                                              ! total volume of the ocean  
    124118      areatot = glob_sum( cvol(:,:,:) ) 
     
    158152      !! ** Purpose :   SMS initialisation 
    159153      !!---------------------------------------------------------------------- 
    160       USE trcini_cfc      ! CFC      initialisation 
    161       USE trcini_pisces   ! PISCES   initialisation 
    162       USE trcini_c14b     ! C14 bomb initialisation 
    163       USE trcini_my_trc   ! MY_TRC   initialisation 
    164       !!---------------------------------------------------------------------- 
    165       IF( lk_pisces  )       CALL trc_ini_pisces       ! PISCES  bio-model 
    166       IF( lk_cfc     )       CALL trc_ini_cfc          ! CFC     tracers 
    167       IF( lk_c14b    )       CALL trc_ini_c14b         ! C14 bomb  tracer 
    168       IF( lk_my_trc  )       CALL trc_ini_my_trc       ! MY_TRC  tracers 
     154      USE par_trc 
     155      USE trcini_pisces  ! PISCES   initialisation 
     156      USE trcini_cfc     ! CFC      initialisation 
     157      USE trcini_c14     ! C14  initialisation 
     158      USE trcini_age     ! age initialisation 
     159      USE trcini_my_trc  ! MY_TRC   initialisation 
     160      !!---------------------------------------------------------------------- 
     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 
    169206      ! 
    170207   END SUBROUTINE trc_ini_sms 
Note: See TracChangeset for help on using the changeset viewer.