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

Make interfaces const-correct and use more detailed errors with paramError() #17512

Open
4 tasks
loganharbour opened this issue Apr 5, 2021 · 0 comments
Open
4 tasks
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

loganharbour commented Apr 5, 2021

Reason

I've found quite a few interfaces that aren't const-correct that should be cleaned up (list is still a WIP):

  • UserObjectInterface
  • PostprocessorInterface
  • VectorPostprocessorInterface
  • ReporterInterface

Design

Make these interfaces as const-correct as possible and improve error handling with paramError() where possible.

Impact

Const-correct code is better code, and more detailed errors are better for the end user. May disrupt a few applications with the need to make more methods const, but it's worth it.

@loganharbour loganharbour added T: task An enhancement to the software. P: normal A defect affecting operation with a low possibility of significantly affects. labels Apr 5, 2021
loganharbour added a commit to aprilnovak/moose that referenced this issue Apr 5, 2021
@loganharbour loganharbour changed the title Interfaces need to be const-correct Make interfaces const-correct and use more detailed errors with paramError() Apr 5, 2021
loganharbour added a commit to aprilnovak/moose that referenced this issue Apr 5, 2021
loganharbour added a commit to aprilnovak/moose that referenced this issue Apr 5, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 7, 2021
- Make const-correct where possible
- Use the related object's paramError and mooseError where possible
- Make Reporter more const-correct without the need for a write key
  for the PostprocessorInterface
- Improve the checking of the existance of a postprocessor

Refs idaholab#17512
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 7, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 7, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 7, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 7, 2021
- Make const-correct where possible
- Use the related object's paramError and mooseError where possible
- Make Reporter more const-correct without the need for a write key
  for the PostprocessorInterface
- Improve the checking of the existance of a postprocessor

Refs idaholab#17512
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 7, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 7, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 7, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 7, 2021
- Make const-correct where possible
- Use the related object's paramError and mooseError where possible
- Make Reporter more const-correct without the need for a write key
  for the PostprocessorInterface
- Improve the checking of the existance of a postprocessor

Refs idaholab#17512
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 7, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 7, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 7, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 7, 2021
- Make const-correct where possible
- Use the related object's paramError and mooseError where possible
- Make Reporter more const-correct without the need for a write key
  for the PostprocessorInterface
- Improve the checking of the existance of a postprocessor

Refs idaholab#17512
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 7, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 7, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 7, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 7, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 7, 2021
- Make const-correct where possible
- Use the related object's paramError and mooseError where possible
- Make Reporter more const-correct without the need for a write key
  for the PostprocessorInterface
- Improve the checking of the existance of a postprocessor

Refs idaholab#17512
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 7, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 7, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Apr 7, 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
- Make const-correct where possible
- Use the related object's paramError and mooseError where possible
- Make Reporter more const-correct without the need for a write key
  for the PostprocessorInterface
- Improve the checking of the existance of a postprocessor
- Remove metadata store for postprocessors in InputParameters/Parser
  and instead check on the fly

Refs idaholab#17512
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
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
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
- Use the object's mooseError() and paramError() where possible
- Improve function signatures
- Use error checking in overridden methods

refs idaholab#17512
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
- 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
loganharbour added a commit to loganharbour/moose that referenced this issue Jun 15, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Jun 15, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Aug 24, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Nov 15, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Mar 13, 2022
grmnptr pushed a commit to grmnptr/moose that referenced this issue Mar 29, 2022
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

No branches or pull requests

1 participant