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 474 for trunk/NEMO/OPA_SRC/TRA/traldf.F90 – NEMO

Ignore:
Timestamp:
2006-05-11T17:24:19+02:00 (18 years ago)
Author:
opalod
Message:

nemo_v1_update_061: SM: end of ctl_stop + mpi optimization in _bilap

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/TRA/traldf.F90

    r458 r474  
    168168      IF( ln_traldf_lap   )   ioptio = ioptio + 1 
    169169      IF( ln_traldf_bilap )   ioptio = ioptio + 1 
    170       IF( ioptio /= 1 )   THEN 
    171           IF(lwp) WRITE(numout,cform_err) 
    172           IF(lwp) WRITE(numout,*) '          use ONE of the 2 lap/bilap operator type on tracer' 
    173           nstop = nstop + 1 
    174       ENDIF 
     170      IF( ioptio /= 1 ) CALL ctl_stop( '          use ONE of the 2 lap/bilap operator type on tracer' ) 
    175171      ioptio = 0 
    176172      IF( ln_traldf_level )   ioptio = ioptio + 1 
    177173      IF( ln_traldf_hor   )   ioptio = ioptio + 1 
    178174      IF( ln_traldf_iso   )   ioptio = ioptio + 1 
    179       IF( ioptio /= 1 ) THEN 
    180          IF(lwp) WRITE(numout,cform_err) 
    181          IF(lwp) WRITE(numout,*) '          use only ONE direction (level/hor/iso)' 
    182          nstop = nstop + 1 
    183       ENDIF 
     175      IF( ioptio /= 1 ) CALL ctl_stop( '          use only ONE direction (level/hor/iso)' ) 
    184176 
    185177      ! defined the type of lateral diffusion from ln_traldf_... logicals 
     
    221213      ENDIF 
    222214 
    223       IF( ierr == 1 ) THEN 
    224          IF(lwp) WRITE(numout,cform_err) 
    225          IF(lwp) WRITE(numout,*) ' iso-level in z-coordinate - partial step, not allowed' 
    226          nstop = nstop + 1 
    227       ENDIF 
    228       IF( ierr == 2 ) THEN 
    229          IF(lwp) WRITE(numout,cform_err) 
    230          IF(lwp) WRITE(numout,*) ' isoneutral bilaplacian operator does not exist' 
    231          nstop = nstop + 1 
    232       ENDIF 
    233       IF( lk_traldf_eiv .AND. .NOT.ln_traldf_iso ) THEN 
    234          IF(lwp) WRITE(numout,*) '          eddy induced velocity on tracers' 
    235          IF(lwp) WRITE(numout,cform_err) 
    236          IF(lwp) WRITE(numout,*) ' the eddy induced velocity on tracers requires isopycnal laplacian diffusion' 
    237          nstop = nstop + 1 
    238       ENDIF 
     215      IF( ierr == 1 ) CALL ctl_stop( ' iso-level in z-coordinate - partial step, not allowed' ) 
     216      IF( ierr == 2 ) CALL ctl_stop( ' isoneutral bilaplacian operator does not exist' ) 
     217      IF( lk_traldf_eiv .AND. .NOT.ln_traldf_iso ) & 
     218           & CALL ctl_stop( '          eddy induced velocity on tracers', & 
     219           &                ' the eddy induced velocity on tracers requires isopycnal laplacian diffusion' ) 
    239220      IF( nldf == 1 .OR. nldf == 3 ) THEN      ! rotation 
    240          IF( .NOT.lk_ldfslp ) THEN 
    241             IF(lwp) WRITE(numout,cform_err) 
    242             IF(lwp) WRITE(numout,*) '          the rotation of the diffusive tensor require key_ldfslp' 
    243             nstop = nstop + 1 
    244          ENDIF 
     221         IF( .NOT.lk_ldfslp ) CALL ctl_stop( '          the rotation of the diffusive tensor require key_ldfslp' ) 
    245222      ENDIF 
    246223 
     
    320297      va    (:,:,:) = sa (:,:,:) 
    321298      zavt  (:,:,:) = avt(:,:,:) 
    322       IF( lk_zdfddm ) THEN 
    323           IF(lwp) WRITE(numout,cform_err) 
    324           IF(lwp) WRITE(numout,*) ' key_traldf_ano with key_zdfddm not implemented' 
    325           nstop = nstop + 1 
    326       ENDIF 
     299      IF( lk_zdfddm ) THEN CALL ctl_stop( ' key_traldf_ano with key_zdfddm not implemented' ) 
    327300      ! set tb, sb to reference values and avr to zero 
    328301      tb (:,:,:) = zt_ref(:,:,:) 
Note: See TracChangeset for help on using the changeset viewer.