comparison +noname/calcSol.m @ 425:e56dbd9e4196 feature/grids

Merge feature/beams
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 07 Feb 2017 16:09:02 +0100
parents 127e562bd6d3
children
comparison
equal deleted inserted replaced
423:a2cb0d4f4a02 425:e56dbd9e4196
1 % Calculates the solution of a discr at a given time using aligned timesteps.
2 % Returns the solution as a grid function as defined in +grid
3 function gf = calculateSolution(discr, T, tsOpt)
4 k_max = discr.getTimestep(tsOpt);
5 [k,N] = alignedTimestep(k_max,T);
6 tsOpt.k = k;
7 ts = discr.getTimestepper(tsOpt);
8
9 gf = ts.stepN(N-ts.n);
10 end