test_main Subroutine

subroutine test_main()

Arguments

None

Calls

proc~~test_main~3~~CallsGraph proc~test_main~3 test_main esmf_finalize esmf_finalize proc~test_main~3->esmf_finalize esmf_initialize esmf_initialize proc~test_main~3->esmf_initialize esmf_vmgetglobal esmf_vmgetglobal proc~test_main~3->esmf_vmgetglobal geos_am_i_root geos_am_i_root proc~test_main~3->geos_am_i_root mapl_verify mapl_verify proc~test_main~3->mapl_verify proc~mygridcreate_~3 MyGridCreate_ proc~test_main~3->proc~mygridcreate_~3 proc~mygridcreate_~3->geos_am_i_root proc~mygridcreate_~3->mapl_verify esmf_delayoutcreate esmf_delayoutcreate proc~mygridcreate_~3->esmf_delayoutcreate esmf_gridaddvertheight esmf_gridaddvertheight proc~mygridcreate_~3->esmf_gridaddvertheight esmf_gridcreatehorzlatlonuni esmf_gridcreatehorzlatlonuni proc~mygridcreate_~3->esmf_gridcreatehorzlatlonuni esmf_griddistribute esmf_griddistribute proc~mygridcreate_~3->esmf_griddistribute geos_get_local_dims geos_get_local_dims proc~mygridcreate_~3->geos_get_local_dims mapl_return mapl_return proc~mygridcreate_~3->mapl_return

Called by

proc~~test_main~3~~CalledByGraph proc~test_main~3 test_main program~utdistio utDistIO program~utdistio->proc~test_main~3

Source Code

    subroutine test_main()

!   Initialize framework
!   --------------------
    call ESMF_Initialize (vm=vm, rc=status)
    _VERIFY(status)

    IamRoot = GEOS_am_I_root()

!   Get the global vm
!   -----------------
    call ESMF_VMGetGlobal(vm, rc=status)
    _VERIFY(status)

!   Create a grid
!   -------------
    grid = MyGridCreate_ ( vm, rc=status )
    _VERIFY(status)

!   Get local im, jm
!   ----------------

    if ( IamRoot ) print *, 'Hello, World'

!   Allocate and write global array
!   -------------------------------
    if ( IamRoot ) then
       allocate(gArr(IM_WORLD,JM_WORLD))
       gArr = 1.0;
       open(lu,filen=dirname//'/global.dat')
       do n = 1, ntimes
          write(lu) gArr
       end do
       close(lu)
    end if

!   Next, scatter array
!   -------------------
    call 

!   All done
!   --------
    call ESMF_Finalize ( status )
    _VERIFY(STATUS)
    
  end subroutine test_main