Unverified Commit edee11b6 authored by Peter Eastman's avatar Peter Eastman Committed by GitHub
Browse files

Fix errors with AMOEBA 2018 (#3311)

parent 27bcb657
......@@ -679,8 +679,10 @@ tinkerXmlFile.write( " </AtomTypes>\n")
tinkerXmlFile.write( " <Residues>\n" )
for resname, res in sorted(residueDict.items()):
if res['include']:
outputString = """ <Residue name="%s">""" % (resname)
tinkerXmlFile.write( "%s\n" % (outputString) )
if resname == 'HOH':
tinkerXmlFile.write(f' <Residue name="{resname}" rigidWater="false">\n')
else:
tinkerXmlFile.write(f' <Residue name="{resname}">\n')
atomIndex = dict()
atomCount = 0
for atom in sorted( res['atoms'].keys() ):
......@@ -726,7 +728,7 @@ for resname, res in sorted(residueDict.items()):
for outputString in outputStrings:
tinkerXmlFile.write( "%s\n" % (outputString) )
tinkerXmlFile.write( " </Residue>\n" )
tinkerXmlFile.write( " </Residue>\n" )
# End caps
......
......@@ -60,8 +60,6 @@ void HarmonicBondForceImpl::initialize(ContextImpl& context) {
}
if (length < 0)
throw OpenMMException("HarmonicBondForce: bond length cannot be negative");
if (k < 0)
throw OpenMMException("HarmonicBondForce: force constant cannot be negative");
}
kernel = context.getPlatform().createKernel(CalcHarmonicBondForceKernel::Name(), context);
kernel.getAs<CalcHarmonicBondForceKernel>().initialize(context.getSystem(), owner);
......
<ForceField>
<Info>
<Source>amoebabio18.prm</Source>
<DateGenerated>2021-10-24</DateGenerated>
<DateGenerated>2021-11-02</DateGenerated>
<Reference>Yue Shi, Zhen Xia, Jiajing Zhang, Robert Best, Chuanjie Wu, Jay W. Ponder, and Pengyu Ren. Polarizable Atomic Multipole-Based AMOEBA Force Field for Proteins. Journal of Chemical Theory and Computation, 9(9):4046–4063, 2013.</Reference>
<Reference>Rae A. Corrigan, Guowei Qi, Andrew C. Thiel, Jack R. Lynn, Brandon D. Walker, Thomas L. Casavant, Louis Lagardere, Jean-Philip Piquemal, Jay W. Ponder, Pengyu Ren, and Michael J. Schnieders. Implicit Solvents for the Polarizable Atomic Multipole AMOEBA Force Field. Journal of Chemical Theory and Computation, 17(4):2323-2341, 2021.</Reference>
</Info>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment