Skip to content

Commit 8c59484

Browse files
authored
Merge pull request #75 from ICAMS/fix_lammps_commands
Fix lammps commands
2 parents 235ee29 + c58eeca commit 8c59484

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 1.2.8
2+
current_version = 1.2.9
33
commit = True
44
tag = True
55

calphy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from calphy.alchemy import Alchemy
55
from calphy.routines import MeltingTemp
66

7-
__version__ = "1.2.8"
7+
__version__ = "1.2.9"
88

99
def addtest(a,b):
1010
return a+b

calphy/helpers.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,21 +117,21 @@ def create_structure(lmp, calc, species=None):
117117
else:
118118
lmp.command("read_data %s" % calc.lattice)
119119
else:
120-
lmp.lattice(l, alat)
121-
lmp.region("box block", 0, calc.repeat[0], 0, calc.repeat[1], 0, calc.repeat[2])
122-
lmp.create_box("1 box")
123-
lmp.create_atoms("1 box")
120+
lmp.command(f'lattice {l} {alat}')
121+
lmp.command(f'region box block 0 {calc.repeat[0]} 0 {calc.repeat[1]} 0 {calc.repeat[2]}')
122+
lmp.command(f'create_box 1 box')
123+
lmp.command(f'create_atoms 1 box')
124124
return lmp
125125

126126

127127
def set_mass(lmp, options, ghost_elements=0):
128128
count = 1
129129
for i in range(options.n_elements):
130-
lmp.mass(i + 1, options.mass[i])
130+
lmp.command(f'mass {i+1} {options.mass[i]}')
131131
count += 1
132132

133133
for i in range(ghost_elements):
134-
lmp.mass(count + i, 1.00)
134+
lmp.command(f'mass {count+i} 1.00')
135135

136136
return lmp
137137

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
packages=find_packages(include=['calphy', 'calphy.*']),
5858
test_suite='tests',
5959
url='https://github.com/ICAMS/calphy',
60-
version='1.2.8',
60+
version='1.2.9',
6161
zip_safe=False,
6262
entry_points={
6363
'console_scripts': [

0 commit comments

Comments
 (0)