Commit 9c2d9ee0 authored by Ask Hjorth Larsen's avatar Ask Hjorth Larsen
Browse files

single config to system/method refs

parent 24e1c060
......@@ -227,7 +227,7 @@ def parse(fname, fd):
def open_section(name):
gid = pew.openSection(name)
yield gid
pew.closeSection(name, gid)
with open_section('section_run'):
......@@ -272,7 +272,7 @@ def parse(fname, fd):
parse_logfile(metaInfoEnv, pew, logfile)
print('Add parsed values', file=fd)
with open_section('section_system'):
with open_section('section_system') as system_gid:
# The Atoms object will always have a cell, even if it was not
# used in the Octopus calculation! Thus, to be more honest,
# we re-extract the cell at a level where we can distinguish:
......@@ -289,10 +289,12 @@ def parse(fname, fd):
with open_section('section_single_configuration_calculation'):
print('Parse info file %s' % fname, file=fd)
parse_infofile(metaInfoEnv, pew, fname)
with open_section('section_method'):
with open_section('section_method') as method_gid:
smearing_width = float(kwargs.get('smearing', 0.0))
convert_unit(smearing_width, ENERGY_UNIT))
......@@ -345,6 +347,9 @@ def parse(fname, fd):
convert_unit(forces, 'eV'))
# Convergence parameters?
with open_section('section_eigenvalues'):
if kwargs.get('theorylevel', 'dft') == 'dft':
pew.addValue('eigenvalues_kind', 'normal')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment