Ignore:
Timestamp:
Apr 23, 2013, 4:06:30 PM (12 years ago)
Author:
lguez
Message:

When an MPI process is stopped by a Fortran stop, other MPI processes may not stop. Use mpi_abort instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/dyn3dmem/abort_gcm.F

    r1673 r1747  
    11!
    2 ! $Id$
     2! $Id: abort_gcm.F 1492 2011-03-08 08:10:25Z fairhead $
    33!
    44c
     
    2424
    2525      character(len=*) modname
    26       integer ierr
     26      integer ierr, ierror_mpi
    2727      character(len=*) message
    2828
     
    4747      else
    4848        write(lunout,*) 'Houston, we have a problem ', ierr
     49#ifdef CPP_MPI
     50C$OMP CRITICAL MPI
     51        call MPI_ABORT(COMM_LMDZ, 1, ierror_mpi)
     52C$OMP END CRITICAL MPI
     53#else
    4954        stop 1
     55#endif         
    5056      endif
    5157      END
Note: See TracChangeset for help on using the changeset viewer.