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 2423 for trunk/NEMO/TOP_SRC/C14b/trcctl_c14b.F90 – NEMO

Ignore:
Timestamp:
2010-11-24T16:37:34+01:00 (13 years ago)
Author:
cetlod
Message:

v3.2:use of standard print control in TOP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/TOP_SRC/C14b/trcctl_c14b.F90

    r1252 r2423  
    3333      !! ** Purpose :   control the cpp options, namelist and files  
    3434      !!---------------------------------------------------------------------- 
    35  
    3635      IF(lwp) THEN 
    3736          WRITE(numout,*) ' C14 bomb Model ' 
     
    4140      ! Check number of tracers 
    4241      ! -----------------------    
    43       IF( jp_c14b > 1) THEN  
    44           IF(lwp) THEN  
    45               WRITE (numout,*) ' ===>>>> : w a r n i n g ' 
    46               WRITE (numout,*) ' =======   ============= ' 
    47               WRITE (numout,*)                             & 
    48               &   ' STOP, change jp_c14b to 1 in par_C14b module '   
    49           END IF  
    50           STOP 'TRC_CTL' 
    51       END IF  
     42      IF( jp_c14b > 1) CALL ctl_stop( ' Change jp_c14b to be equal 1 in par_c14b.F90' ) 
    5243 
    5344      ! Check tracer names 
    5445      ! ------------------ 
    55       IF ( ctrcnm(jpc14) /= 'C14B' ) THEN  
     46      IF ( ctrcnm(jpc14) /= 'C14B' ) THEN 
    5647           ctrcnm(jpc14)  = 'C14B' 
    5748           ctrcnl(jpc14)  = 'Bomb C14 concentration' 
     
    5950 
    6051      IF(lwp) THEN 
    61          WRITE (numout,*) ' ===>>>> : w a r n i n g ' 
    62          WRITE (numout,*) ' =======   ============= ' 
    63          WRITE (numout,*) ' we force tracer names' 
     52         CALL ctl_warn( ' we force tracer names' ) 
    6453         WRITE(numout,*) ' tracer nb: ',jpc14,' name = ',ctrcnm(jpc14), ctrcnl(jpc14) 
    6554         WRITE(numout,*) ' ' 
    66       ENDIF  
    67  
     55      ENDIF 
    6856 
    6957      ! Check tracer units 
     
    7260          ctrcun(jpc14) = 'ration' 
    7361          IF(lwp) THEN 
    74              WRITE (numout,*) ' ===>>>> : w a r n i n g ' 
    75              WRITE (numout,*) ' =======   ============= ' 
    76              WRITE (numout,*) ' we force tracer unit' 
     62             CALL ctl_warn( ' we force tracer unit' ) 
    7763             WRITE(numout,*) ' tracer  ',ctrcnm(jpc14), 'UNIT= ',ctrcun(jpc14) 
    7864             WRITE(numout,*) ' ' 
    79           ENDIF  
    80        ENDIF  
     65          ENDIF 
     66       ENDIF 
    8167      ! 
    8268   END SUBROUTINE trc_ctl_c14b 
Note: See TracChangeset for help on using the changeset viewer.