-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5a72c5
commit a3f5ab3
Showing
3 changed files
with
51 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
# Get the dictionary for the preprocess of the stage | ||
proc ::write::getPreprocessForStage {stage {mdpaimporter ""}} { | ||
set stage_preprocess [dict create ] | ||
set operation_parameters [dict create ] | ||
dict set stage_preprocess operations [list [dict create name "user_operation.EmptyOperation" Parameters $operation_parameters]] | ||
|
||
if { $mdpaimporter ne "" } { | ||
# Get the modeler parameters | ||
set modeler [dict create name "KratosMultiphysics.modelers.import_mdpa_modeler.ImportMDPAModeler" Parameters $mdpaimporter] | ||
dict set stage_preprocess modelers [list $modeler] | ||
} | ||
|
||
return $stage_preprocess | ||
} | ||
|
||
# Get the dictionary for the postprocess of the stage | ||
proc ::write::getPostprocessForStage {stage} { | ||
set stage_postprocess [dict create ] | ||
dict set stage_postprocess operations [list [dict create name "user_operation.EmptyOperation" Parameters [dict create ] ]] | ||
|
||
return $stage_postprocess | ||
} | ||
|
||
proc ::write::GetOrchestratorDict { stages_names } { | ||
|
||
set orchestrator_dict [dict create] | ||
dict set orchestrator_dict name "MultistageOrchestrators.KratosMultiphysics.SequentialMultistageOrchestrator" | ||
dict set orchestrator_dict settings echo_level 0 | ||
dict set orchestrator_dict settings execution_list $stages_names | ||
dict set orchestrator_dict settings stage_checkpoints true | ||
dict set orchestrator_dict settings stage_checkpoints_folder new_checkpoints | ||
# dict set orchestrator_dict settings load_from_checkpoint "new_checkpoints/fluid_stage" | ||
return $orchestrator_dict | ||
} |