Skip to content

overwrite default value of base class parameter within derived class #28743

Discussion options

You must be logged in to vote

in the validParams, you can re-add the parameter with a valid value

params.addParam<param_type (same as before!)>("pName", newDefaultvalue, "Description");

The if condition you have there should not be necessary.

isParamSetByUser is not meant for use in validParams

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@arndflatten
Comment options

@GiudGiud
Comment options

Answer selected by arndflatten
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants