mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-16 10:52:08 +00:00
hello hello/Makefile hello/hello.f90 hello/pingpong.f90 hello/runs Added new test dir.
22 lines
535 B
Fortran
22 lines
535 B
Fortran
program hello
|
|
use psb_base_mod
|
|
implicit none
|
|
integer iam, np, icontxt, ip, jp, idummy
|
|
|
|
call psb_init(icontxt)
|
|
call psb_info(icontxt,iam,np)
|
|
! have all processes check in
|
|
if ((iam >= 0).and.(iam < np)) then
|
|
if (iam == 0) then
|
|
do ip = 1, np-1
|
|
call psb_rcv(icontxt,idummy,ip)
|
|
enddo
|
|
write(*,*) 'Hello, world: all ',np, &
|
|
& ' processes checked in!'
|
|
else
|
|
call psb_snd(icontxt,idummy,0)
|
|
endif
|
|
end if
|
|
call psb_exit(icontxt)
|
|
end program hello
|