Wolf
Forum Replies Created
-
AuthorPosts
-
WolfMember
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
WolfMemberHello 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
WolfMemberHello 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}rnrnrnSo, 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
WolfMemberHi Mathias,rnThanks a lot! That was really helpful!rnrnBest Regards,rnWolf
-
AuthorPosts
