Skip to content

Commit

Permalink
Improve the logic of freezing solute: turn off all QM/MM steps becaus…
Browse files Browse the repository at this point in the history
…e that's not reasonable when the QM part is frozen
  • Loading branch information
ffangliu committed Sep 1, 2022
1 parent 522b36c commit 5414c63
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions autosolvate/generatetrajs.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@
def writeSoluteConstrain(f, wt=500,ntr=False):
r"""
Write the lines to apply constraints to solute
Parameters
----------
f: file, Required, default: None
File of Amber input
ntr: bool, Optional, default: False
Use the ntr restraint or ibelly constrain
wt: float, Optional, default: 500
Weight of restraint if using the Amber ntr restraint
Returns
-------
None
"""
if ntr:
f.write("ntr=1,\n")
Expand Down Expand Up @@ -652,6 +667,11 @@ def startmd(argumentList):
elif currentArgument in ("-z", "-freezesolute"):
print("Freeze the solute while running MD")
freeze_solute=True
print("Ignoring all QM/MM options. QM/MM will not run")
stepsqmmmmin = 0
stepsqmmmheat = 0
stepsqmmmnve = 0
stepsqmmmnvt = 0


writeMMminInput(stepsmmmin=stepsmmmin,freeze_solute=freeze_solute)
Expand Down

0 comments on commit 5414c63

Please sign in to comment.