Hello,<div><br></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.727272033691406px;background-color:rgb(255,255,255)">As a part of my Master Thesis, I am currently working on some agent simulations in fire buildings using Repast HPC. Repast HPC use MPI inteface for process communication - in my case MPICH2 implementation. At simulation start space is divided to processes using MPI_Cart_create and MPI_Cart_shift commands.</span><br>
<br>Specifically:<br><br>boost::mpi::communicator commM;<br>int _numDims = 2; (ked¾e sa jedná o 2D priestor)<br>(kde dany priestor je periodicky)<br>int* periods = new int[_numDims];<br>    for (int i = 0; i < _numDims; i++) {<br>
                periods[i] = periodic ? 1 : 0;<br>        }<br>MPI_Comm topology_comm;<br><br><b>MPI_Cart_create(*commM, _numDims, &procsPerDim[0], periods, 0, &topology_comm);</b><br><br>int eRank, wRank, nRank, sRank;<br><b>MPI_Cart_shift(topology_comm, 1, 1, &wRank, &eRank);<br>
MPI_Cart_shift(topology_comm, 0, -1, &sRank, &nRank);</b></div><div><b><br></b></div><div>After successfull run of these commands, will be the topology structure the same as the structure in attached image?</div><div>
Thanks in advance</div><div><br></div><div>Best Regards</div><div>Lukas Pavlech</div>