tests_roundtrip Subroutine

public subroutine tests_roundtrip()

Uses

  • proc~~tests_roundtrip~~UsesGraph proc~tests_roundtrip tests_roundtrip module~modmpi modmpi proc~tests_roundtrip->module~modmpi module~readnamelists readnamelists proc~tests_roundtrip->module~readnamelists mpi mpi proc~tests_roundtrip->mpi module~modmpi->mpi module~readnamelists->module~modmpi module~readnamelists->mpi decomp_2d decomp_2d module~readnamelists->decomp_2d ieee_arithmetic ieee_arithmetic module~readnamelists->ieee_arithmetic modpois modpois module~readnamelists->modpois module~modboundary modboundary module~readnamelists->module~modboundary module~moddriver moddriver module~readnamelists->module~moddriver module~modfields modfields module~readnamelists->module~modfields module~modforces modforces module~readnamelists->module~modforces module~modglobal modglobal module~readnamelists->module~modglobal module~modibm modibm module~readnamelists->module~modibm module~modibmdata modibmdata module~readnamelists->module~modibmdata module~modinlet modinlet module~readnamelists->module~modinlet module~modinletdata modinletdata module~readnamelists->module~modinletdata module~modsubgriddata modsubgriddata module~readnamelists->module~modsubgriddata module~modsurfdata modsurfdata module~readnamelists->module~modsurfdata module~modthermodynamics modthermodynamics module~readnamelists->module~modthermodynamics module~modtimedep modtimedep module~readnamelists->module~modtimedep module~modboundary->mpi module~moddriver->module~modinletdata module~modfields->decomp_2d module~modibm->mpi module~modibm->module~modibmdata module~modinlet->mpi module~modinlet->module~modinletdata module~modtimedep->mpi

Arguments

None

Calls

proc~~tests_roundtrip~~CallsGraph proc~tests_roundtrip tests_roundtrip mpi_barrier mpi_barrier proc~tests_roundtrip->mpi_barrier mpi_comm_rank mpi_comm_rank proc~tests_roundtrip->mpi_comm_rank mpi_comm_size mpi_comm_size proc~tests_roundtrip->mpi_comm_size proc~writenamelists writenamelists proc~tests_roundtrip->proc~writenamelists

Called by

proc~~tests_roundtrip~~CalledByGraph proc~tests_roundtrip tests_roundtrip proc~execute_early_runmode_actions execute_early_runmode_actions proc~execute_early_runmode_actions->proc~tests_roundtrip program~udales uDALES program~udales->proc~execute_early_runmode_actions

Source Code

  subroutine tests_roundtrip
    use mpi
    use modmpi,         only : nprocx, nprocy
    use readnamelists, only : writenamelists
    implicit none

    integer :: ierr, nprocs, myid, last_proc

    call MPI_COMM_RANK(MPI_COMM_WORLD, myid, ierr)
    call MPI_COMM_SIZE(MPI_COMM_WORLD, nprocs, ierr)
    last_proc = nprocs - 1

    if (myid == 0) then
      write(*,*) '========================================='
      write(*,*) 'INPUT ROUND-TRIP TEST'
      write(*,*) '========================================='
      write(*,*) 'Total processes:', nprocs
      write(*,*) 'Requested nprocx*nprocy:', nprocx * nprocy
      write(*,*) 'Last process ID:', last_proc
      write(*,*) '========================================='
    end if

    call MPI_BARRIER(MPI_COMM_WORLD, ierr)

    if (myid == last_proc) then
      write(*,*) '  Last process (', myid, ') received ALL INPUT VALUES:'
      call writenamelists
    end if

  end subroutine tests_roundtrip