piDoMUS is no longer derived from SundialsInterface #207

Merged
merged 7 commits into from Jul 6, 2016

Projects

None yet

2 participants

@asartori86
Contributor

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 = [...](...) ->...
{
...
};
...
pidomus.run();
@asartori86
Contributor

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
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment