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

fix parsedMaterial error message #29082

Open
lynnmunday opened this issue Nov 15, 2024 · 0 comments · May be fixed by #29083
Open

fix parsedMaterial error message #29082

lynnmunday opened this issue Nov 15, 2024 · 0 comments · May be fixed by #29083
Labels
T: task An enhancement to the software.

Comments

@lynnmunday
Copy link
Contributor

Motivation

I kept getting this error message:
*** ERROR ***
The parameter vectors constant_names (size 1) and constant_values (size 0) must have equal length.

I could not figure out where this was coming from because in my material i had constant_values defined:
My material looked like this:
[force_mat]
type = ParsedMaterial
property_name = force_mat
constant_names = 'omega'
constant_values = '${omega}'
expression = 'rho * omega * cp'
material_property_names = 'rho cp'
[]

But then I realized the error message should say constant_expressions instead of onstant_values

Design

change all occurences of constant_values to constant_expressions in FunctionParserUtils.C

Impact

Error message will specify the actual input variable that is causing the problems.

@lynnmunday lynnmunday added the T: task An enhancement to the software. label Nov 15, 2024
lynnmunday added a commit to lynnmunday/moose that referenced this issue Nov 15, 2024
@lynnmunday lynnmunday linked a pull request Nov 15, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: task An enhancement to the software.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant