-
Notifications
You must be signed in to change notification settings - Fork 1k
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 #25371 from joshuahansel/sync-times-object-fix
Fixed sync_times_object in Output
- Loading branch information
Showing
5 changed files
with
85 additions
and
7 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
4 changes: 4 additions & 0 deletions
4
test/tests/outputs/sync_times_object/gold/sync_times_object_out.csv
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,4 @@ | ||
time,current_time | ||
1.1,1.1 | ||
1.5,1.5 | ||
2.3,2.3 |
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,42 @@ | ||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 1 | ||
nx = 1 | ||
[] | ||
|
||
[Postprocessors] | ||
[current_time] | ||
type = TimePostprocessor | ||
execute_on = 'INITIAL TIMESTEP_END' | ||
[] | ||
[] | ||
|
||
[Problem] | ||
solve = false | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
dt = 1 | ||
end_time = 5 | ||
[] | ||
|
||
[Times] | ||
[input_times] | ||
type = InputTimes | ||
times = '1.1 1.5 2.3' | ||
[] | ||
# For the error-check test | ||
[simulation_times] | ||
type = SimulationTimes | ||
[] | ||
[] | ||
|
||
[Outputs] | ||
[out] | ||
type = CSV | ||
sync_only = true | ||
sync_times_object = input_times | ||
execute_reporters_on = 'NONE' | ||
[] | ||
[] |
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,18 @@ | ||
[Tests] | ||
issues = '#25368' | ||
design = 'syntax/Outputs/index.md' | ||
|
||
[sync_times_object] | ||
type = CSVDiff | ||
input = 'sync_times_object.i' | ||
csvdiff = 'sync_times_object_out.csv' | ||
requirement = "The system shall allow output to occur at times provided by a times object." | ||
[] | ||
[sync_times_object_changing_times] | ||
type = RunException | ||
input = 'sync_times_object.i' | ||
cli_args = "Outputs/out/sync_times_object=simulation_times" | ||
expect_err = 'The provided sync times object has changing time values. Only static time values are supported' | ||
requirement = "The system shall report an error if output is specified to use a times object with changing times." | ||
[] | ||
[] |