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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This project is archived. Its data is
read-only
.
Show more breadcrumbs
nomad-lab
parser-wien2k
Commits
8c2209c8
Commit
8c2209c8
authored
Oct 28, 2020
by
Pavel Ondračka
Committed by
Markus Scheidgen
Jan 4, 2021
Browse files
Options
Downloads
Patches
Plain Diff
Fix parsing of smearing_kind
parent
7f8a0428
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
wien2kparser/parser_wien2k.py
+0
-12
0 additions, 12 deletions
wien2kparser/parser_wien2k.py
wien2kparser/wien2k_parser_in2.py
+9
-0
9 additions, 0 deletions
wien2kparser/wien2k_parser_in2.py
with
9 additions
and
12 deletions
wien2kparser/parser_wien2k.py
+
0
−
12
View file @
8c2209c8
...
...
@@ -196,18 +196,6 @@ class Wien2kContext(object):
def
onClose_section_system
(
self
,
backend
,
gIndex
,
section
):
#backend.addValue("smearing_kind", x_fleur_smearing_kind)
smearing_kind
=
section
[
'
x_wien2k_smearing_kind
'
]
if
smearing_kind
is
not
None
:
# value = ''
backend
.
addValue
(
'
x_wien2k_smearing_kind
'
,
value
)
smearing_width
=
section
[
'
x_wien2k_smearing_width
'
]
if
smearing_width
is
not
None
:
# value = ''
backend
.
addValue
(
'
x_wien2k_smearing_width
'
,
value
)
# atom labels
atom_labels
=
section
[
'
x_wien2k_atom_name
'
]
if
atom_labels
is
not
None
:
...
...
...
...
This diff is collapsed.
Click to expand it.
wien2kparser/wien2k_parser_in2.py
+
9
−
0
View file @
8c2209c8
...
...
@@ -45,6 +45,15 @@ class Wien2kIn2Context(object):
# allows to reset values if the same superContext is used to parse different files
self
.
initialize_values
()
def
onClose_section_method
(
self
,
backend
,
gIndex
,
section
):
smearing_kind
=
section
[
'
x_wien2k_smearing_kind
'
][
0
]
if
smearing_kind
is
not
None
:
if
'
TETRA
'
in
smearing_kind
:
backend
.
addValue
(
'
smearing_kind
'
,
'
tetrahedra
'
)
elif
'
TEMP
'
in
smearing_kind
:
backend
.
addValue
(
'
smearing_kind
'
,
'
fermi
'
)
elif
'
GAUSS
'
in
smearing_kind
:
backend
.
addValue
(
'
smearing_kind
'
,
'
gaussian
'
)
# description of the input
def
buildIn2Matchers
():
...
...
...
...
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
sign in
to comment