<span>On 16/03/11, <b class="name">Yukun Wang </b> &lt;wangykoo@gmail.com&gt; wrote:</span><blockquote cite="mid:AANLkTi=L05ZX=_8n2uivoBhuLVtgG29t3WbTx8QHYNQM@mail.gmail.com" class="iwcQuote" style="border-left: 1px solid rgb(0, 0, 255); padding-left: 13px; margin-left: 0pt;" type="cite"><div class="mimepart text html">Hi all:<br />    I want to run a group of simulations which are weakly coupled, like REMD,but with different algorithm. I find there is a data structure called 'gmx_multisim_t' whose definition is below:<br />                 typedef struct {<br />
  int nsim;<br />  int sim;<br />  MPI_Group mpi_group_masters;<br />  MPI_Comm mpi_comm_masters;<br />  /* these buffers are used as destination buffers if MPI_IN_PLACE isn't<br />     supported.*/<br />  mpi_in_place_buf_t *mpb;<br />
} gmx_multisim_t;<br /><br />Then I have three questions:<br />1. If a command line is writen as for GROMACS 4.0 and a seires of input .tpr files is named as <code>'prefix_0.tpr</code>, <code>prefix_1.tpr</code> ... <code>prefix_9.tpr</code>',<br />
[...] $ <code>mpirun -np 10 mdrun -s prefix_.tpr -multi </code><i>(number of steps)</i> <i>(followed by output options)</i><br />Are those simulation are mutually independent? ( Attention no -replex here !)</div></blockquote><br />Yes, in terms of the model physics they implement.<br /><br /><blockquote cite="mid:AANLkTi=L05ZX=_8n2uivoBhuLVtgG29t3WbTx8QHYNQM@mail.gmail.com" class="iwcQuote" style="border-left: 1px solid rgb(0, 0, 255); padding-left: 13px; margin-left: 0pt;" type="cite"><div class="mimepart text html">2. I know Gromacs from 4.0version have a ablility that each replica can be parallelly simulated. Then I want to know if they are intra-commucation for each replica and inter-communication between replicas.</div></blockquote><br />Yes. The latter is only used for synchronizing writing checkpoints, handling user signals and termination conditions.<br /><br /><blockquote cite="mid:AANLkTi=L05ZX=_8n2uivoBhuLVtgG29t3WbTx8QHYNQM@mail.gmail.com" class="iwcQuote" style="border-left: 1px solid rgb(0, 0, 255); padding-left: 13px; margin-left: 0pt;" type="cite"><div class="mimepart text html">
3. What is the means of  'nsim','sim','mpi_group_masters' and 'mpi_comm_masters'  in the above structure?</div></blockquote><br />The number of simulations, the index of this simulation in the group, and an MPI group and communicator for the set of nodes whose internal rank within each simulation is zero. These handle the inter-simulation communication. IIRC the group is actually redundant.<br /><br />Mark