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

Add dummy variable warehouse for Reporters #16886

Closed
loganharbour opened this issue Feb 4, 2021 · 0 comments · Fixed by #16890
Closed

Add dummy variable warehouse for Reporters #16886

loganharbour opened this issue Feb 4, 2021 · 0 comments · Fixed by #16890
Labels
C: Modules 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

MeshInfo stores a dummy variable for use in the initializer list for reporter values that are unused. For cases in which a single Reporter needs to do this with multiple types, it gets messy because you need to create a bunch of dummy variables.

Design

Add a declareDummyValue<T>() method to Reporter that will hand out dummy, default constructed values.

Impact

Better API.

@loganharbour loganharbour added T: task An enhancement to the software. P: normal A defect affecting operation with a low possibility of significantly affects. C: Modules labels Feb 4, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Feb 4, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Feb 4, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Feb 5, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Feb 5, 2021
loganharbour added a commit to loganharbour/moose that referenced this issue Feb 5, 2021
jain651 pushed a commit to jain651/moose that referenced this issue Apr 19, 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: Modules 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