Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
parser-vasp
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
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-vasp
Commits
3a9d9754
Commit
3a9d9754
authored
9 years ago
by
Mohamed, Fawzi Roberto (fawzi)
Browse files
Options
Downloads
Patches
Plain Diff
recognize dft+u
parent
e627b882
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
parser/parser-vasp/parser_vasprun.py
+8
-0
8 additions, 0 deletions
parser/parser-vasp/parser_vasprun.py
with
8 additions
and
0 deletions
parser/parser-vasp/parser_vasprun.py
+
8
−
0
View file @
3a9d9754
...
...
@@ -107,6 +107,7 @@ class VasprunContext(object):
def
onEnd_incar
(
self
,
parser
,
event
,
element
):
backend
=
parser
.
backend
metaEnv
=
parser
.
backend
.
metaInfoEnv
()
dft_plus_u
=
False
for
el
in
element
:
if
(
el
.
tag
!=
"
i
"
):
backend
.
pwarn
(
"
unexpected tag %s %s %r in incar
"
%
(
el
.
tag
,
el
.
attrib
,
el
.
text
))
...
...
@@ -154,6 +155,13 @@ class VasprunContext(object):
backend
.
closeNonOverlappingSection
(
"
section_XC_functionals
"
)
elif
name
==
"
ISPIN
"
:
self
.
ispin
=
int
(
el
.
text
.
strip
())
elif
name
==
"
LDAU
"
:
if
re
.
match
(
"
.?[Tt](?:[rR][uU][eE])?.?|[yY](?:[eE][sS])?|1
"
,
el
.
text
.
strip
()):
dft_plus_u
=
True
if
dft_plus_u
:
backend
.
addValue
(
"
electronic_structure_method
"
,
"
DFT+U
"
)
else
:
backend
.
addValue
(
"
electronic_structure_method
"
,
"
DFT
"
)
def
onEnd_kpoints
(
self
,
parser
,
event
,
element
):
...
...
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