Changeset 1748


Ignore:
Timestamp:
Apr 24, 2013, 4:18:40 PM (11 years ago)
Author:
Ehouarn Millour
Message:

OMP CRITICAL name must be between brackets (ifort specific?) or else compilation fails in OpenMP mode. Moreover it is recommended to use different names for different OMP CRITICAL sections.
EM

Location:
LMDZ5/trunk/libf
Files:
2 edited

Legend:

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

    r1747 r1748  
    11!
    2 ! $Id: abort_gcm.F 1492 2011-03-08 08:10:25Z fairhead $
     2! $Id: abort_gcm.F 1747 2013-04-23 14:06:30Z lguez $
    33!
    44c
     
    4848        write(lunout,*) 'Houston, we have a problem ', ierr
    4949#ifdef CPP_MPI
    50 C$OMP CRITICAL MPI
     50C$OMP CRITICAL (MPI_ABORT_GCM)
    5151        call MPI_ABORT(COMM_LMDZ, 1, ierror_mpi)
    52 C$OMP END CRITICAL MPI
     52C$OMP END CRITICAL (MPI_ABORT_GCM)
    5353#else
    5454        stop 1
  • LMDZ5/trunk/libf/dyn3dpar/abort_gcm.F

    r1747 r1748  
    4848        write(lunout,*) 'Houston, we have a problem ', ierr
    4949#ifdef CPP_MPI
    50 C$OMP CRITICAL MPI
     50C$OMP CRITICAL (MPI_ABORT_GCM)
    5151        call MPI_ABORT(COMM_LMDZ, 1, ierror_mpi)
    52 C$OMP END CRITICAL MPI
     52C$OMP END CRITICAL (MPI_ABORT_GCM)
    5353#else
    5454        stop 1
Note: See TracChangeset for help on using the changeset viewer.