Program hello.f
, the main program
PROGRAM HELLO
INCLUDE 'fpvm3.h'
*
INTEGER mytid, tid
INTEGER bufid, info
CHARACTER*100 reply1, reply2
*
CALL PVMFMYTID (mytid)
WRITE (*,*) 'I m t', mytid
CALL PVMFSPAWN ('hello_other', 0, '*',
& 1, tid, info)
IF (info .EQ. 1) THEN
CALL PVMFRECV (-1, -1, info)
CALL PVMFGETRBUF (bufid)
CALL PVMFBUFINFO (bufid, 0, 0, tid)
CALL PVMFUNPACK (STRING, reply1, 1, 1, info)
CALL PVMFUNPACK (STRING, reply2, 1, 1, info)
WRITE (*,*) 'From t', tid, ':', reply1, reply2
ELSE
WRITE (*,*) 'Can t start hello_other'
ENDIF
CALL PVMFEXIT (info)
END