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

getCheckedPointerParam in MooseObject #10356

Closed
andrsd opened this issue Dec 5, 2017 · 0 comments
Closed

getCheckedPointerParam in MooseObject #10356

andrsd opened this issue Dec 5, 2017 · 0 comments
Labels
C: Framework P: normal A defect affecting operation with a low possibility of significantly affects. T: task An enhancement to the software.

Comments

@andrsd
Copy link
Contributor

andrsd commented Dec 5, 2017

Rationale

Like we have getParam, we should have getCheckedPointerParam so MooseObject-derived classes can use it without touching parameters directly.

Description

Add getCheckedPointerParam to MooseObject. I will access input parameters of the MooseObject-derived class.

Impact

Enhancing API, providing a way to check that pointers are actually valid and preventing segfaults, i.e. increasing code robustness.

andrsd added a commit to andrsd/moose that referenced this issue Dec 5, 2017
Just like we have getParam, we should have getCheckedPointerParam. Apps
will like it.

Closes idaholab#10356
andrsd added a commit to andrsd/moose that referenced this issue Dec 5, 2017
Just like we have getParam, we should have getCheckedPointerParam. Apps
will like it.

Closes idaholab#10356
@permcody permcody added C: Framework P: normal A defect affecting operation with a low possibility of significantly affects. T: task An enhancement to the software. labels Dec 5, 2017
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

2 participants