Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
parser-gpaw
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
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-gpaw
Commits
acfef610
Commit
acfef610
authored
Jun 14, 2016
by
Mikkel Strange
Browse files
Options
Downloads
Patches
Plain Diff
include info on spin
parent
f202bd31
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
parser/parser-gpaw/parser.py
+6
-0
6 additions, 0 deletions
parser/parser-gpaw/parser.py
with
6 additions
and
0 deletions
parser/parser-gpaw/parser.py
+
6
−
0
View file @
acfef610
...
@@ -73,11 +73,17 @@ def parse(filename):
...
@@ -73,11 +73,17 @@ def parse(filename):
if
'
CartesianForces
'
in
r
:
if
'
CartesianForces
'
in
r
:
p
.
addArrayValues
(
'
atom_forces_free
'
,
p
.
addArrayValues
(
'
atom_forces_free
'
,
c
(
r
.
CartesianForces
,
'
bohr/hartree
'
))
c
(
r
.
CartesianForces
,
'
bohr/hartree
'
))
p
.
addArrayValues
(
'
gpaw_magnetic_moments
'
,
r
.
MagneticMoments
)
p
.
addRealValue
(
'
gpaw_spin_Sz
'
,
r
.
MagneticMoments
.
sum
()
/
2.0
)
with
o
(
p
,
'
section_method
'
):
with
o
(
p
,
'
section_method
'
):
#p.addValue('relativity_method', 'pseudo_scalar_relativistic')
p
.
addValue
(
'
electronic_structure_method
'
,
'
DFT
'
)
p
.
addValue
(
'
electronic_structure_method
'
,
'
DFT
'
)
p
.
addValue
(
'
XC_functional
'
,
get_libxc_name
(
r
.
XCFunctional
))
p
.
addValue
(
'
XC_functional
'
,
get_libxc_name
(
r
.
XCFunctional
))
p
.
addValue
(
'
scf_threshold_energy_change
'
,
c
(
r
.
EnergyError
,
p
.
addValue
(
'
scf_threshold_energy_change
'
,
c
(
r
.
EnergyError
,
'
hartree
'
))
'
hartree
'
))
if
r
.
FixMagneticMoment
:
p
.
addValue
(
'
gpaw_fixed_spin_Sz
'
,
r
.
MagneticMoments
.
sum
()
/
2.
)
if
'
FermiWidth
'
in
r
:
if
'
FermiWidth
'
in
r
:
p
.
addValue
(
'
smearing_kind
'
,
'
fermi
'
)
p
.
addValue
(
'
smearing_kind
'
,
'
fermi
'
)
p
.
addRealValue
(
'
smearing_width
'
,
p
.
addRealValue
(
'
smearing_width
'
,
...
...
...
...
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