Skip to content

Wolf

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Data Processors for Parallel Execution #2175
    Wolf
    Member

    Hello Mathias,rnrnIn case of SuperLattice3D, if I want to find a cuboid number of a cell I’d just use:rn

    Code:
    sLattice.get_cGeometry().get_iC(x,y,z)

    rnrnWhat if I’m using the MultiBlockLattice3D? Is there a similar way to do that? Thank you.rn(When does one use SuperLattice and when MultiBlockLattice?)rnrnBest Regards,rnWolf

    in reply to: Data Processors for Parallel Execution #2170
    Wolf
    Member

    Hello Mathias,rnrnok, thanks for the info. Just one more small thing. Is there a way to find out on which MPI processor/subblock the certain cell is located? Or to find out the sizes and locations of the MPI subblocks? Thanks.rnrnBest Regards,rnWolf

    in reply to: Data Processors for Parallel Execution #2167
    Wolf
    Member

    Hello Mathias,rnrnI just didn’t quite get what is the right way to make an efficient loop, while parallelizing the code with MPI. For example in the code named cylinder2d there is a loop to set the right dynamics to an obstacle. It goes:rnrn

    Code:
    rnfor (int iX=0; iX<nx; ++iX) {rn for (int iY=0; iY<ny; ++iY) {rn…rn }rn}rn

    rnrnSo, each processor goes through all the cells. I’m just wondering if there is a way, where each processor goes only through its cells? Or is it done inside the “”defineDynamics”” routine? And i’m also wondering how to find out on which processor/block the certain cell is located? Thank you.rnrnRegards,rnWolf

    in reply to: Additional force term #2151
    Wolf
    Member

    Hi Mathias,rnThanks a lot! That was really helpful!rnrnBest Regards,rnWolf

Viewing 4 posts - 1 through 4 (of 4 total)