Skip to content

Is it possible to pass vector parameters using equation_systems.parameters.set #3724

Answered by jwpeterson
nuomi68 asked this question in Q&A
Discussion options

You must be logged in to vote

Is it possible to pass vector parameters using equation_systems.parameters.set, and if so, how?

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 of System::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 on EquationSystems object via the set() API and is less flexible. See systems_of_equations_ex6 and ex9 for examples of using System::attach_assemble_object().

What does the get_solution (std::vector & soln,std::vectorstd::string & names) funct…

Replies: 2 comments 2 replies

Comment options

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

Answer selected by nuomi68
Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants