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 5675 for branches/UKMO/dev_r5518_clean_shutdown/NEMOGCM/NEMO/OPA_SRC/LBC/lib_mpp.F90 – NEMO

Ignore:
Timestamp:
2015-08-10T16:39:02+02:00 (9 years ago)
Author:
dancopsey
Message:

Applied clean shutdown code imported from Met Office internal branch http://fcm2/projects/NEMO/browser/NEMO/branches/dev/frrh/vn3.5_beta_clean_shutdown

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_clean_shutdown/NEMOGCM/NEMO/OPA_SRC/LBC/lib_mpp.F90

    r5674 r5675  
    20062006 
    20072007   SUBROUTINE mppstop 
     2008    
     2009#if defined key_oasis3 || defined key_oasis3mct 
     2010 
     2011#if defined key_oasis3mct 
     2012   USE mod_oasis 
     2013#endif 
     2014 
     2015#endif 
    20082016      !!---------------------------------------------------------------------- 
    20092017      !!                  ***  routine mppstop  *** 
     
    20152023      !!---------------------------------------------------------------------- 
    20162024      ! 
     2025#if defined key_oasis3 || defined key_oasis3mct 
     2026      ! If we're trying to shut down cleanly then we need to consider the fact 
     2027      ! that this could be part of an MPMD configuration - we don't want to 
     2028      ! leave other components deadlocked. 
     2029 
     2030      CALL oasis_abort(nproc,"mppstop","NEMO initiated abort") 
     2031 
     2032#else 
     2033 
    20172034      CALL mppsync 
    20182035      CALL mpi_finalize( info ) 
    2019       ! 
     2036 
     2037#endif 
    20202038   END SUBROUTINE mppstop 
    20212039 
     
    37843802            WRITE(kout,*) 
    37853803         ENDIF 
    3786          STOP 'ctl_opn bad opening' 
     3804         CALL ctl_stop ('STOP', 'NEMO abort ctl_opn bad opening') 
    37873805      ENDIF 
    37883806 
Note: See TracChangeset for help on using the changeset viewer.