Skip to content

Commit

Permalink
Merge branch 'main' of github.com:cmelab/flowerMD into ellipsoids
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjonesBSU committed Mar 26, 2024
2 parents 3121b59 + 9f0cda5 commit da7eff1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ dependencies:
- gmso >=0.11.2
- gsd >=3.0
- hoomd=4.3
- mbuild >=0.16.4
- mbuild >=0.17.0
- numpy
- openbabel >=3
- pip
- pre-commit
- py3Dmol
- pytest
- pytest-cov
- python >=3.10
- python >=3.10, <3.12
- fresnel >=0.13.5
- cmeutils >=1.1.1
- grits >=0.3.0
4 changes: 2 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ dependencies:
- gmso >=0.11.2
- gsd >=3.0
- hoomd=4.3
- mbuild >=0.16.4
- mbuild >=0.17.0
- numpy
- openbabel >=3
- pip
- py3Dmol
- python >=3.10
- python >=3.10, <3.12
- fresnel >=0.13.5
- cmeutils >=1.1.1
- grits >=0.3.0
5 changes: 2 additions & 3 deletions flowermd/modules/welding/welding.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(
remove_void_particles=True,
):
self.gsd_files = check_return_iterable(gsd_files)
self.interface_axis = interface_axis
self.interface_axis = np.asarray(interface_axis)
self.gap = gap
self.wall_sigma = wall_sigma
self._remove_void_particles = remove_void_particles
Expand Down Expand Up @@ -81,8 +81,7 @@ def _build(self):
interface.dihedrals.N = snap_L.dihedrals.N + snap_R.dihedrals.N
interface.dihedrals.M = 4
interface.pairs.N = snap_L.pairs.N + snap_R.pairs.N
# Set up box. Box edge is doubled along the interface axis direction,
# plus the gap
# Box edge is doubled along the interface axis plus the gap
axis_index = np.where(self.interface_axis != 0)[0]
interface.configuration.box = np.copy(snap_L.configuration.box)
interface.configuration.box[axis_index] *= 2
Expand Down

0 comments on commit da7eff1

Please sign in to comment.