Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12756 from permcody/multiap_start_time
Multiapp start time
- Loading branch information
Showing
14 changed files
with
187 additions
and
32 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
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
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,56 +1,81 @@ | |||
[Tests] | [Tests] | ||
design = "MultiApps/index.md" | |||
[./input_file] | [./input_file] | ||
type = 'RunException' | type = 'RunException' | ||
input = 'check_error.i' | input = 'check_error.i' | ||
expect_err = 'missing required parameter' | expect_err = 'missing required parameter' | ||
|
|||
issues = "#4101 #4113" | |||
requirement = "The system shall detect input file problems with sub app input files." | |||
[../] | [../] | ||
|
|
||
[./unused_subapp_param] | [./unused_subapp_param] | ||
type = 'RunException' | type = 'RunException' | ||
input = 'check_error.i' | input = 'check_error.i' | ||
cli_args = 'MultiApps/multi/input_files="sub_unused.i"' | cli_args = 'MultiApps/multi/input_files="sub_unused.i"' | ||
expect_err = 'unused parameter' | expect_err = 'unused parameter' | ||
|
|||
issues = "#4101 #4113" | |||
requirement = "The system shall CLI argument problems related to sub app input files." | |||
[../] | [../] | ||
|
|
||
[./positions] | [./positions] | ||
type = 'RunException' | type = 'RunException' | ||
input = 'check_error.i' | input = 'check_error.i' | ||
expect_err = 'Not enough positions for the number of input files' | expect_err = 'Not enough positions for the number of input files' | ||
cli_args = 'MultiApps/multi/input_files="sub1.i sub2.i"' | cli_args = 'MultiApps/multi/input_files="sub1.i sub2.i"' | ||
|
|||
issues = "#1845 #3556 #5784" | |||
requirement = "The system show error when the number of input files is great than one and doesn't match the number of provided sub app positions." | |||
[../] | [../] | ||
|
|
||
[./not_enough_positions] | [./not_enough_positions] | ||
type = 'RunException' | type = 'RunException' | ||
input = 'check_error.i' | input = 'check_error.i' | ||
expect_err = 'Not enough positions for the number of input files' | expect_err = 'Not enough positions for the number of input files' | ||
cli_args = 'MultiApps/multi/input_files="sub1.i sub2.i" MultiApps/multi/positions="0 1 0"' | cli_args = 'MultiApps/multi/input_files="sub1.i sub2.i" MultiApps/multi/positions="0 1 0"' | ||
|
|||
issues = "#1845 #3556 #5784" | |||
requirement = "The system show error when the number of input files is great than one and doesn't match the number of provided sub app positions when using CLI overrides." | |||
[../] | [../] | ||
|
|
||
[./not_enough_position_files] | [./not_enough_position_files] | ||
type = 'RunException' | type = 'RunException' | ||
input = 'check_error.i' | input = 'check_error.i' | ||
expect_err = 'Number of input_files for MultiApp' | expect_err = 'Number of input_files for MultiApp' | ||
cli_args = 'MultiApps/multi/input_files="sub1.i sub2.i" MultiApps/multi/positions_file="position1"' | cli_args = 'MultiApps/multi/input_files="sub1.i sub2.i" MultiApps/multi/positions_file="position1"' | ||
|
|||
issues = "#1845 #3556 #5784" | |||
requirement = "The system shall error when the number of sub app input files doesn't match the number of provided positions files." | |||
[../] | [../] | ||
|
|
||
[./both_positions] | [./both_positions] | ||
type = 'RunException' | type = 'RunException' | ||
input = 'check_error.i' | input = 'check_error.i' | ||
expect_err = 'Both \'positions\' and \'positions_file\' cannot be specified simultaneously in MultiApp' | expect_err = 'Both \'positions\' and \'positions_file\' cannot be specified simultaneously in MultiApp' | ||
cli_args = 'MultiApps/multi/input_files="sub1.i sub2.i" MultiApps/multi/positions="0 1 0" MultiApps/multi/positions_file="position1"' | cli_args = 'MultiApps/multi/input_files="sub1.i sub2.i" MultiApps/multi/positions="0 1 0" MultiApps/multi/positions_file="position1"' | ||
|
|||
issues = "#1845 #3556 #5784" | |||
requirement = "The system shall error when both positions are provided in the input file along with a separate file of positions." | |||
[../] | [../] | ||
|
|
||
[./bad_positions] | [./bad_positions] | ||
type = 'RunException' | type = 'RunException' | ||
input = 'check_error.i' | input = 'check_error.i' | ||
expect_err = 'Number of entries in \'positions_file\'' | expect_err = 'Number of entries in \'positions_file\'' | ||
cli_args = 'MultiApps/multi/input_files="sub1.i" MultiApps/multi/positions_file="bad_positions.txt"' | cli_args = 'MultiApps/multi/input_files="sub1.i" MultiApps/multi/positions_file="bad_positions.txt"' | ||
|
|||
issues = "#1845 #3556 #5784" | |||
requirement = "The system shall error when the multiapp positions file is malformed." | |||
[../] | [../] | ||
|
|
||
[./sub_cycling_and_catch_up] | [./sub_cycling_and_catch_up] | ||
type = 'RunException' | type = 'RunException' | ||
input = 'check_error.i' | input = 'check_error.i' | ||
expect_err = 'sub_cycling and catch_up cannot both be set to true' | expect_err = '"sub_cycling" and "catch_up" cannot both be set to true' | ||
cli_args = 'MultiApps/multi/input_files="sub1.i" MultiApps/multi/positions="0 1 0" MultiApps/multi/sub_cycling=true MultiApps/multi/catch_up=true' | cli_args = 'MultiApps/multi/input_files="sub1.i" MultiApps/multi/positions="0 1 0" MultiApps/multi/sub_cycling=true MultiApps/multi/catch_up=true' | ||
|
|||
issues = "#6127" | |||
requirement = "The system shall error when the Multiapp parameter sub_cycling and catch_up are both set to true." | |||
[../] | [../] | ||
[] | [] |
Binary file modified
BIN
+6.14 KB
(120%)
test/tests/multiapps/move_and_reset/gold/multilevel_master_out_sub0_sub0.e-s002
Binary file not shown.
Binary file modified
BIN
+6.14 KB
(120%)
test/tests/multiapps/reset/gold/multilevel_master_out_sub0_sub0.e-s002
Binary file not shown.
Binary file not shown.
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,58 @@ | |||
[Mesh] | |||
type = GeneratedMesh | |||
dim = 2 | |||
nx = 10 | |||
ny = 10 | |||
[] | |||
|
|||
[Variables] | |||
[./u] | |||
[../] | |||
[] | |||
|
|||
[Kernels] | |||
[./diff] | |||
type = Diffusion | |||
variable = u | |||
[../] | |||
[./td] | |||
type = TimeDerivative | |||
variable = u | |||
[../] | |||
[] | |||
|
|||
[BCs] | |||
[./left] | |||
type = DirichletBC | |||
variable = u | |||
boundary = left | |||
value = 0 | |||
[../] | |||
[./right] | |||
type = DirichletBC | |||
variable = u | |||
boundary = right | |||
value = 1 | |||
[../] | |||
[] | |||
|
|||
[Executioner] | |||
type = Transient | |||
num_steps = 10 | |||
dt = 0.2 | |||
|
|||
petsc_options_iname = '-pc_type -pc_hypre_type' | |||
petsc_options_value = 'hypre boomeramg' | |||
[] | |||
|
|||
[Outputs] | |||
exodus = true | |||
[] | |||
|
|||
[MultiApps] | |||
[./sub_app] | |||
type = TransientMultiApp | |||
input_files = 'sub.i' | |||
global_time_offset = 0.8 | |||
[../] | |||
[] |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,50 @@ | |||
[Mesh] | |||
type = GeneratedMesh | |||
dim = 2 | |||
nx = 10 | |||
ny = 10 | |||
[] | |||
|
|||
[Variables] | |||
[./u] | |||
[../] | |||
[] | |||
|
|||
[Kernels] | |||
[./diff] | |||
type = Diffusion | |||
variable = u | |||
[../] | |||
[./td] | |||
type = TimeDerivative | |||
variable = u | |||
[../] | |||
[] | |||
|
|||
[BCs] | |||
[./left] | |||
type = DirichletBC | |||
variable = u | |||
boundary = left | |||
value = 0 | |||
[../] | |||
[./right] | |||
type = DirichletBC | |||
variable = u | |||
boundary = right | |||
value = 1 | |||
[../] | |||
[] | |||
|
|||
[Executioner] | |||
type = Transient | |||
num_steps = 10 | |||
dt = 1 # This will be constrained by the master solve | |||
|
|||
petsc_options_iname = '-pc_type -pc_hypre_type' | |||
petsc_options_value = 'hypre boomeramg' | |||
[] | |||
|
|||
[Outputs] | |||
exodus = true | |||
[] |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,11 @@ | |||
[Tests] | |||
[start_time] | |||
type = Exodiff | |||
input = master.i | |||
exodiff = master_out_sub_app0.e | |||
|
|||
issues = #12755 | |||
requirement = "The system shall support a time offset between the master and a subapp when using the Multiapp system." | |||
design = "TransientMultiApp.md" | |||
[] | |||
[] |