next up previous
Next: Archetype file mesh_uparms.h Up: ``Helloworld'' Previous: ``Helloworld''

Code for host and grid processes

C=======================================================================
C=======================================================================
C
C       sample program p1 -- "hello":
C               each process prints "hello" message
C
C=======================================================================
C=======================================================================

C=======================================================================
C
C       host process-main program
C
C=======================================================================

        subroutine hostmain

        include 'mesh_uparms.h'
        include 'mesh_parms.h'
        include 'mesh_common.h'

C=======USER-SUPPLIED common block(s), declarations, body of program

        print*, 'hello from host process'

C=======end of USER-SUPPLIED code
        end

C=======================================================================
C
C       grid process-main program
C
C=======================================================================

        subroutine gridmain

        include 'mesh_uparms.h'
        include 'mesh_parms.h'
        include 'mesh_common.h'

C=======USER-SUPPLIED common block(s), declarations, body of program

C       iprocx, iprocy, iprocz are defined in mesh_common.h
        print*, 'hello from grid process at ', iprocx, iprocy, iprocz

C=======end of USER-SUPPLIED code

        end



Berna L Massingill
Mon Jun 8 19:35:58 PDT 1998