You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
psblas3/test/hello/hello.f90

23 lines
563 B
Fortran

program hello
use psb_base_mod
implicit none
integer(psb_ipk_) :: 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
ip = 0
call psb_snd(icontxt,idummy,ip)
endif
end if
call psb_exit(icontxt)
end program hello