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/CFC/trcini_cfc.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/CFC/trcini_cfc.F90

    r3294 r7041  
    66   !! History :   2.0  !  2007-12  (C. Ethe, G. Madec)  
    77   !!---------------------------------------------------------------------- 
    8 #if defined key_cfc 
    9    !!---------------------------------------------------------------------- 
    10    !!   'key_cfc'                                               CFC tracers 
    118   !!---------------------------------------------------------------------- 
    129   !! trc_ini_cfc      : CFC model initialisation 
     
    4643      INTEGER  ::  iskip = 6   ! number of 1st descriptor lines 
    4744      REAL(wp) ::  zyy, zyd 
     45      CHARACTER(len = 20)  ::  cltra 
    4846      !!---------------------------------------------------------------------- 
    4947 
     
    5250      IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~' 
    5351 
     52       
     53      ! assign an index in trc arrays for each CFC prognostic variables 
     54      jp_cfc = 1  
     55      IF( ln_cfc11 .AND. ln_cfc12 )  jp_cfc = 2 
     56 
     57      ! assign an index in trc arrays for each prognostic variables 
     58      DO jn = 1, jptra 
     59        cltra = ctrcnm(jn)  
     60        IF( cltra == 'CFC11'  .OR. cltra == 'cfc11' )   jpc11 = jn  
     61        IF( cltra == 'CFC12'  .OR. cltra == 'cfc12' )   jpc12 = jn  
     62      ENDDO 
     63    
     64      IF( jp_cfc == 1 ) THEN 
     65        IF( ln_cfc11 )  jp_cfc0  = jpc11 
     66        IF( ln_cfc12 )  jp_cfc0  = jpc12 
     67      ELSE 
     68        jp_cfc0 = MIN( jpc11, jpc12 )  
     69      ENDIF 
     70      jp_cfc1 = jp_cfc0 + jp_cfc - 1 
     71 
     72      IF( lwp ) THEN 
     73        WRITE(numout,*) '' 
     74        WRITE(numout,*) ' First index of CFC tracer in the passive tracer array   jp_cfc0 = ', jp_cfc0 
     75        WRITE(numout,*) ' Last  index of CFC tracer in the passive tracer array   jp_cfc1 = ', jp_cfc1 
     76        WRITE(numout,*)  
     77      ENDIF 
    5478 
    5579      IF(lwp) WRITE(numout,*) 'read of formatted file cfc1112atm' 
     
    146170   END SUBROUTINE trc_ini_cfc 
    147171    
    148 #else 
    149    !!---------------------------------------------------------------------- 
    150    !!   Dummy module                                         No CFC tracers 
    151    !!---------------------------------------------------------------------- 
    152 CONTAINS 
    153    SUBROUTINE trc_ini_cfc             ! Empty routine 
    154    END SUBROUTINE trc_ini_cfc 
    155 #endif 
    156  
    157172   !!====================================================================== 
    158173END MODULE trcini_cfc 
Note: See TracChangeset for help on using the changeset viewer.