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 2038 for branches/DEV_r2006_merge_TRA_TRC/NEMO/TOP_SRC/C14b/trcini_c14b.F90 – NEMO

Ignore:
Timestamp:
2010-08-02T12:57:40+02:00 (14 years ago)
Author:
cetlod
Message:

Apply the merge to passive tracers, see ticket:693

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DEV_r2006_merge_TRA_TRC/NEMO/TOP_SRC/C14b/trcini_c14b.F90

    r1581 r2038  
    5959      !!---------------------------------------------------------------------- 
    6060 
    61       IF(lwp) WRITE(numout,*) 
    62       IF(lwp) WRITE(numout,*) ' trc_ini_cfc: initialisation of CFC chemical model' 
     61      !  Control consitency 
     62      CALL trc_ctl_c14b 
     63 
     64      IF(lwp) WRITE(numout,*) '' 
     65      IF(lwp) WRITE(numout,*) ' trc_ini_c14b: initialisation of Bomb C14 chemical model' 
    6366      IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~' 
    6467 
     
    162165   END SUBROUTINE trc_ini_c14b 
    163166    
     167   SUBROUTINE trc_ctl_c14b 
     168      !!---------------------------------------------------------------------- 
     169      !!                     ***  ROUTINE trc_ctl_c14b  *** 
     170      !! 
     171      !! ** Purpose :   control the cpp options, namelist and files  
     172      !!---------------------------------------------------------------------- 
     173 
     174      IF(lwp) THEN 
     175          WRITE(numout,*) ' C14 bomb Model ' 
     176          WRITE(numout,*) ' ' 
     177      ENDIF 
     178 
     179      ! Check number of tracers 
     180      ! -----------------------    
     181      IF( jp_c14b > 1) THEN 
     182          IF(lwp) THEN 
     183              WRITE (numout,*) ' ===>>>> : w a r n i n g ' 
     184              WRITE (numout,*) ' =======   ============= ' 
     185              WRITE (numout,*)                             & 
     186              &   ' STOP, change jp_c14b to 1 in par_C14b module ' 
     187          END IF 
     188          STOP 'TRC_CTL' 
     189      END IF 
     190 
     191      ! Check tracer names 
     192      ! ------------------ 
     193      IF ( ctrcnm(jpc14) /= 'C14B' ) THEN 
     194           ctrcnm(jpc14)  = 'C14B' 
     195           ctrcnl(jpc14)  = 'Bomb C14 concentration' 
     196      ENDIF 
     197 
     198      IF(lwp) THEN 
     199         WRITE (numout,*) ' ===>>>> : w a r n i n g ' 
     200         WRITE (numout,*) ' =======   ============= ' 
     201         WRITE (numout,*) ' we force tracer names' 
     202         WRITE(numout,*) ' tracer nb: ',jpc14,' name = ',ctrcnm(jpc14), ctrcnl(jpc14) 
     203         WRITE(numout,*) ' ' 
     204      ENDIF 
     205 
     206      ! Check tracer units 
     207      ! ------------------ 
     208      IF( ctrcun(jpc14) /= 'ration' ) THEN 
     209          ctrcun(jpc14) = 'ration' 
     210          IF(lwp) THEN 
     211             WRITE (numout,*) ' ===>>>> : w a r n i n g ' 
     212             WRITE (numout,*) ' =======   ============= ' 
     213             WRITE (numout,*) ' we force tracer unit' 
     214             WRITE(numout,*) ' tracer  ',ctrcnm(jpc14), 'UNIT= ',ctrcun(jpc14) 
     215             WRITE(numout,*) ' ' 
     216          ENDIF 
     217       ENDIF 
     218      ! 
     219   END SUBROUTINE trc_ctl_c14b 
    164220#else 
    165221   !!---------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.