Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPI scatter #12

Open
nmizukami opened this issue Jul 3, 2019 · 0 comments
Open

MPI scatter #12

nmizukami opened this issue Jul 3, 2019 · 0 comments

Comments

@nmizukami
Copy link
Owner

nmizukami commented Jul 3, 2019

global input in this scatter function (first argument) has lbound and ubound specification and arrays on task complain. For this scatter function, global array in a root node has proper values but array on other tasks do not. The global array is declared with a size. so why this global array is not recognized on other tasks?

call shr_mpi_scatterV(segId (nRch_mainstem+1:nRch_in), rch_per_proc(0:nNodes-1), segId_local, ierr, cmessage)
call shr_mpi_scatterV(downSegId(nRch_mainstem+1:nRch_in), rch_per_proc(0:nNodes-1), downSegId_local, ierr, cmessage)
call shr_mpi_scatterV(slope (nRch_mainstem+1:nRch_in), rch_per_proc(0:nNodes-1), slope_local, ierr, cmessage)
call shr_mpi_scatterV(length (nRch_mainstem+1:nRch_in), rch_per_proc(0:nNodes-1), length_local, ierr, cmessage)
call shr_mpi_scatterV(hruId (nHRU_mainstem+1:nHRU_in), hru_per_proc(0:nNodes-1), hruId_local, ierr, cmessage)
call shr_mpi_scatterV(hruSegId (nHRU_mainstem+1:nHRU_in), hru_per_proc(0:nNodes-1), hruSegId_local, ierr, cmessage)
call shr_mpi_scatterV(area (nHRU_mainstem+1:nHRU_in), hru_per_proc(0:nNodes-1), area_local, ierr, cmessage)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant