Révision 2 ase/calculators/vasp.py
vasp.py (revision 2) | ||
---|---|---|
149 | 149 |
] |
150 | 150 |
|
151 | 151 |
class Vasp(Calculator): |
152 |
def __init__(self, restart=None, output_template='vasp', track_output=False, |
|
152 |
def __init__(self, restart=None, output_template='vasp', track_output=False, write_input = True,
|
|
153 | 153 |
**kwargs): |
154 |
self.bool_write_input = write_input |
|
154 | 155 |
self.name = 'Vasp' |
155 | 156 |
self.float_params = {} |
156 | 157 |
self.exp_params = {} |
... | ... | |
358 | 359 |
from ase.io.vasp import write_vasp |
359 | 360 |
self.initialize(atoms) |
360 | 361 |
write_vasp('POSCAR', self.atoms_sorted, symbol_count = self.symbol_count) |
361 |
self.write_incar(atoms) |
|
362 |
self.write_potcar() |
|
363 |
self.write_kpoints() |
|
362 |
if self.bool_write_input: |
|
363 |
self.write_incar(atoms) |
|
364 |
self.write_potcar() |
|
365 |
self.write_kpoints() |
|
364 | 366 |
self.write_sort_file() |
365 | 367 |
|
366 | 368 |
# Execute VASP |
Formats disponibles : Unified diff