Skip to content

Commit

Permalink
Implement CreateInput{SelfConsistentField} from a file
Browse files Browse the repository at this point in the history
  • Loading branch information
singularitti committed Oct 26, 2023
1 parent ddfc532 commit ce1c362
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/PhononWorkflow/actions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ function parsecell(str)
return tryparsefinal(AtomicPositionsCard, str), tryparsefinal(CellParametersCard, str)
end

(::CreateInput{SelfConsistentField})(file::AbstractString) =
parse(PWInput, read(file, String))
function (::CreateInput{SelfConsistentField})(template::PWInput, args...)
return (customizer(args...) normalizer(SelfConsistentField(), template))(template)
end
Expand Down

0 comments on commit ce1c362

Please sign in to comment.