<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      Note that the order of atoms and constraints in mtop is only used
      in simulations without domain decomposition. With domain
      decomposition each domain has it's local and some non-local atoms
      and constraints. We will likely change the setup in mdrun soon
      such that atoms, interactions and constraints are also reordered
      without domain decomposition.<br>
      <br>
      Cheers,<br>
      <br>
      Berk<br>
      <br>
      On 2/16/21 5:18 PM, Lorién López Villellas wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAA8U9-e=u5vppytFT1j7qVhPxVq2GJCdKjYVWyGVkQS9HJA6GQ@mail.gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div dir="ltr"><span class="gmail-im" style=""><font style=""
            color="#000000">Hello again.<br>
            <br>
            As Dmitry suggested, we have been working with the <i
              style="">gmx_mtop_t</i> data. So far, it seems that it is
            what we needed.<br>
            <br>
            However, we are having some trouble with the <i style="">iatoms</i> structure
            (<i style="">idef-&gt;il[F_CONSTR].iatoms</i> in <i style="">Constraints::Impl::setConstraints()</i>).
            We are currently testing our algorithm with the
            GROMACS-Lysozime tutorial (the md-simulation part). The <i
              style="">elements_iatoms.txt</i> file attached contains <i
              style="">iatoms</i> and each atom element when calling to
            setConstraints(). We see some weird bonds:<br>
          </font>
          <ul style="">
            <li style="margin-left:15px"><font color="#000000">Bond
                1938, which is part of a cysteine amino acid (let us
                call it amino acid x), connects atom 1910 (carbon) with
                atom 1913 (sulfur), forming a C-S bond, which is just
                right.</font></li>
            <li style="margin-left:15px"><font color="#000000">Bond 100,
                connects atom 98 (sulfur) with atom 1913 (the sulfur
                atom of amino acid x). As far as I know, a connection
                S-S is not even possible in a peptide-chain.</font></li>
            <li style="margin-left:15px"><font color="#000000">The bond
                that should connect atom 1913 with a hydrogen atom does
                not exist.</font></li>
          </ul>
        </span><font color="#000000"><span class="gmail-im" style="">What
            is weird is that almost every bond makes sense, except some
            bonds like the ones shown below. As this structure is used
            in SHAKE, I guess we are doing something wrong.<br>
            <br>
            Thank you all in advance.<br>
            <br>
          </span>Regards,<br>
          Lorién</font><br>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">El jue, 11 feb 2021 a las
          19:16, Lorién López Villellas (&lt;<a
            href="mailto:lorien.lopez@bsc.es" moz-do-not-send="true">lorien.lopez@bsc.es</a>&gt;)
          escribió:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">Hi.<br>
            <br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">One the possible
              solutions (there are atomic numbers stored in the
              gmx_mtop_t)</blockquote>
            <div> </div>
            <div>I think we can work with that. Thanks!<br>
              <br>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px
                0.8ex;border-left:1px solid
                rgb(204,204,204);padding-left:1ex">But that would make
                the algorithm work only for proteins. Why not do the
                numbering based on bond connectivity?</blockquote>
              <br>
              We have two versions of the algorithm, a sequential one
              that works with any molecule and a parallel one that, as
              you say, only works with proteins. The parallelization of
              the algorithm is based on the structure of the peptide
              chain. The numbering we use is extremely specific; each
              amino acid bond must always have the same index. The
              reordering algorithm needs to identify each of the
              molecule bonds precisely. We have not found a way to
              achieve that without using the additional information that
              the atoms' element provides.<br>
              <br>
              Regards,<br>
              Lorién<br>
            </div>
          </div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">El jue, 11 feb 2021 a las
              17:30, Berk Hess (&lt;<a href="mailto:hess@kth.se"
                target="_blank" moz-do-not-send="true">hess@kth.se</a>&gt;)
              escribió:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div>
                <div>On 2/11/21 4:22 PM, Lorién López Villellas wrote:<br>
                </div>
                <blockquote type="cite">
                  <div dir="ltr">Hi.<br>
                    <br>
                    <blockquote class="gmail_quote" style="margin:0px
                      0px 0px 0.8ex;border-left:1px solid
                      rgb(204,204,204);padding-left:1ex">Why is the
                      element number relevant for constraints? The
                      element number is never used in MD calculations.</blockquote>
                    <br>
                    We have performed a heavy code optimization based on
                    the structural patterns of the peptide chains. In
                    order to apply this optimization, we need a very
                    specific bond numbering. To get to this bond
                    numbering, we use a bond reordering phase. The
                    reordering algorithm needs to know the elements of
                    the molecule's atoms to locate itself.<br>
                    <br>
                  </div>
                </blockquote>
                But that would make the algorithm work only for
                proteins. Why not do the numbering based on bond
                connectivity?<br>
                <br>
                Cheers,<br>
                <br>
                Berk<br>
                <br>
              </div>
              -- <br>
              Gromacs Developers mailing list<br>
              <br>
              * Please search the archive at <a
                href="http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List"
                rel="noreferrer" target="_blank" moz-do-not-send="true">http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List</a>
              before posting!<br>
              <br>
              * Can't post? Read <a
                href="http://www.gromacs.org/Support/Mailing_Lists"
                rel="noreferrer" target="_blank" moz-do-not-send="true">http://www.gromacs.org/Support/Mailing_Lists</a><br>
              <br>
              * For (un)subscribe requests visit<br>
              <a
href="https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers"
                rel="noreferrer" target="_blank" moz-do-not-send="true">https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers</a>
              or send a mail to <a
                href="mailto:gmx-developers-request@gromacs.org"
                target="_blank" moz-do-not-send="true">gmx-developers-request@gromacs.org</a>.</blockquote>
          </div>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
    </blockquote>
    <br>
  </body>
</html>