Rationalisation of the ODE solvers library

This commit is contained in:
Henry
2013-10-31 23:51:16 +00:00
parent 30db0da817
commit dedfb01ada
14 changed files with 598 additions and 438 deletions

View File

@ -29,7 +29,6 @@ Description
#include "IOmanip.H"
#include "ODESystem.H"
#include "ODESolver.H"
#include "RK.H"
using namespace Foam;
@ -137,11 +136,10 @@ int main(int argc, char *argv[])
scalarField y(yStart);
scalarField dydx(dyStart);
scalarField yScale(ode.nEqns(), 1.0);
scalar hEst = 0.6;
scalar hDid, hNext;
odeSolver->solve(ode, x, y, dydx, eps, yScale, hEst, hDid, hNext);
odeSolver->solve(ode, x, y, dydx, eps, hEst, hDid, hNext);
Info<< scientific << setw(13) << eps;
Info<< fixed << setw(11) << hEst;