Page 1 of 1

OpenMM Tinker Make Error

Posted: Sat May 02, 2015 11:17 pm
by rynosm
Hello,

I am attempting to build dynamic_omm.x with the supplied files. Although, upon running 'make all' I receive the following error:

ommstuff.cpp:1566:105: error: too many arguments to function ‘int OpenMM_AmoebaStretchBendForce_addStretchBend(OpenMM_AmoebaStretchBendForce*, int, int, int, double, double, double, double)’

The corresponding line in ommstuff.cpp is:

OpenMM_AmoebaStretchBendForce_addStretchBend( amoebaStretchBendForce,
*(angleIndexPtr)-1, (*(angleIndexPtr+1))-1, (*(angleIndexPtr+2))-1,
bondLengthAB, bondLengthCB, OpenMM_RadiansPerDegree*(*(angbnd__.anat +index)),
(OpenMM_KJPerKcal/OpenMM_NmPerAngstrom)*angpot__.stbnunit*(*(strbnd__.sbk+2*ii)),
(OpenMM_KJPerKcal/OpenMM_NmPerAngstrom)*angpot__.stbnunit*(*(strbnd__.sbk+2*ii+1)) );

Any help would be greatly appreciated.

-Sean

Re: OpenMM Tinker Make Error

Posted: Sun May 03, 2015 4:52 pm
by leeping
Hi Sean,

I know about this problem, and it comes from a recent (<6 mos.) change to the OpenMM API. You're probably linking against version of OpenMM that is too old, and it doesn't have the API change.

Try with the newest development build of OpenMM (git clone https://github.com/pandegroup/openmm) and the latest release of TINKER (http://dasher.wustl.edu/tinker/).

Thanks,

- Lee-Ping

Re: OpenMM Tinker Make Error

Posted: Mon May 04, 2015 6:41 am
by rynosm
Lee-Ping,

Thank you. It is now working correctly.

-Sean