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/DYN/dynldf.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/DYN/dynldf.F90

    r456 r474  
    152152      IF( ln_dynldf_lap   )   ioptio = ioptio + 1 
    153153      IF( ln_dynldf_bilap )   ioptio = ioptio + 1 
    154       IF( ioptio /= 1 )   THEN 
    155           IF(lwp) WRITE(numout,cform_err) 
    156           IF(lwp) WRITE(numout,*) '          use ONE of the 2 lap/bilap operator type on dynamics' 
    157           nstop = nstop + 1 
    158       ENDIF 
     154      IF( ioptio /= 1 ) CALL ctl_stop( '          use ONE of the 2 lap/bilap operator type on dynamics' ) 
    159155      ioptio = 0 
    160156      IF( ln_dynldf_level )   ioptio = ioptio + 1 
    161157      IF( ln_dynldf_hor   )   ioptio = ioptio + 1 
    162158      IF( ln_dynldf_iso   )   ioptio = ioptio + 1 
    163       IF( ioptio /= 1 ) THEN 
    164          IF(lwp) WRITE(numout,cform_err) 
    165          IF(lwp) WRITE(numout,*) '          use only ONE direction (level/hor/iso)' 
    166          nstop = nstop + 1 
    167       ENDIF 
     159      IF( ioptio /= 1 ) CALL ctl_stop( '          use only ONE direction (level/hor/iso)' ) 
    168160 
    169161      ! defined the type of lateral diffusion from ln_dynldf_... logicals 
     
    205197      ENDIF 
    206198 
    207       IF( ierr == 1 ) THEN 
    208          IF(lwp) WRITE(numout,cform_err) 
    209          IF(lwp) WRITE(numout,*) ' iso-level in z-coordinate - partial step, not allowed' 
    210          nstop = nstop + 1 
    211       ENDIF 
    212       IF( ierr == 2 ) THEN 
    213          IF(lwp) WRITE(numout,cform_err) 
    214          IF(lwp) WRITE(numout,*) ' isoneutral bilaplacian operator does not exist' 
    215          nstop = nstop + 1 
    216       ENDIF 
     199      IF( ierr == 1 )   & 
     200           &   CALL ctl_stop( ' iso-level in z-coordinate - partial step, not allowed' ) 
     201      IF( ierr == 2 )   & 
     202           &   CALL ctl_stop( ' isoneutral bilaplacian operator does not exist' ) 
    217203      IF( nldf == 1 .OR. nldf == 3 ) THEN      ! rotation 
    218          IF( .NOT.lk_ldfslp ) THEN 
    219             IF(lwp) WRITE(numout,cform_err) 
    220             IF(lwp) WRITE(numout,*) '          the rotation of the diffusive tensor require key_ldfslp' 
    221             nstop = nstop + 1 
    222          ENDIF 
     204         IF( .NOT.lk_ldfslp )   & 
     205           &   CALL ctl_stop(  '          the rotation of the diffusive tensor require key_ldfslp' ) 
    223206      ENDIF 
    224207 
Note: See TracChangeset for help on using the changeset viewer.