lasp-ase 0.0.2__tar.gz → 0.0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {lasp_ase-0.0.2 → lasp_ase-0.0.4}/PKG-INFO +1 -1
- {lasp_ase-0.0.2 → lasp_ase-0.0.4}/lasp_ase/lasp.py +7 -8
- {lasp_ase-0.0.2 → lasp_ase-0.0.4}/lasp_ase.egg-info/PKG-INFO +1 -1
- {lasp_ase-0.0.2 → lasp_ase-0.0.4}/setup.py +1 -1
- {lasp_ase-0.0.2 → lasp_ase-0.0.4}/LICENSE +0 -0
- {lasp_ase-0.0.2 → lasp_ase-0.0.4}/README.md +0 -0
- {lasp_ase-0.0.2 → lasp_ase-0.0.4}/lasp_ase/__init__.py +0 -0
- {lasp_ase-0.0.2 → lasp_ase-0.0.4}/lasp_ase.egg-info/SOURCES.txt +0 -0
- {lasp_ase-0.0.2 → lasp_ase-0.0.4}/lasp_ase.egg-info/dependency_links.txt +0 -0
- {lasp_ase-0.0.2 → lasp_ase-0.0.4}/lasp_ase.egg-info/requires.txt +0 -0
- {lasp_ase-0.0.2 → lasp_ase-0.0.4}/lasp_ase.egg-info/top_level.txt +0 -0
- {lasp_ase-0.0.2 → lasp_ase-0.0.4}/setup.cfg +0 -0
|
@@ -10,11 +10,6 @@ from ase.calculators.calculator import FileIOCalculator
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class Lasp(FileIOCalculator):
|
|
13
|
-
if 'ASE_LASP_COMMAND' in os.environ:
|
|
14
|
-
command = os.environ['ASE_LASP_COMMAND']
|
|
15
|
-
else:
|
|
16
|
-
command = 'mpirun -np 2 lasp'
|
|
17
|
-
|
|
18
13
|
implemented_properties = ['energy', 'forces']
|
|
19
14
|
|
|
20
15
|
def __init__(self, restart=None,
|
|
@@ -26,10 +21,14 @@ class Lasp(FileIOCalculator):
|
|
|
26
21
|
self.atoms_input = None
|
|
27
22
|
self.do_forces = False
|
|
28
23
|
self.outfilename = 'lasp.out'
|
|
29
|
-
|
|
24
|
+
if not kwargs.get('command'):
|
|
25
|
+
if 'ASE_LASP_COMMAND' in os.environ:
|
|
26
|
+
command = os.environ['ASE_LASP_COMMAND']
|
|
27
|
+
else:
|
|
28
|
+
command = 'mpirun -np 2 lasp'
|
|
29
|
+
kwargs['command'] = command
|
|
30
30
|
FileIOCalculator.__init__(self, restart, ignore_bad_restart_file,
|
|
31
|
-
label, atoms,
|
|
32
|
-
**kwargs)
|
|
31
|
+
label, atoms, **kwargs)
|
|
33
32
|
|
|
34
33
|
def write_input(self, atoms, properties=None, system_changes=None):
|
|
35
34
|
from ase.io import write
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|