Blame examples/f77/hellow.f
|
Packit |
0848f5 |
c (C) 2008 by Argonne National Laboratory.
|
|
Packit |
0848f5 |
c See COPYRIGHT in top-level directory.
|
|
Packit |
0848f5 |
|
|
Packit |
0848f5 |
program main
|
|
Packit |
0848f5 |
|
|
Packit |
0848f5 |
include 'mpif.h'
|
|
Packit |
0848f5 |
|
|
Packit |
0848f5 |
integer ierr, myid, numprocs
|
|
Packit |
0848f5 |
|
|
Packit |
0848f5 |
call MPI_INIT( ierr )
|
|
Packit |
0848f5 |
call MPI_COMM_RANK( MPI_COMM_WORLD, myid, ierr )
|
|
Packit |
0848f5 |
call MPI_COMM_SIZE( MPI_COMM_WORLD, numprocs, ierr )
|
|
Packit |
0848f5 |
print *, "Process ", myid, " of ", numprocs, " is alive"
|
|
Packit |
0848f5 |
|
|
Packit |
0848f5 |
call MPI_FINALIZE(rc)
|
|
Packit |
0848f5 |
stop
|
|
Packit |
0848f5 |
end
|