Skip to content

Commit

Permalink
remove nacl features, default ionicstrength=0
Browse files Browse the repository at this point in the history
  • Loading branch information
axsk committed May 13, 2024
1 parent 5e865d9 commit 8f6b8e9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion scripts/villin.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pdb = "data/villin nowater.pdb"
steps = 20_000
step = 0.002
temp = 310
friction = 0.1
friction = 1
integrator = :langevinmiddle
minimize = true
momenta = true
Expand Down
12 changes: 6 additions & 6 deletions src/simulators/mopenmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ def get_numpy_state(context, withmomenta):

def set_numpy_state(context, x, withmomenta):
if withmomenta:
n = len(x) // 2
context.setPositions(x[:n])
context.setVelocities(x[n:])
else:
context.setPositions(x)
context.setVelocitiesToTemperature(sim.integrator.getTemperature())
n = len(x) // 2
context.setPositions(x[:n])
context.setVelocities(x[n:])
else:
context.setPositions(x)
context.setVelocitiesToTemperature(sim.integrator.getTemperature())

def newcontext(context, mmthreads):
if mmthreads == 'gpu':
Expand Down
4 changes: 2 additions & 2 deletions src/simulators/openmm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function OpenMMSimulation(;
mmthreads=1,
addwater=false,
padding=3,
ionicstrength=0.15,
ionicstrength=0.0,
forcefield_kwargs=Dict(),
momenta=false)

Expand Down Expand Up @@ -242,7 +242,7 @@ end
function atomfilter(atom)
!(
atom.element.symbol == "H" ||
atom.residue.name == "HOH"
atom.residue.name in ["HOH", "NA", "CL"]
)
end

Expand Down

0 comments on commit 8f6b8e9

Please sign in to comment.