Skip to content

Extracting Data in Parallel

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #7617

    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;

    // 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.


    Hi Jijo,

    you better work with global coordinates, like in the examples cylinder2d and cylinder3d it is done for the pressure drop. You can get the cubpoid number by methods provided by the cuboidGeometry2d class. Note that you have to differ betrween local and global coordinates as well as local and global cuboidNumbers.


Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.