forked from idaholab/moose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for creating array variables in an action
refs idaholab#19564
- Loading branch information
1 parent
209de50
commit 49b4b02
Showing
4 changed files
with
65 additions
and
22 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
21 changes: 21 additions & 0 deletions
21
test/tests/variables/array_variable/array_variable_action.i
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,21 @@ | ||
[Mesh] | ||
[gmg] | ||
type = GeneratedMeshGenerator | ||
dim = 2 | ||
nx = 3 | ||
ny = 3 | ||
[] | ||
[] | ||
|
||
[Testing/LotsOfDiffusion/lots] | ||
number = 1 | ||
array = true | ||
[] | ||
|
||
[Executioner] | ||
type = Steady | ||
[] | ||
|
||
[Outputs] | ||
exodus = true | ||
[] |
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,30 @@ | ||
[Tests] | ||
[./block_aux_kernel_test] | ||
issues = '#19564' | ||
design = 'ArrayMooseVariable.md' | ||
|
||
[block_aux_kernel_test] | ||
type = 'Exodiff' | ||
input = 'array_variable_test.i' | ||
exodiff = 'array_variable_test_out.e' | ||
requirement = 'MOOSE shall provide an ability to add array variables with constant initial conditions.' | ||
issues = '#6881' | ||
design = 'ArrayMooseVariable.md' | ||
[../] | ||
[array_variable_size_one] | ||
[] | ||
[size_one] | ||
type = 'Exodiff' | ||
input = 'array_variable_size_one_test.i' | ||
exodiff = 'array_variable_size_one_test_out.e' | ||
requirement = 'MOOSE shall be able to define an array variable with component size one.' | ||
issues = '#19564' | ||
design = 'ArrayMooseVariable.md' | ||
[] | ||
[array_variable_array_false] | ||
[array_false_error] | ||
type = 'RunException' | ||
input = 'array_variable_size_one_test.i' | ||
cli_args = 'Variables/u/components=2 Variables/u/array=false' | ||
requirement = 'MOOSE shall report a reasonable error when defining a variable with multiple components not as an array variable.' | ||
issues = '#19564' | ||
expect_err = "'array' is set to false." | ||
design = 'ArrayMooseVariable.md' | ||
[] | ||
[action] | ||
type = 'Exodiff' | ||
input = 'array_variable_action.i' | ||
exodiff = 'array_variable_action_out.e' | ||
requirement = 'MOOSE shall support the automated creation of array variables.' | ||
[] | ||
[] |