Skip to content

Errors With Declarations #28888

Answered by GiudGiud
TLWise asked this question in Q&A General
Oct 18, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

the error here

invalid initialization of reference of type 'const VariableValue&' {aka 'const MooseArray&'} from expression of type 'Moose::Functor'

says that you have _vel_x as a variable value, which you can initialize with coupledValue from the Coupleable interface.
But you are trying to initialize it with getFunctor, which is meant for retrieving references to functors

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@GiudGiud
Comment options

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