Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
parser-wien2k
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
nomad-lab
parser-wien2k
Commits
d7687757
Commit
d7687757
authored
4 years ago
by
Pavel Ondračka
Committed by
Markus Scheidgen
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Save the last energy_total_scf_iteration as energy_total
parent
8c2209c8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
wien2kparser/parser_wien2k.py
+9
-0
9 additions, 0 deletions
wien2kparser/parser_wien2k.py
with
9 additions
and
0 deletions
wien2kparser/parser_wien2k.py
+
9
−
0
View file @
d7687757
...
@@ -55,6 +55,7 @@ class Wien2kContext(object):
...
@@ -55,6 +55,7 @@ class Wien2kContext(object):
self
.
secSystemIndex
=
None
self
.
secSystemIndex
=
None
self
.
scfIterNr
=
0
self
.
scfIterNr
=
0
self
.
spinPol
=
None
self
.
spinPol
=
None
self
.
eTot
=
None
def
startedParsing
(
self
,
path
,
parser
):
def
startedParsing
(
self
,
path
,
parser
):
"""
called when parsing starts
"""
"""
called when parsing starts
"""
...
@@ -128,12 +129,16 @@ class Wien2kContext(object):
...
@@ -128,12 +129,16 @@ class Wien2kContext(object):
def
onClose_section_single_configuration_calculation
(
self
,
backend
,
gIndex
,
section
):
def
onClose_section_single_configuration_calculation
(
self
,
backend
,
gIndex
,
section
):
# write number of SCF iterations
# write number of SCF iterations
backend
.
addValue
(
'
number_of_scf_iterations
'
,
self
.
scfIterNr
)
backend
.
addValue
(
'
number_of_scf_iterations
'
,
self
.
scfIterNr
)
# write the references to section_method and section_system
# write the references to section_method and section_system
backend
.
addValue
(
'
single_configuration_to_calculation_method_ref
'
,
self
.
secMethodIndex
)
backend
.
addValue
(
'
single_configuration_to_calculation_method_ref
'
,
self
.
secMethodIndex
)
backend
.
addValue
(
'
single_configuration_calculation_to_system_ref
'
,
self
.
secSystemIndex
)
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
mainFile
=
self
.
parser
.
fIn
.
fIn
.
name
eigvalKpoint
=
[]
eigvalKpoint
=
[]
...
@@ -282,6 +287,10 @@ class Wien2kContext(object):
...
@@ -282,6 +287,10 @@ class Wien2kContext(object):
else
:
else
:
self
.
spinPol
=
True
self
.
spinPol
=
True
eTot
=
section
[
"
energy_total_scf_iteration
"
]
if
eTot
is
not
None
:
self
.
eTot
=
eTot
[
0
]
# description of the input
# description of the input
mainFileDescription
=
SM
(
mainFileDescription
=
SM
(
name
=
'
root
'
,
name
=
'
root
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment