piDoMUS is no longer derived from SundialsInterface #207

merged 7 commits into from Jul 6, 2016


None yet

2 participants


IMEX and IDA have public std::functions that must be implemented by the user. I've added a class named Lambdas (better name suggestions?) which implements all the std::functions (e.g., residual, setup_jacobian, solve_linear_system,...) and by defaults these functions call the namesake functions of piDoMUS. This allows greater flexibility. Indeed, when the signals are not enough, a specific function can be completly rewritten as follows

Interface<2,2> problem();
piDoMUS<2,2> pidomus("pidomus",problem);
pidomus.lambdas.setup_jacobian = [...](...) ->...

PR mathLab/deal2lkit#331 is required

@luca-heltai luca-heltai merged commit 3d3c2e4 into mathLab:master Jul 6, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment