Skip to content

Commit

Permalink
Merge pull request #112 from MineralsCloud:pseudodir
Browse files Browse the repository at this point in the history
Add more `PseudodirSetter`s
  • Loading branch information
singularitti authored Apr 14, 2022
2 parents f49b450 + 23d19ba commit 58ae3e6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/ConvergenceTestWorkflow/actions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ function (x::CutoffEnergySetter)(template::PWInput)
return template
end

normalizer() = VerbositySetter("high")
struct PseudodirSetter <: Setter end
function (x::PseudodirSetter)(template::PWInput)
@set! template.control.pseudo_dir = abspath(template.control.pseudo_dir)
return template
end

normalizer() = VerbositySetter("high") PseudodirSetter()

struct OutdirSetter <: Setter
timefmt::String
Expand Down
9 changes: 8 additions & 1 deletion src/PhononWorkflow/actions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,14 @@ function (::RecoverySetter)(template::PhInput)
return template
end

normalizer(::Scf, args...) = VerbositySetter("high") CalculationSetter(Scf())
struct PseudodirSetter <: Setter end
function (x::PseudodirSetter)(template::PWInput)
@set! template.control.pseudo_dir = abspath(template.control.pseudo_dir)
return template
end

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

0 comments on commit 58ae3e6

Please sign in to comment.