Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
parser-wien2k
Commits
d7687757
Commit
d7687757
authored
Oct 28, 2020
by
Pavel Ondračka
Committed by
Markus Scheidgen
Jan 04, 2021
Browse files
Save the last energy_total_scf_iteration as energy_total
parent
8c2209c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
wien2kparser/parser_wien2k.py
View file @
d7687757
...
...
@@ -55,6 +55,7 @@ class Wien2kContext(object):
self
.
secSystemIndex
=
None
self
.
scfIterNr
=
0
self
.
spinPol
=
None
self
.
eTot
=
None
def
startedParsing
(
self
,
path
,
parser
):
"""called when parsing starts"""
...
...
@@ -128,12 +129,16 @@ class Wien2kContext(object):
def
onClose_section_single_configuration_calculation
(
self
,
backend
,
gIndex
,
section
):
# write number of SCF iterations
backend
.
addValue
(
'number_of_scf_iterations'
,
self
.
scfIterNr
)
# write the references to section_method and section_system
backend
.
addValue
(
'single_configuration_to_calculation_method_ref'
,
self
.
secMethodIndex
)
backend
.
addValue
(
'single_configuration_calculation_to_system_ref'
,
self
.
secSystemIndex
)
if
self
.
eTot
is
not
None
:
backend
.
addValue
(
"energy_total"
,
self
.
eTot
)
mainFile
=
self
.
parser
.
fIn
.
fIn
.
name
eigvalKpoint
=
[]
...
...
@@ -281,6 +286,10 @@ class Wien2kContext(object):
self
.
spinPol
=
False
else
:
self
.
spinPol
=
True
eTot
=
section
[
"energy_total_scf_iteration"
]
if
eTot
is
not
None
:
self
.
eTot
=
eTot
[
0
]
# description of the input
mainFileDescription
=
SM
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment