<p>Hey,</p>
<p>sorry for the late reply. I ran a few tests and it works perfectly fine.</p>
<p>Thanks again,</p>
<p>Frank</p>
<p>On Wed, Jul 13, 2011 at 12:03 PM, Gerrit Groenhof &lt;<a href="mailto:ggroenh@gwdg.de">ggroenh@gwdg.de</a>&gt; wrote:<br>
&gt;  I had a look anyway.<br>
&gt;<br>
&gt; On grompp: Since 4.0, the QM atoms need to be in one topology file. Thus if<br>
&gt; you have 6 water, you need an atoms section with 6 waters. Dividing the QM<br>
&gt; atoms over multiple topologies does not work. see below.<br>
&gt;<br>
&gt; On mdrun, the above problem works with gmx/gaussian. I never worked with<br>
&gt; gmx/orca before, but frmo the gromacs side there seems no problem anymore.<br>
&gt;<br>
&gt; Hope this helps.<br>
&gt;<br>
&gt; Best wishes,<br>
&gt;<br>
&gt; Gerrit<br>
&gt;<br>
&gt;<br>
&gt; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br>
&gt; ; defaults and all atom types ;<br>
&gt; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br>
&gt;<br>
&gt; [ defaults ]<br>
&gt; ; nbfunc   comb-rule   gen-pairs   fudgeLJ   fudgeQQ<br>
&gt;  1        2           yes         1.0       1.0<br>
&gt;<br>
&gt; [ atomtypes ]<br>
&gt; ; name   mass     charge     ptype   sigma       epsilon<br>
&gt;  OW   8  16.0     -0.8476    A       0.3165492   0.650299<br>
&gt;  HW   1   1.0      0.4238    A       0.0         0.0<br>
&gt;<br>
&gt; ;;;;;;;;;;;;;;;<br>
&gt; ; SPC/E water ;<br>
&gt; ;;;;;;;;;;;;;;;<br>
&gt;<br>
&gt; [ moleculetype ]<br>
&gt; ; molname   nrexcl<br>
&gt;  SOL       1<br>
&gt;<br>
&gt;    [ atoms ]<br>
&gt;    ; nr   type   resnr   residue   atom   cgnr   charge    mass<br>
&gt;      1    OW     1       SOL       OW     1      -0.8476<br>
&gt;      2    HW     1       SOL       HW1    1       0.4238<br>
&gt;      3    HW     1       SOL       HW2    1       0.4238<br>
&gt;<br>
&gt;    [ settles ]<br>
&gt;    ; OW   funct   doh   dhh<br>
&gt;      1    1       0.1   0.1633<br>
&gt;<br>
&gt;    [ exclusions ]<br>
&gt;    1   2   3<br>
&gt;    2   1   3<br>
&gt;    3   1   2<br>
&gt;<br>
&gt; [ moleculetype ]<br>
&gt; ; molname   nrexcl<br>
&gt;   QM       1<br>
&gt;<br>
&gt;    [ atoms ]<br>
&gt;    ; nr   type   resnr   residue   atom   cgnr   charge    mass<br>
&gt;      1    OW     1       QM        OW     1      -0.8476<br>
&gt;      2    HW     1       QM        HW1    1       0.4238<br>
&gt;      3    HW     1       QM        HW2    1       0.4238<br>
&gt;      4    OW     1       QM        OW     1      -0.8476<br>
&gt;      5    HW     1       QM        HW1    1       0.4238<br>
&gt;      6    HW     1       QM        HW2    1       0.4238<br>
&gt;      7    OW     1       QM        OW     1      -0.8476<br>
&gt;      8    HW     1       QM        HW1    1       0.4238<br>
&gt;      9    HW     1       QM        HW2    1       0.4238<br>
&gt;     10    OW     1       QM        OW     1      -0.8476<br>
&gt;     11    HW     1       QM        HW1    1       0.4238<br>
&gt;     12    HW     1       QM        HW2    1       0.4238<br>
&gt;     13    OW     1       QM        OW     1      -0.8476<br>
&gt;     14    HW     1       QM        HW1    1       0.4238<br>
&gt;     15    HW     1       QM        HW2    1       0.4238<br>
&gt;     16    OW     1       QM        OW     1      -0.8476<br>
&gt;     17    HW     1       QM        HW1    1       0.4238<br>
&gt;     18    HW     1       QM        HW2    1       0.4238<br>
&gt;<br>
&gt; [ system ]<br>
&gt; something weird<br>
&gt;<br>
&gt; [ molecules ]<br>
&gt; QM          1<br>
&gt; SOL        58<br>
&gt;<br>
&gt; On 07/13/2011 10:08 AM, Frank Uhlig wrote:<br>
&gt;&gt;<br>
&gt;&gt; Dear gmx-develo11pers,<br>
&gt;&gt;<br>
&gt;&gt; I have a few comments concerning QM/MM in Gromacs in conjunction with<br>
&gt;&gt; Orca. I am using the latest Gromacs version 4.5.4 and the latest Orca<br>
&gt;&gt; version 2.8.0 to perform QM/MM calculations.<br>
&gt;&gt;<br>
&gt;&gt; 1) it is a bit misleading that in the help of the configure script it<br>
&gt;&gt; is written:<br>
&gt;&gt;<br>
&gt;&gt; --without-qmmm-orca     Use ORCA for QM-MM<br>
&gt;&gt;<br>
&gt;&gt; and the respective for the other three possible programs for QM/MM<br>
&gt;&gt; calculations...<br>
&gt;&gt;<br>
&gt;&gt; 2) I followed the instructions on this webpage:<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://wwwuser.gwdg.de/~ggroenh/qmmm.html">http://wwwuser.gwdg.de/~ggroenh/qmmm.html</a><br>
&gt;&gt;<br>
&gt;&gt; --&gt;  this means ./configure --with-qmmm-orca --without-qmmm-gaussian<br>
&gt;&gt;<br>
&gt;&gt; to build a QM/MM version of GMX together with Orca. The build goes<br>
&gt;&gt; fine and seems to work...<br>
&gt;&gt;<br>
&gt;&gt; I also tried to build the GMX/ORCA-QM/MM version via CMake (i.e.,<br>
&gt;&gt; ccmake). Although I activated &quot;orca&quot; as GMX_QMMM_PROGRAM in the gui<br>
&gt;&gt; and (re-)configured, the variable GMX_QMMM_ORCA does not get set in<br>
&gt;&gt; the src/config.h file. Thus, the obtained build will not work for<br>
&gt;&gt; QM/MM calculations...<br>
&gt;&gt;<br>
&gt;&gt; 3) If I configure gromacs as described in the first part of 2) above I<br>
&gt;&gt; obtain a version that seems to work at first. After some experimenting<br>
&gt;&gt; with the general setup I encountered some problems though. I attached<br>
&gt;&gt; all files necessary files to illustrate and reproduce those problems.<br>
&gt;&gt;<br>
&gt;&gt; When putting the QM residues first in the [ molecules ] section in the<br>
&gt;&gt; topology file, grompp fails with a segmentation fault.<br>
&gt;&gt; When putting the QM residues last in the [ molecules ] section in the<br>
&gt;&gt; topology file, mdrun fails with a segmentation fault (mdrun -nt 1)<br>
&gt;&gt; before calling Orca.<br>
&gt;&gt; When putting the QM residues (and all the other residues) in a<br>
&gt;&gt; disordered fashion in the topology file (and not the QM<br>
&gt;&gt; residues first or last) the calculations runs just fine.<br>
&gt;&gt;<br>
&gt;&gt; The included examples all contain the same configuration. They only<br>
&gt;&gt; differ in the order of the residues in the conf.gro, topol.top and<br>
&gt;&gt; index.ndx files.<br>
&gt;&gt;<br>
&gt;&gt; I also included the debug information for the two failing tests. I am<br>
&gt;&gt; not too familiar with C, so I would appreciate your help. If you have<br>
&gt;&gt; any suggestion on how to fix these issues or at least further<br>
&gt;&gt; information on where they are stemming from, please let me know.<br>
&gt;&gt;<br>
&gt;&gt; Best regards and thanks in advance,<br>
&gt;&gt;<br>
&gt;&gt; Frank<br>
&gt;<br>
&gt; --<br>
&gt; gmx-developers mailing list<br>
&gt; <a href="mailto:gmx-developers@gromacs.org">gmx-developers@gromacs.org</a><br>
&gt; <a href="http://lists.gromacs.org/mailman/listinfo/gmx-developers">http://lists.gromacs.org/mailman/listinfo/gmx-developers</a><br>
&gt; Please don&#39;t post (un)subscribe requests to the list. Use the www interface<br>
&gt; or send it to <a href="mailto:gmx-developers-request@gromacs.org">gmx-developers-request@gromacs.org</a>.<br>
&gt;<br>
</p>