Skip to content

Commit

Permalink
Add DetectSymmetries to Recipes.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
singularitti committed Nov 19, 2023
1 parent 7248ca6 commit ea305f8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/EquationOfStateWorkflow/Recipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ using ..EquationOfStateWorkflow:
RunCmd,
ExtractData,
ExtractCell,
DetectSymmetries,
SaveCell,
GatherData,
SaveData,
Expand Down Expand Up @@ -102,6 +103,7 @@ function stage(::VariableCellOptimization, r::ParallelEosFittingRecipe, ::Val{2}
RunCmd(VariableCellOptimization()),
ExtractCell(VariableCellOptimization()),
SaveCell(VariableCellOptimization()),
DetectSymmetries(VariableCellOptimization()),
ExtractData(VariableCellOptimization()),
GatherData(VariableCellOptimization()),
SaveData(VariableCellOptimization()),
Expand Down Expand Up @@ -133,6 +135,10 @@ function stage(::VariableCellOptimization, r::ParallelEosFittingRecipe, ::Val{2}
savecells = map(
thunk -> ArgDependentJob(thunk; name="save cell in vc-relax"), first(iterate(steps))
)
detectsymmetries = map(
thunk -> ArgDependentJob(thunk; name="detect symmetries of cells"),
first(iterate(steps)),
)
extractdata = map(
thunk -> ConditionalJob(thunk; name="extract E(V) data in vc-relax"),
first(iterate(steps)),
Expand All @@ -147,13 +153,15 @@ function stage(::VariableCellOptimization, r::ParallelEosFittingRecipe, ::Val{2}
makeinputs .→ writeinputs .→ runcmds .→ extractdata .→ gatherdata fiteos saveparams
gatherdata savedata
runcmds .→ extractcells .→ savecells
extractcells .→ detectsymmetries
return (;
compute=compute,
makeinputs=makeinputs,
writeinputs=writeinputs,
runcmds=runcmds,
extractcells=extractcells,
savecells=savecells,
detectsymmetries=detectsymmetries,
extractdata=extractdata,
gatherdata=gatherdata,
savedata=savedata,
Expand Down

0 comments on commit ea305f8

Please sign in to comment.