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/dyn3dpar/abort_gcm.F

    r1492 r1747  
    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.