overwrite default value of base class parameter within derived class #28743
Answered
by
GiudGiud
arndflatten
asked this question in
Q&A General
-
Check these boxes if you have followed the posting rules.
QuestionSome class My subclass B wants to make this I tried
but this doesn't take the newDefaultValue when i omit to define the pName in the input file. What am I missing out? |
Beta Was this translation helpful? Give feedback.
Answered by
GiudGiud
Oct 1, 2024
Replies: 1 comment 2 replies
-
in the validParams, you can re-add the parameter with a valid value
The if condition you have there should not be necessary. isParamSetByUser is not meant for use in validParams |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
arndflatten
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in the validParams, you can re-add the parameter with a valid value
The if condition you have there should not be necessary.
isParamSetByUser is not meant for use in validParams