comparison +noname/calcSol.m @ 427:a613960a157b feature/quantumTriangles

merged with feature/beams
author Ylva Rydin <ylva.rydin@telia.com>
date Thu, 26 Jan 2017 15:59:25 +0100
parents 127e562bd6d3
children
comparison
equal deleted inserted replaced
426:29944ea7674b 427:a613960a157b
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