Setup Storage, ITimeStepping and ISolver. Then:
for (
Float t = t_start; t < t_end; t += dt) {
}
}
double Float
Precision used withing the code. Use Float instead of float or double where precision is important.
AutoPtr< ITimeStepping > timeStepping
Timestepping.
Statistics run(Storage &storage)
Runs the simulation.
AutoPtr< ISolver > solver
Solver.
void step(IScheduler &scheduler, ISolver &solver, Statistics &stats)
Performs the time integration.
Computes temporal derivatives of all quantities.