Skip to content

Commit

Permalink
added write_spn
Browse files Browse the repository at this point in the history
  • Loading branch information
louisponet committed Jul 6, 2021
1 parent a732518 commit d1849f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/qe/constants.jl
Expand Up @@ -64,6 +64,8 @@ push!(QECalculationInfos,
"'standalone' or 'library'"),
QEFlagInfo{String}(:spin_component,
"'none', 'up' or 'down'"),
QEFlagInfo{Bool}(:write_spn,
"Write .spn matrix elements."),
QEFlagInfo{Bool}(:write_mmn,
"compute M_mn matrix"),
QEFlagInfo{Bool}(:write_amn,
Expand Down
1 change: 1 addition & 0 deletions src/qe/fileio.jl
Expand Up @@ -1182,6 +1182,7 @@ function qe_generate_pw2wancalculation(calculation::DFCalculation{Wannier90},
flags[:write_amn] = true
if flag(calculation, :spin) !== nothing
flags[:spin_component] = flag(calculation, :spin)
flags[:write_spn] = true
end
if flag(calculation, :wannier_plot) !== nothing
flags[:write_unk] = flag(calculation, :wannier_plot)
Expand Down

0 comments on commit d1849f0

Please sign in to comment.