Skip to content

Commit

Permalink
Moved VASP-related settings to VASP parser
Browse files Browse the repository at this point in the history
  • Loading branch information
WardLT committed Feb 19, 2018
1 parent 0fcc136 commit 60f6932
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
5 changes: 1 addition & 4 deletions dfttopif/parsers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ def get_setting_functions(self):
'Spin-Orbit Coupling':'uses_SOC',
'DFT+U':'get_U_settings',
'vdW Interactions':'get_vdW_settings',
'Pseudopotentials':'get_pp_name',
'INCAR':'get_incar',
'POSCAR':'get_poscar',
'Pseudopotentials':'get_pp_name'
}

def get_result_functions(self):
Expand All @@ -104,7 +102,6 @@ def get_result_functions(self):
'Forces': 'get_forces',
'Total force': 'get_total_force',
'Density': 'get_density',
'OUTCAR': 'get_outcar',
'Total magnetization': 'get_total_magnetization',
'Stresses': 'get_stresses'
}
Expand Down
15 changes: 15 additions & 0 deletions dfttopif/parsers/vasp.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,21 @@ def _find_file(name):
self.eignval = _find_file('EIGNVAL')

def get_name(self): return "VASP"

def get_setting_functions(self):
settings = super(VaspParser, self).get_setting_functions()
settings.update({
'INCAR': 'get_incar',
'POSCAR': 'get_poscar',
})
return settings

def get_output_functions(self):
outputs = super(VaspParser, self).get_output_functions()
outputs.update({
'OUTCAR': 'get_outcar',
})
return outputs

def get_output_structure(self):
self.atoms = read_vasp_out(self.outcar)
Expand Down

0 comments on commit 60f6932

Please sign in to comment.