Actualy i made similar thing about 2 yars ago for gentoo<br>I created script that modifyes mopac sources so they became compatible with gromacs also this script creates two libs<br>libgmxmopac.so.0.0.0 and its static version<br>
<br>(both were made without f2c)<br><br><div class="gmail_quote">2010/7/22 torbenh <span dir="ltr">&lt;<a href="mailto:torbenh@gmx.de">torbenh@gmx.de</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Tue, Jul 20, 2010 at 09:50:37PM +0200, Michael Banck wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; On Tue, Jul 20, 2010 at 09:05:45PM +0200, <a href="mailto:ggroenh@gwdg.de">ggroenh@gwdg.de</a> wrote:<br>
&gt; &gt; I did not think we can distribute along with gromacs. But if you think we<br>
&gt; &gt; can, and you feel taking up this task, I and many other will be very<br>
&gt; &gt; grateful.<br>
&gt;<br>
&gt; As Mopac is Public Domain, it should not be a problem.  However, why not<br>
&gt; use the mopac7 library as provided by the SourceForge project<br>
&gt; (<a href="http://sourceforge.net/projects/mopac7/" target="_blank">http://sourceforge.net/projects/mopac7/</a>)?  If the interface does not<br>
&gt; suite you, maybe the maintainer (who is not the original author) might<br>
&gt; consider changing it.<br>
<br>
</div>i have used that codebase from sourceforge...<br>
didnt really look at the code yet, but the gmxmop.f exchanges a few<br>
functions, to make mopac see what is happening inside the gromacs model.<br>
<br>
<a href="http://hochstrom.endofinternet.org/cgit/mopac7.git/tree/fortran/gmxmop.f?h=gmxmop-clean" target="_blank">http://hochstrom.endofinternet.org/cgit/mopac7.git/tree/fortran/gmxmop.f?h=gmxmop-clean</a><br>
<br>
so the library api would need some kind of hook infrastructure.<br>
i am no fortran guy. and considering that the sourceforge project seems<br>
to be inactive, i guess we are fine with the current method of just<br>
hijacking some subroutines.<br>
<br>
i removed all the f2c stuff, and changed the name of the library to<br>
libgmxmopac7.so (so it doesnt clash with the normal one that debian<br>
installs)<br>
<br>
<a href="http://hochstrom.endofinternet.org/cgit/mopac7.git/log/?h=gmxmop-clean" target="_blank">http://hochstrom.endofinternet.org/cgit/mopac7.git/log/?h=gmxmop-clean</a><br>
<a href="http://hochstrom.endofinternet.org/cgit/gromacs.git/log/?h=libgmxmop" target="_blank">http://hochstrom.endofinternet.org/cgit/gromacs.git/log/?h=libgmxmop</a><br>
<br>
git://<a href="http://hochstrom.endofinternet.org/mopac7" target="_blank">hochstrom.endofinternet.org/mopac7</a>  (branch: gmxmop-clean)<br>
git://<a href="http://hochstrom.endofinternet.org/gromacs" target="_blank">hochstrom.endofinternet.org/gromacs</a> (branch: libgmxmop)<br>
<br>
the master branches are the original codebases.<br>
<br>
changed the gromacs <a href="http://configure.ac" target="_blank">configure.ac</a> to detect libgmxmopac7<br>
adding it to $LIBS is a bit ugly, but since i still need to figure out<br>
how to use gromacs properly, i cant really check if things are correct.<br>
which is a precondition for &quot;giving this stuff a bit more love&quot;.<br>
<font color="#888888"><br>
<br>
--<br>
torben Hohn<br>
</font><div><div></div><div class="h5">--<br>
gmx-developers mailing list<br>
<a href="mailto:gmx-developers@gromacs.org">gmx-developers@gromacs.org</a><br>
<a href="http://lists.gromacs.org/mailman/listinfo/gmx-developers" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-developers</a><br>
Please don&#39;t post (un)subscribe requests to the list. Use the<br>
www interface or send it to <a href="mailto:gmx-developers-request@gromacs.org">gmx-developers-request@gromacs.org</a>.<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best Regards,<br>Alexey &#39;Alexxy&#39; Shvetsov<br>Petersburg Nuclear Physics Institute, Russia<br>Department of Molecular and Radiation Biophysics<br>Gentoo Team Ru<br>
Gentoo Linux Dev<br>mailto:<a href="mailto:alexxyum@gmail.com">alexxyum@gmail.com</a><br>mailto:<a href="mailto:alexxy@gentoo.org">alexxy@gentoo.org</a><br>mailto:<a href="mailto:alexxy@omrb.pnpi.spb.ru">alexxy@omrb.pnpi.spb.ru</a><br>