Last change
on this file since 2 was
2,
checked in by xlvlod, 17 years ago
|
initial import from /home2/xlvlod/IDRIS/SVN_BASE_TRUNK
|
File size:
597 bytes
|
Line | |
---|
1 | !!! Initialize MPI routines |
---|
2 | comm=MPI_COMM_WORLD |
---|
3 | call MPI_INIT(ierr) |
---|
4 | call MPI_COMM_RANK(comm,myid,ierr) |
---|
5 | call MPI_COMM_SIZE(comm,nprocs,ierr) |
---|
6 | |
---|
7 | if( myid .eq. 0 ) then |
---|
8 | write(0,*) ' MPI initialized with ',nprocs,' live processors' |
---|
9 | if( nprocs .ne. numprocs ) then |
---|
10 | write(0,*) ' Number of live processors: ',nprocs,' does not match' |
---|
11 | write(0,*) ' the number specified in variable_declarations.h: ',numprocs |
---|
12 | write(0,*) ' Check the run.sh script.' |
---|
13 | goto 999 ! shutdown MPI and exit gracefully |
---|
14 | endif |
---|
15 | endif |
---|
16 | |
---|
Note: See
TracBrowser
for help on using the repository browser.