initchecksim Subroutine

public subroutine initchecksim()

Uses

  • proc~~initchecksim~~UsesGraph proc~initchecksim initchecksim module~modglobal modglobal proc~initchecksim->module~modglobal module~modmpi modmpi proc~initchecksim->module~modmpi mpi mpi module~modmpi->mpi

Arguments

None

Calls

proc~~initchecksim~~CallsGraph proc~initchecksim initchecksim mpi_bcast mpi_bcast proc~initchecksim->mpi_bcast

Called by

proc~~initchecksim~~CalledByGraph proc~initchecksim initchecksim program~dalesurban DALESURBAN program~dalesurban->proc~initchecksim

Namelists

Namelist NAMCHECKSIM


Variables

Name Type Default Description
tcheck real 0.

Source Code

  subroutine initchecksim
    use modglobal, only : ifnamopt, fname_options,dtmax,ladaptive,btime
    use modmpi,    only : myid,my_real,comm3d,mpierr
    implicit none
    integer :: ierr
    namelist/NAMCHECKSIM/ &
    tcheck

    if(myid==0)then
      open(ifnamopt,file=fname_options,status='old',iostat=ierr)
      read (ifnamopt,NAMCHECKSIM,iostat=ierr)
      if (ierr > 0) then
        write(0, *) 'ERROR: Problem in namoptions NAMCHECKSIM'
        write(0, *) 'iostat error: ', ierr
        stop 1
      endif
      !write(6 ,NAMCHECKSIM)
      close(ifnamopt)

      if ((.not. ladaptive) .and. (tcheck < dtmax)) then
        tcheck = dtmax
      end if
    end if

    call MPI_BCAST(tcheck     ,1,MY_REAL   ,0,comm3d,mpierr)
!    itcheck = floor(tcheck/tres)
    tnext = tcheck+btime


  end subroutine initchecksim