Skip to content

Commit

Permalink
Add type PseudodirSetter & update normalizer
Browse files Browse the repository at this point in the history
  • Loading branch information
singularitti committed Apr 10, 2022
1 parent a745924 commit f49b450
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/EquationOfStateWorkflow/actions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@ function (x::CalculationSetter)(template::PWInput)
return template
end

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

normalizer(calc::ScfOrOptim) =
VerbositySetter("high") CalculationSetter(calc) PseudodirSetter()

struct OutdirSetter <: Setter
timefmt::String
Expand Down

0 comments on commit f49b450

Please sign in to comment.