Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions io/namelist_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,10 @@ subroutine Broadcast_integer (val)
integer, intent(in) :: val

integer :: ierr
integer :: sendbuf(1)


call Mpi_bcast(val, 1, MPI_INTEGER, 0, MPI_COMM_WORLD, ierr)
sendbuf(1) = val
call Mpi_bcast(sendbuf, 1, MPI_INTEGER, 0, MPI_COMM_WORLD, ierr)

if (ierr /= MPI_SUCCESS) &
call Stop_simulation ('Error broadcasting integer value')
Expand All @@ -335,9 +336,10 @@ subroutine Broadcast_logical (val)
logical, intent(in) :: val

integer :: ierr
logical :: sendbuf(1)


call Mpi_bcast (val, 1, MPI_LOGICAL, 0, MPI_COMM_WORLD, ierr)
sendbuf(1) = val
call Mpi_bcast (sendbuf, 1, MPI_LOGICAL, 0, MPI_COMM_WORLD, ierr)

if (ierr /= MPI_SUCCESS) &
call Stop_simulation ('Error broadcasting logical value')
Expand All @@ -351,9 +353,10 @@ subroutine Broadcast_real (val)
real, intent(in) :: val

integer :: ierr
real :: sendbuf(1)


call Mpi_bcast (val, 1, MPI_REAL, 0, MPI_COMM_WORLD, ierr)
sendbuf(1) = val
call Mpi_bcast (sendbuf, 1, MPI_REAL, 0, MPI_COMM_WORLD, ierr)

if (ierr /= MPI_SUCCESS) &
call Stop_simulation ('Error broadcasting real value')
Expand Down Expand Up @@ -585,7 +588,7 @@ subroutine Init_fire_block (this, file_name)
call Stop_simulation (msg)
end if

read (unit_nml, nml = fire)
read (unit_nml, nml = fire, iostat = io_stat)
if (io_stat /= 0) call Stop_simulation ('Problems reading namelist fire block')

close (unit_nml)
Expand Down