Is it possible to pass vector parameters using equation_systems.parameters.set #3724
-
Is it possible to pass vector parameters using equation_systems.parameters.set, and if so, how? Are there any examples? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I don't think it's possible. If you want to pass more than scalar integer or floating point values to your Assembly routine, you should consider using the
|
Beta Was this translation helpful? Give feedback.
-
We do have |
Beta Was this translation helpful? Give feedback.
I don't think it's possible. If you want to pass more than scalar integer or floating point values to your Assembly routine, you should consider using the
System::attach_assemble_object()
API instead ofSystem::attach_assemble_function()
. The former allows you to define a C++ class with any contents you like, while the latter requires you to store data onEquationSystems
object via theset()
API and is less flexible. See systems_of_equations_ex6 and ex9 for examples of usingSystem::attach_assemble_object()
.