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/LOBSTER/trcctl_lobster.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/LOBSTER/trcctl_lobster.F90

    r1255 r2423  
    4040      ! Check number of tracers 
    4141      ! ----------------------- 
    42       IF (jp_lobster /= 6) THEN  
    43           IF (lwp) THEN  
    44               WRITE (numout,*) ' ===>>>> : w a r n i n g ' 
    45               WRITE (numout,*) ' =======   ============= ' 
    46               WRITE (numout,*)                             & 
    47               &   ' STOP, change jp_lobster to 6 in '           & 
    48               &   ,'par_lobster.F90 '   
    49           END IF  
    50           STOP 'TRC_CTL' 
    51       END IF  
     42      IF( jp_lobster /= 6 ) CALL ctl_stop( ' LOBSTER has 6 passive tracers. Change jp_lobster in par_lobster.F90' ) 
    5243 
    5344      ! Check tracer names 
     
    5546      IF(   ctrcnm(jpdet) /= 'DET' .OR. ctrcnm(jpzoo) /= 'ZOO' .OR.   & 
    5647         &  ctrcnm(jpphy) /= 'PHY' .OR. ctrcnm(jpno3) /= 'NO3' .OR.   & 
    57          &  ctrcnm(jpnh4) /= 'NH4' .OR. ctrcnm(jpdom) /= 'DOM' .OR.   &  
     48         &  ctrcnm(jpnh4) /= 'NH4' .OR. ctrcnm(jpdom) /= 'DOM' .OR.   & 
    5849         &  ctrcnl(jpdet) /= 'Detritus'                        .OR.   & 
    5950         &  ctrcnl(jpzoo) /= 'Zooplankton concentration'       .OR.   & 
     
    6152         &  ctrcnl(jpno3) /= 'Nitrate concentration'           .OR.   & 
    6253         &  ctrcnl(jpnh4) /= 'Ammonium concentration'          .OR.   & 
    63          &  ctrcnl(jpdom) /= 'Dissolved organic matter' ) THEN  
     54         &  ctrcnl(jpdom) /= 'Dissolved organic matter' ) THEN 
    6455         ctrcnm(jpdet)='DET' 
    6556         ctrcnl(jpdet)='Detritus' 
     
    7364         ctrcnl(jpnh4)='Ammonium concentration' 
    7465         ctrcnm(jpdom)='DOM' 
    75          ctrcnl(jpdom)='Dissolved organic matter'           
     66         ctrcnl(jpdom)='Dissolved organic matter' 
    7667         IF(lwp) THEN 
    77             WRITE (numout,*) ' ===>>>> : w a r n i n g ' 
    78             WRITE (numout,*) ' =======   ============= ' 
    79             WRITE (numout,*) ' we force tracer names' 
     68            CALL ctl_warn( ' We force tracer names ' ) 
    8069            DO jl = 1, jp_lobster 
    8170               jn = jp_lob0 + jl - 1 
     
    8372            END DO 
    8473            WRITE(numout,*) ' ' 
    85          ENDIF  
    86       ENDIF  
     74         ENDIF 
     75      ENDIF 
    8776 
    8877      ! Check tracer units 
     
    9281            ctrcun(jn) = 'mmole-N/m3' 
    9382            IF(lwp) THEN 
    94                WRITE (numout,*) ' ===>>>> : w a r n i n g ' 
    95                WRITE (numout,*) ' =======   ============= ' 
    96                WRITE (numout,*) ' we force tracer unit' 
     83               CALL ctl_warn( ' We force tracer units ' ) 
    9784               WRITE(numout,*) ' tracer  ',ctrcnm(jn), 'UNIT= ',ctrcun(jn) 
    98             ENDIF  
    99          ENDIF  
    100       END DO               
     85            ENDIF 
     86         ENDIF 
     87      END DO 
     88 
    10189   END SUBROUTINE trc_ctl_lobster 
    10290 
Note: See TracChangeset for help on using the changeset viewer.