comparison +noname/calcSol.m @ 820:501750fbbfdb

Merge with feature/grids
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 07 Sep 2018 14:40:58 +0200
parents 127e562bd6d3
children
comparison
equal deleted inserted replaced
819:fdf0ef9150f4 820:501750fbbfdb
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