Skip to content

Commit

Permalink
Merge pull request #78 from MineralsCloud:RecoverySetter
Browse files Browse the repository at this point in the history
Use `RecoverySetter` in `normalizer` in src/PhononWorkflow/actions.jl
  • Loading branch information
singularitti authored Oct 10, 2021
2 parents 95871cd + 800fd05 commit 52d41fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 0 additions & 1 deletion examples/Ge/ph.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Phonon
fildyn = 'dyn'
outdir = './tmp'
prefix = 'Ge'
recover = .true.
ldisp = .true.
tr2_ph = 1.0e-14
nq1 = 2
Expand Down
9 changes: 8 additions & 1 deletion src/PhononWorkflow/actions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,15 @@ function (x::DosSetter)(template::MatdynInput)
return template
end

struct RecoverySetter <: Setter end
function (::RecoverySetter)(template::PhInput)
@set! template.inputph.recover = true
return template
end

normalizer(::Scf, args...) = VerbositySetter("high") CalculationSetter(Scf())
normalizer(::Dfpt, input::PWInput) = RelayArgumentsSetter(input) VerbositySetter("high")
normalizer(::Dfpt, input::PWInput) =
RelayArgumentsSetter(input) VerbositySetter("high") RecoverySetter()
normalizer(::RealSpaceForceConstants, input::PhInput) = RelayArgumentsSetter(input)
normalizer(
::PhononDispersion,
Expand Down

0 comments on commit 52d41fc

Please sign in to comment.