Dear Matt
Thank you for your reply. I'm guessing that the line
if (rank) N = 0;should be changed to something like
if (rank != target_rank) N = 0;such that an empty SEQVEC and scatter are created on each rank other than target_rank.
Med venlig hilsen / Best regards
Peder
Hello
I have a parallel vector, and I'd like to copy its data to a sequential vector located on a given process that is not necessarily the 0th process, so using VecScatterCreateToZero wouldn't do here.
How might one approach this?
Med venlig hilsen / Best Regards
Peder Jørgensgaard Olesen
PhD Student, Turbulence Research Lab
Dept. of Mechanical Engineering
Technical University of Denmark
Koppels Allé
Bygning 403, Rum 105
DK-2800 Kgs. Lyngby