Last change
on this file since 929 was
884,
checked in by Laurent Fairhead, 17 years ago
|
Modifs pour faire tourner le meme executable en force ou couple JG
LF
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
681 bytes
|
Rev | Line | |
---|
[774] | 1 | MODULE mod_const_mpi |
---|
| 2 | |
---|
| 3 | INTEGER :: COMM_LMDZ |
---|
| 4 | INTEGER :: MPI_REAL_LMDZ |
---|
| 5 | |
---|
| 6 | |
---|
| 7 | CONTAINS |
---|
| 8 | |
---|
| 9 | SUBROUTINE Init_const_mpi |
---|
[884] | 10 | USE IOIPSL |
---|
| 11 | |
---|
| 12 | IMPLICIT NONE |
---|
[774] | 13 | INCLUDE 'mpif.h' |
---|
[884] | 14 | INTEGER :: ierr |
---|
| 15 | INTEGER :: comp_id |
---|
| 16 | CHARACTER(len = 6) :: ocean |
---|
| 17 | |
---|
| 18 | !$OMP MASTER |
---|
| 19 | ocean = 'force ' |
---|
| 20 | CALL getin('OCEAN', ocean) |
---|
| 21 | !$OMP END |
---|
| 22 | |
---|
| 23 | IF (ocean=='couple') THEN |
---|
[806] | 24 | #ifdef CPP_COUPLE |
---|
[884] | 25 | CALL prism_init_comp_proto (comp_id, 'lmdz.x', ierr) |
---|
| 26 | CALL prism_get_localcomm_proto(COMM_LMDZ,ierr) |
---|
[806] | 27 | #endif |
---|
[884] | 28 | ELSE |
---|
| 29 | CALL MPI_INIT(ierr) |
---|
| 30 | COMM_LMDZ=MPI_COMM_WORLD |
---|
| 31 | END IF |
---|
[806] | 32 | |
---|
[774] | 33 | MPI_REAL_LMDZ=MPI_REAL8 |
---|
| 34 | END SUBROUTINE Init_const_mpi |
---|
| 35 | |
---|
| 36 | END MODULE mod_const_mpi |
---|
Note: See
TracBrowser
for help on using the repository browser.