Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
parser-gpaw
Commits
acfef610
Commit
acfef610
authored
Jun 14, 2016
by
Mikkel Strange
Browse files
include info on spin
parent
f202bd31
Changes
1
Hide whitespace changes
Inline
Side-by-side
parser/parser-gpaw/parser.py
View file @
acfef610
...
...
@@ -73,11 +73,17 @@ def parse(filename):
if
'CartesianForces'
in
r
:
p
.
addArrayValues
(
'atom_forces_free'
,
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'
):
#p.addValue('relativity_method', 'pseudo_scalar_relativistic')
p
.
addValue
(
'electronic_structure_method'
,
'DFT'
)
p
.
addValue
(
'XC_functional'
,
get_libxc_name
(
r
.
XCFunctional
))
p
.
addValue
(
'scf_threshold_energy_change'
,
c
(
r
.
EnergyError
,
'hartree'
))
if
r
.
FixMagneticMoment
:
p
.
addValue
(
'gpaw_fixed_spin_Sz'
,
r
.
MagneticMoments
.
sum
()
/
2.
)
if
'FermiWidth'
in
r
:
p
.
addValue
(
'smearing_kind'
,
'fermi'
)
p
.
addRealValue
(
'smearing_width'
,
...
...
Write
Preview
Supports
Markdown
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