Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Reporter error handling, simplify get/declare #17605

Closed
loganharbour opened this issue Apr 14, 2021 · 0 comments · Fixed by #17527
Closed

Improve Reporter error handling, simplify get/declare #17605

loganharbour opened this issue Apr 14, 2021 · 0 comments · Fixed by #17527
Labels
C: Framework P: normal A defect affecting operation with a low possibility of significantly affects. T: task An enhancement to the software.

Comments

@loganharbour
Copy link
Member

Reason

The Reporter system could benefit from a variety of enhancements.

Design

  • Declare Reporter values for Postprocessors and VectorPostprocessors in the objects themselves, removing the need for things like SetupPostprocessorDataAction
  • Store producer and consumer MooseObjects in the ReporterState itself so that we can report better errors when things weren't produced, or things were requested/declared with the same name and same type
  • Keep track of the state when a Reporter is actually declared a Postprocessor or VectorPostprocessor, both for output and error handling
  • Add checking on type when declaring/requesting Reporters

Impact

Will enhance public APIs and add more usable errors. Should not effect the use of the system.

@loganharbour loganharbour added C: Framework T: task An enhancement to the software. P: normal A defect affecting operation with a low possibility of significantly affects. labels Apr 14, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 14, 2021
- Declare Reporter values for PPs and VPPs within the objects themselves
- Add type checking on declare/request for Reporters with the same name
- Add producer/consumer MooseObject ptrs in ReporterState
- Add getter for information about a Reporter (type, producers, consumers,
  context, modes)
- Add more error handling to ReporterData, Reporter, and ReporterInterface

refs idaholab#17512 idaholab#17605
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 14, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 14, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 14, 2021
- Declare Reporter values for PPs and VPPs within the objects themselves
- Add type checking on declare/request for Reporters with the same name
- Add producer/consumer MooseObject ptrs in ReporterState
- Add getter for information about a Reporter (type, producers, consumers,
  context, modes)
- Add more error handling to ReporterData, Reporter, and ReporterInterface

refs idaholab#17512 idaholab#17605
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 14, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 14, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 17, 2021
- Declare Reporter values for PPs and VPPs within the objects themselves
- Add type checking on declare/request for Reporters with the same name
- Add producer/consumer MooseObject ptrs in ReporterState
- Add getter for information about a Reporter (type, producers, consumers,
  context, modes)
- Add more error handling to ReporterData, Reporter, and ReporterInterface

refs idaholab#17512 idaholab#17605
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 17, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 17, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 18, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 19, 2021
- Declare Reporter values for PPs and VPPs within the objects themselves
- Add type checking on declare/request for Reporters with the same name
- Add producer/consumer MooseObject ptrs in ReporterState
- Add getter for information about a Reporter (type, producers, consumers,
  context, modes)
- Add more error handling to ReporterData, Reporter, and ReporterInterface

refs idaholab#17512 idaholab#17605
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 19, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 19, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 19, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 21, 2021
- Declare Reporter values for PPs and VPPs within the objects themselves
- Add type checking on declare/request for Reporters with the same name
- Add producer/consumer MooseObject ptrs in ReporterState
- Add getter for information about a Reporter (type, producers, consumers,
  context, modes)
- Add more error handling to ReporterData, Reporter, and ReporterInterface

refs idaholab#17512 idaholab#17605
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 21, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 21, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 21, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 21, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 21, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 21, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 21, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 21, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 27, 2021
- Declare Reporter values for PPs and VPPs within the objects themselves
- Add type checking on declare/request for Reporters with the same name
- Add producer/consumer MooseObject ptrs in ReporterState
- Add getter for information about a Reporter (type, producers, consumers,
  context, modes)
- Add more error handling to ReporterData, Reporter, and ReporterInterface

refs idaholab#17512 idaholab#17605
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 27, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 27, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 27, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 27, 2021
somu15 pushed a commit to somu15/moose that referenced this issue May 15, 2021
- Declare Reporter values for PPs and VPPs within the objects themselves
- Add type checking on declare/request for Reporters with the same name
- Add producer/consumer MooseObject ptrs in ReporterState
- Add getter for information about a Reporter (type, producers, consumers,
  context, modes)
- Add more error handling to ReporterData, Reporter, and ReporterInterface

refs idaholab#17512 idaholab#17605
somu15 pushed a commit to somu15/moose that referenced this issue May 15, 2021
somu15 pushed a commit to somu15/moose that referenced this issue May 15, 2021
somu15 pushed a commit to somu15/moose that referenced this issue May 15, 2021
somu15 pushed a commit to somu15/moose that referenced this issue May 15, 2021
aeslaughter pushed a commit to aeslaughter/moose that referenced this issue Jun 2, 2021
- Declare Reporter values for PPs and VPPs within the objects themselves
- Add type checking on declare/request for Reporters with the same name
- Add producer/consumer MooseObject ptrs in ReporterState
- Add getter for information about a Reporter (type, producers, consumers,
  context, modes)
- Add more error handling to ReporterData, Reporter, and ReporterInterface

refs idaholab#17512 idaholab#17605
aeslaughter pushed a commit to aeslaughter/moose that referenced this issue Jun 2, 2021
aeslaughter pushed a commit to aeslaughter/moose that referenced this issue Jun 2, 2021
aeslaughter pushed a commit to aeslaughter/moose that referenced this issue Jun 2, 2021
aeslaughter pushed a commit to aeslaughter/moose that referenced this issue Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Framework P: normal A defect affecting operation with a low possibility of significantly affects. T: task An enhancement to the software.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant