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

The Reporter system does not support getting a value before it is declared #17468

Closed
aeslaughter opened this issue Mar 30, 2021 · 3 comments · Fixed by #17485
Closed

The Reporter system does not support getting a value before it is declared #17468

aeslaughter opened this issue Mar 30, 2021 · 3 comments · Fixed by #17485
Assignees
Labels
C: Framework P: minor A defect that does not affect the accuracy of results. T: defect An anomaly, which is anything that deviates from expectations.

Comments

@aeslaughter
Copy link
Contributor

aeslaughter commented Mar 30, 2021

Bug Description

If a ReporterValue is declared in initialSetup a reference cannot be defined in another objects constructor.

Steps to Reproduce

A test showing the problem will be added to this Issue.

see aeslaughter@321469c

Impact

Reduces the flexibility of the Reporter system.

@aeslaughter aeslaughter added the T: defect An anomaly, which is anything that deviates from expectations. label Mar 30, 2021
aeslaughter added a commit to aeslaughter/moose that referenced this issue Mar 31, 2021
@aeslaughter
Copy link
Contributor Author

@zachmprince Is the solution as simple as running the Reporter check after initialSetup is complete?

@zachmprince
Copy link
Contributor

@aeslaughter Yep, doing ReporterData::check() right after UserObject::initialSetup() worked.

zachmprince pushed a commit to zachmprince/moose that referenced this issue Apr 1, 2021
zachmprince added a commit to zachmprince/moose that referenced this issue Apr 1, 2021
zachmprince added a commit to zachmprince/moose that referenced this issue Apr 1, 2021
zachmprince pushed a commit to zachmprince/moose that referenced this issue Apr 1, 2021
zachmprince added a commit to zachmprince/moose that referenced this issue Apr 1, 2021
zachmprince added a commit to zachmprince/moose that referenced this issue Apr 1, 2021
@aeslaughter aeslaughter added the P: minor A defect that does not affect the accuracy of results. label Apr 12, 2021
zachmprince pushed a commit to zachmprince/moose that referenced this issue Apr 16, 2021
zachmprince added a commit to zachmprince/moose that referenced this issue Apr 16, 2021
zachmprince added a commit to zachmprince/moose that referenced this issue Apr 16, 2021
aeslaughter added 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
@lindsayad
Copy link
Member

lindsayad commented Dec 5, 2022

So we have code in moose that declares reporter values in initialSetup?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Framework P: minor A defect that does not affect the accuracy of results. T: defect An anomaly, which is anything that deviates from expectations.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants