Skip to content
Merged
Show file tree
Hide file tree
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
12 changes: 5 additions & 7 deletions src/data/ref_pres.F90
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,11 @@ subroutine ref_pres_readnl(nlfile)
end if
end if

if (npes > 1) then
! Broadcast namelist variables
call mpi_bcast(trop_cloud_top_press, 1, mpi_real8, masterprocid, mpicom, ierr)
call mpi_bcast(clim_modal_aero_top_press, 1, mpi_real8, masterprocid, mpicom, ierr)
call mpi_bcast(do_molec_press, 1, mpi_real8, masterprocid, mpicom, ierr)
call mpi_bcast(molec_diff_bot_press, 1, mpi_real8, masterprocid, mpicom, ierr)
endif
! Broadcast namelist variables
call mpi_bcast(trop_cloud_top_press, 1, mpi_real8, masterprocid, mpicom, ierr)
call mpi_bcast(clim_modal_aero_top_press, 1, mpi_real8, masterprocid, mpicom, ierr)
call mpi_bcast(do_molec_press, 1, mpi_real8, masterprocid, mpicom, ierr)
call mpi_bcast(molec_diff_bot_press, 1, mpi_real8, masterprocid, mpicom, ierr)

end subroutine ref_pres_readnl

Expand Down
6 changes: 2 additions & 4 deletions src/dynamics/utils/vert_coord.F90
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,8 @@ subroutine vert_coord_readnl(nlfile)
end if
end if

if (npes > 1) then
! Broadcast namelist variables
call mpi_bcast(pver, 1, mpi_integer, masterprocid, mpicom, ierr)
endif
! Broadcast namelist variables
call mpi_bcast(pver, 1, mpi_integer, masterprocid, mpicom, ierr)

end subroutine vert_coord_readnl

Expand Down
14 changes: 6 additions & 8 deletions src/physics/utils/physics_grid.F90
Original file line number Diff line number Diff line change
Expand Up @@ -285,14 +285,12 @@ subroutine phys_grid_init(hdim1_d_in, hdim2_d_in, dycore_name_in, &
file=__FILE__, line=__LINE__)

! We need a global minimum longitude and latitude
if (npes > 1) then
temp = lonmin
call MPI_allreduce(temp, lonmin, 1, MPI_INTEGER, MPI_MIN, &
mpicom, ierr)
temp = latmin
call MPI_allreduce(temp, latmin, 1, MPI_INTEGER, MPI_MIN, &
mpicom, ierr)
end if
temp = lonmin
call MPI_allreduce(temp, lonmin, 1, MPI_INTEGER, MPI_MIN, &
mpicom, ierr)
temp = latmin
call MPI_allreduce(temp, latmin, 1, MPI_INTEGER, MPI_MIN, &
mpicom, ierr)
! Create lon coord map which only writes from one of each unique lon
where(latvals == latmin)
coord_map(:) = grid_map(3, :)
Expand Down