Skip to content

Commit

Permalink
Merge pull request #23 from zachmprince/stm-docs-14933
Browse files Browse the repository at this point in the history
Using StochasticToolsAction for STM tests
  • Loading branch information
aeslaughter authored May 14, 2020
2 parents 0597233 + 1896ba8 commit 908f276
Show file tree
Hide file tree
Showing 88 changed files with 141 additions and 1,329 deletions.
21 changes: 6 additions & 15 deletions modules/stochastic_tools/examples/batch/full_solve.i
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
[Mesh]
type = GeneratedMesh
dim = 1
[]

[Problem]
kernel_coverage_check = false
solve = false
[StochasticTools]
[]

[Distributions]
Expand All @@ -19,15 +12,11 @@
[Samplers]
[mc]
type = MonteCarlo
n_samples = 10
num_rows = 10
distributions = 'uniform uniform'
[]
[]

[Executioner]
type = Steady
[]

[MultiApps]
[runner]
type = SamplerFullSolveMultiApp
Expand All @@ -43,12 +32,14 @@
multi_app = runner
parameters = 'BCs/left/value BCs/right/value'
to_control = receiver
sampler = mc
[]
[data]
type = SamplerPostprocessorTransfer
multi_app = runner
vector_postprocessor = storage
postprocessor = average
to_vector_postprocessor = storage
from_postprocessor = average
sampler = mc
[]
[]

Expand Down
4 changes: 0 additions & 4 deletions modules/stochastic_tools/examples/batch/sub.i
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@
[]
[]

[Problem]
type = FEProblem
[]

[Executioner]
type = Transient
num_steps = 1
Expand Down
18 changes: 18 additions & 0 deletions modules/stochastic_tools/examples/batch/tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[Tests]
design = 'batch_mode.md'
issues = '#13320'
requirement = "The sytem shall test syntax for running batch-restore examples with sub-application running "

[full_solve]
type = RunApp
input = full_solve.i
check_input = true
detail = "full solve and "
[]
[transient]
type = RunApp
input = transient.i
check_input = true
detail = "transient."
[]
[]
20 changes: 8 additions & 12 deletions modules/stochastic_tools/examples/batch/transient.i
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
[Mesh]
type = GeneratedMesh
dim = 1
[]

[Problem]
kernel_coverage_check = false
solve = false
[StochasticTools]
auto_create_executioner = false
[]

[Distributions]
[uniform]
type = UniformDistribution
type = Uniform
lower_bound = 1
upper_bound = 9
[]
Expand All @@ -19,7 +13,7 @@
[Samplers]
[mc]
type = MonteCarlo
n_samples = 10
num_rows = 10
distributions = 'uniform uniform'
[]
[]
Expand All @@ -45,12 +39,14 @@
multi_app = runner
parameters = 'BCs/left/value BCs/right/value'
to_control = receiver
sampler = mc
[]
[data]
type = SamplerPostprocessorTransfer
multi_app = runner
vector_postprocessor = storage
postprocessor = average
to_vector_postprocessor = storage
from_postprocessor = average
sampler = mc
[]
[]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
[Mesh]
type = GeneratedMesh
dim = 1
nx = 1
[]

[Variables]
[u]
[]
[]

[Executioner]
type = Steady
[]

[Problem]
solve = false
kernel_coverage_check = false
[StochasticTools]
[]

[Distributions]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
[Mesh]
type = GeneratedMesh
dim = 1
nx = 1
[]

[Variables]
[u]
[]
[]

[Executioner]
type = Steady
[]

[Problem]
solve = false
kernel_coverage_check = false
[StochasticTools]
[]

[Samplers]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
[Mesh]
type = GeneratedMesh
dim = 1
nx = 1
[]

[Variables]
[u]
[]
[]

[Executioner]
type = Steady
[]

[Problem]
solve = false
kernel_coverage_check = false
[StochasticTools]
[]

[Distributions]
Expand Down
19 changes: 1 addition & 18 deletions modules/stochastic_tools/examples/surrogates/poly_chaos_normal.i
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
[Mesh]
type = GeneratedMesh
dim = 1
nx = 1
[]

[Variables]
[u]
[]
[]

[Executioner]
type = Steady
[]

[Problem]
solve = false
kernel_coverage_check = false
[StochasticTools]
[]

[Distributions]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,4 @@
[Mesh]
type = GeneratedMesh
dim = 1
nx = 1
ny = 1
[]

[Variables]
[u]
[]
[]

[Executioner]
type = Steady
[]

[Problem]
solve = false
kernel_coverage_check = false
[StochasticTools]
[]

[Distributions]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,4 @@
[Mesh]
type = GeneratedMesh
dim = 1
nx = 1
ny = 1
[]

[Variables]
[u]
[]
[]

[Executioner]
type = Steady
[]

[Problem]
solve = false
kernel_coverage_check = false
[StochasticTools]
[]

[Distributions]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
[Mesh]
type = GeneratedMesh
dim = 1
nx = 1
[]

[Variables]
[u]
[]
[]

[Executioner]
type = Steady
[]

[Problem]
solve = false
kernel_coverage_check = false
[StochasticTools]
[]

[Distributions]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,4 @@
[Mesh]
type = GeneratedMesh
dim = 1
nx = 1
ny = 1
[]

[Variables]
[u]
[]
[]

[Executioner]
type = Steady
[]

[Problem]
solve = false
kernel_coverage_check = false
[StochasticTools]
[]

[Distributions]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,4 @@
[Mesh]
type = GeneratedMesh
dim = 1
nx = 1
ny = 1
[]

[Variables]
[u]
[]
[]

[Executioner]
type = Steady
[]

[Problem]
solve = false
kernel_coverage_check = false
[StochasticTools]
[]

[Distributions]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
[Mesh]
type = GeneratedMesh
dim = 1
nx = 1
ny = 1
[]

[Variables]
[u]
[]
[StochasticTools]
[]

[Distributions]
Expand Down Expand Up @@ -42,15 +33,6 @@
[]
[]

[Executioner]
type = Steady
[]

[Problem]
solve = false
kernel_coverage_check = false
[]

[Outputs]
execute_on = 'INITIAL'
csv = true
Expand Down
20 changes: 1 addition & 19 deletions modules/stochastic_tools/test/tests/distributions/boost_normal.i
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
[Mesh]
type = GeneratedMesh
dim = 1
nx = 1
ny = 1
[]

[Variables]
[u]
[]
[StochasticTools]
[]

[Distributions]
Expand Down Expand Up @@ -42,15 +33,6 @@
[]
[]

[Executioner]
type = Steady
[]

[Problem]
solve = false
kernel_coverage_check = false
[]

[Outputs]
execute_on = 'INITIAL'
csv = true
Expand Down
Loading

0 comments on commit 908f276

Please sign in to comment.