I tried to sent a double vector with size of 5 to all other cpus.
but it seems no values have been broadcase out.
only the root has values in tt vector. all other cpus only have zero values
in tt.
Could you please help me out.
vector<double> tt(5);
if(Utilities::MPI::this_mpi_process(mpi_communicator)==0) {
for(int i=0;i<tt.size();i++) tt[i]=1.0*i;}
Utilities::MPI::broadcast(mpi_communicator,tt);
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/9a9327ff-62de-45fc-9fdd-9821521a60ben%40googlegroups.com.