Hello everyone,
I have simple problem of extracting data while the simulation runs in parallel. Here is a snippet of the code:
SuperLatticePhysVelocity2D<T, NSDESCRIPTOR> velocityfield(NSlattice, converter);
int position[3];
position[0] = 1;
position[1] = Lx1;
position[2] = Ly1;
velocityfield(Velocity_Fluid,position);;
// end of the snippet
This works fine in a single core run, but when I do a parallel run, the data extraction fails. I have read the forum and someone mentioned the formation of the (Temp_Fluid1) array and having the first element of the array as a cuboid rank. Is it due to that? if so, how can I obtain the cuboid rank using certain lattice coordinates? and then implement that digit into position[0]? I hope the problem is well identified.
Your reply is really appreciated.