Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

I couldn't reproduce this error (tried with Visual Studio 2022), it compiled just fine.

The error message you posted is a bit strange. So the compiler expected a function that takes 2 arguments for some reason, but we call it providing 3 (line 500):

jac(J, xk, state.t);

Here jac is the Jacobian class functor, which is defined in the example source file (simple_dae.cpp), lines 101-107:

void operator()(sparse_matrix &J, const state_vector &x, const double t)
{
    ...
}

So it does have 3 parameters.

Just a few questions so I could reproduce the issue:

  • Did you modify anything in the example source code or in the solver source code, and if yes, what are the changes?
  • Is it the latest dae-cpp …

Replies: 2 comments 4 replies

Comment options

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

Answer selected by plinden4
Comment options

You must be logged in to vote
3 replies
@plinden4
Comment options

@ikorotkin
Comment options

@plinden4
Comment options

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