Skip to content

Commit

Permalink
add attr
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiahsinChu committed Jun 3, 2024
1 parent cbd3890 commit 7dac1cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dmff/generators/qeq.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def createPotential(
r_cut = nonbondedCutoff.value_in_unit(unit.nanometer)
else:
r_cut = nonbondedCutoff
self.r_cut = r_cut

if not isNoCut:
cell = topdata.getPeriodicBoxVectors()
Expand Down Expand Up @@ -171,6 +172,7 @@ def createPotential(
aidx = [a.index for a in r.atoms()]
const_list.append(aidx)
const_vals.append(sum(init_q[aidx]))
self.n_const = len(const_vals)

has_aux = False
if "has_aux" in kwargs:
Expand Down

0 comments on commit 7dac1cb

Please sign in to comment.