diff --git a/test/tests/postprocessors/extreme_value.i b/test/tests/postprocessors/extreme_value.i new file mode 100644 index 0000000..3616a80 --- /dev/null +++ b/test/tests/postprocessors/extreme_value.i @@ -0,0 +1,51 @@ +[Domain] + dim = 2 + nx = 40 + ny = 40 + mesh_mode = DUMMY + device_names = cpu +[] + +[TensorBuffers] + [c] + [] +[] + +[TensorComputes] + [Initialize] + [c] + type = ParsedCompute + buffer = c + extra_symbols = true + expression = -x+y + [] + [] +[] + +[Postprocessors] + [min_c] + type = TensorExtremeValuePostprocessor + buffer = c + value_type = MIN + execute_on = 'TIMESTEP_END' + [] + [max_c] + type = TensorExtremeValuePostprocessor + buffer = c + value_type = MAX + execute_on = 'TIMESTEP_END' + [] +[] + +[Problem] + type = TensorProblem +[] + +[Executioner] + type = Transient + num_steps = 1 +[] + +[Outputs] + csv = true +[] diff --git a/test/tests/postprocessors/gold/extreme_value_out.csv b/test/tests/postprocessors/gold/extreme_value_out.csv new file mode 100644 index 0000000..79443f3 --- /dev/null +++ b/test/tests/postprocessors/gold/extreme_value_out.csv @@ -0,0 +1,3 @@ +time,max_c,min_c +0,0,0 +1,0.975,-0.975 diff --git a/test/tests/postprocessors/tests b/test/tests/postprocessors/tests new file mode 100644 index 0000000..5e6d541 --- /dev/null +++ b/test/tests/postprocessors/tests @@ -0,0 +1,9 @@ +[Tests] + [extreme_value] + type = CSVDiff + input = extreme_value.i + csvdiff = extreme_value_out.csv + requirement = 'The system shall be able to determine the minimum and maximum item value in a tensor.' + issues = '#6' + design = 'TensorExtremeValuePostprocessor.md' + []