forked from idaholab/moose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tests
129 lines (121 loc) · 4.72 KB
/
tests
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[Tests]
issues = '#1927'
design = 'syntax/Outputs/index.md outputs/CSV.md'
[steady]
type = CSVDiff
input = 'csv.i'
csvdiff = 'csv_out.csv'
requirement = "The system shall support the output of postprocessors and scalars to CSV files "
"for steady state problems."
[]
[transient]
type = CSVDiff
input = 'csv_transient.i'
csvdiff = 'csv_transient_out.csv'
# The SumNodalValuesAux postprocessor currently is unreliable at
# high processor counts; see
# https://github.com/idaholab/moose/issues/9026
max_parallel = 1
requirement = "The system shall support the output of postprocessors and scalars to CSV files "
"for transient propblems."
[]
[no_time]
type = CSVDiff
input = 'csv_no_time.i'
csvdiff = 'csv_no_time_out.csv'
# SumNodalValuesAux is unreliable at high processor counts
max_parallel = 1
requirement = "The system shall support the output of postprocessors and scalars to CSV files "
"for transient problems without a time column."
[]
[transient_exodus]
type = Exodiff
input = 'csv_transient.i'
exodiff = 'csv_transient_out.e'
cli_args = 'Outputs/csv=false Outputs/exodus=true'
prereq = transient
max_parallel = 1
requirement = "The system shall support the output of postprocessors and scalars to Exodus files "
"for transient problems."
[]
[restart]
requirement = "The system shall support the output of CSV data:"
[restart_part1]
type = CSVDiff
input = csv_restart_part1.i
csvdiff = 'csv_restart_part1_out.csv'
detail = "with checkpoint enabled and"
[]
[restart_part2]
type = CSVDiff
input = csv_restart_part2.i
csvdiff = 'csv_restart_part2_out.csv'
prereq = 'restart/restart_part1'
detail = "when restarted creates a new output file or"
[]
[restart_part2_append]
type = CSVDiff
input = csv_restart_part2.i
csvdiff = 'csv_restart_part2_append_out.csv'
prereq = 'restart/restart_part2'
cli_args = 'Outputs/csv/file_base=csv_restart_part2_append_out Outputs/csv/append_restart=true'
detail = "optionally appends the existing file from the first part."
[]
[]
[align]
# Test the alignment, delimiter, and precision settings
type = CSVDiff
input = csv_align.i
csvdiff = 'csv_align_out.csv'
requirement = "The system shall support CSV output aligned columns and a custom delimiter."
issues = "#3229"
[]
[sort]
# Tests that csv output can be sorted
type = CheckFiles
input = 'csv_sort.i'
check_files = csv_sort_out.csv
file_expect_out = "time,aux0_0,aux0_1,aux1,aux2,num_aux,num_vars"
requirement = "The system shall support CSV output to the console that is sorted by the variable "
"name."
issues = "#8974"
[]
[csv_transient_vpp_linear]
type = CheckFiles
input = 'csv_transient_vpp.i'
check_files = 'csv_transient_vpp_out_nodes_0003_0002_0001.csv'
file_expect_out = 'id,u,x,y,z'
requirement = "The system shall support CSV output to files on linear iterations, generating unique filenames containing the time step, current nonlinear and linear iteration numbers."
issues = "#24705"
[]
[csv_transient_vpp_nonlinear]
type = CheckFiles
input = 'csv_transient_vpp.i'
check_files = 'csv_transient_vpp_out_nodes_0002_0001.csv'
file_expect_out = 'id,u,x,y,z'
cli_args = 'Outputs/out/execute_on=NONLINEAR'
requirement = "The system shall support CSV output to files on nonlinear iterations, generating unique filenames containing the time step and current nonlinear iteration number."
issues = "#24705"
[]
[pp_scalar_execute_on_mismatch]
type = RunException
input = 'csv.i'
cli_args = 'Outputs/csv/execute_postprocessors_on=FINAL'
expect_err = "The parameters 'execute_postprocessors_on', 'execute_scalars_on', and 'execute_reporters_on' must be the same for CSV output"
requirement = "The system shall report an error if post-processors and scalar variables have different CSV output frequency."
issues = "#25211"
[]
[pp_reporter_execute_on_mismatch]
type = RunException
input = 'csv.i'
cli_args = "
Reporters/reporter/type=ConstantReporter
Reporters/reporter/integer_names='value1'
Reporters/reporter/integer_values='5'
Outputs/csv/execute_scalars_on='NONE'
Outputs/csv/execute_reporters_on='FINAL'"
expect_err = "The parameters 'execute_postprocessors_on', 'execute_scalars_on', and 'execute_reporters_on' must be the same for CSV output"
requirement = "The system shall report an error if post-processors and reporters have different CSV output frequency."
issues = "#25211"
[]
[]