Changeset 1000 for LMDZ4/trunk/libf/dyn3dpar/mod_const_para.F90
- Timestamp:
- Oct 6, 2008, 10:43:22 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/trunk/libf/dyn3dpar/mod_const_para.F90
r985 r1000 11 11 12 12 IMPLICIT NONE 13 #ifdef CPP_MPI 13 14 INCLUDE 'mpif.h' 15 #endif 14 16 INTEGER :: ierr 15 17 INTEGER :: comp_id … … 30 32 CALL prism_get_localcomm_proto(COMM_LMDZ,ierr) 31 33 !$OMP END MASTER 34 #ifdef CPP_MPI 35 COMM_LMDZ=MPI_COMM_WORLD 36 MPI_REAL_LMDZ=MPI_REAL8 37 #endif 32 38 #endif 33 39 ELSE 40 CALL init_mpi 41 ENDIF 42 43 END SUBROUTINE Init_const_mpi 44 45 SUBROUTINE Init_mpi 46 IMPLICIT NONE 47 #ifdef CPP_MPI 48 INCLUDE 'mpif.h' 49 #endif 50 INTEGER :: ierr 51 INTEGER :: thread_required 52 INTEGER :: thread_provided 53 54 #ifdef CPP_MPI 34 55 !$OMP MASTER 35 thread_required=MPI_THREAD_SERIALIZED 36 CALL MPI_INIT_THREAD(thread_required,thread_provided,ierr) 37 IF (thread_provided < thread_required) THEN 38 CALL abort_gcm('The multithreaded level of MPI librairy do not provide the requiered level', & 39 'mod_const_mpi::Init_const_mpi',1) 40 ENDIF 41 COMM_LMDZ=MPI_COMM_WORLD 56 thread_required=MPI_THREAD_SERIALIZED 57 58 CALL MPI_INIT_THREAD(thread_required,thread_provided,ierr) 59 IF (thread_provided < thread_required) THEN 60 PRINT *,'Warning : The multithreaded level of MPI librairy do not provide the requiered level', & 61 ' in mod_const_mpi::Init_const_mpi' 62 ENDIF 63 COMM_LMDZ=MPI_COMM_WORLD 64 MPI_REAL_LMDZ=MPI_REAL8 42 65 !$OMP END MASTER 43 END IF 66 #endif 44 67 45 MPI_REAL_LMDZ=MPI_REAL8 46 END SUBROUTINE Init_const_mpi 47 68 END SUBROUTINE Init_mpi 69 48 70 END MODULE mod_const_mpi
Note: See TracChangeset
for help on using the changeset viewer.