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/MY_TRC/trcini_my_trc.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/MY_TRC/trcini_my_trc.F90

    r5385 r7041  
    3737      !! ** Method  : - Read the namcfc namelist and check the parameter values 
    3838      !!---------------------------------------------------------------------- 
     39      INTEGER              ::  jn 
     40      CHARACTER(len = 20)  ::  cltra 
     41 
     42 
     43      jp_my_trc = 1 
     44      ! assign an index in trc arrays for each prognostic variables 
     45      DO jn = 1, jptra 
     46        cltra = ctrcnm(jn)  
     47        IF( cltra == 'MYTRC'   .OR. cltra == 'mytrc'  )   jpmyt0 = jn  
     48        IF( cltra == 'MYTRC1'  .OR. cltra == 'mytrc1' )   jpmyt1 = jn  
     49        IF( cltra == 'MYTRC2'  .OR. cltra == 'mytrc2' )   jpmyt2 = jn  
     50      ENDDO 
     51    
     52      IF( jp_my_trc == 1 ) THEN 
     53        jp_myt0  = jpmyt0 
     54      ELSE 
     55        jp_myt0 = MIN( jpmyt0, jpmyt1, jpmyt2 )  
     56      ENDIF 
     57      jp_myt1 = jp_myt0 + jp_my_trc - 1 
     58 
     59 
     60      IF( lwp ) THEN 
     61        WRITE(numout,*) '' 
     62        WRITE(numout,*) ' First index of MYTRC model in the passive tracer array   jp_myt0 = ', jp_myt0 
     63        WRITE(numout,*) ' Last  index of MYTRC model in the passive tracer array   jp_myt1 = ', jp_myt1 
     64        WRITE(numout,*)  
     65      ENDIF 
     66 
    3967 
    4068      !                       ! Allocate MY_TRC arrays 
Note: See TracChangeset for help on using the changeset viewer.