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 10675 for branches/UKMO/dev_r5518_GO6_package_abort_switch/NEMOGCM/NEMO/OPA_SRC/step.F90 – NEMO

Ignore:
Timestamp:
2019-02-13T14:30:01+01:00 (5 years ago)
Author:
timgraham
Message:

Added nn_abort switch in namrun,
Removed call to ctl_stop from dia_wri_state into step
Put if statement around call to dia_wri_state in step

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_GO6_package_abort_switch/NEMOGCM/NEMO/OPA_SRC/step.F90

    r10149 r10675  
    376376      IF( indic < 0        )   THEN 
    377377                               CALL ctl_stop( 'step: indic < 0' ) 
    378                                CALL dia_wri_state( 'output.abort', kstp ) 
     378                               IF( nn_abort ) CALL dia_wri_state( 'output.abort', kstp ) 
     379                               CALL ctl_stop('MPPSTOP', 'NEMO abort from stp') 
    379380      ENDIF 
    380381      IF( kstp == nit000   )   THEN 
Note: See TracChangeset for help on using the changeset viewer.