Mercurial > repos > public > sbplib
comparison +noname/calcSol.m @ 832:5573913a0949 feature/burgers1d
Merged with default, and updated +scheme/Burgers1D accordingly
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Tue, 11 Sep 2018 15:58:35 +0200 |
parents | 127e562bd6d3 |
children |
comparison
equal
deleted
inserted
replaced
831:d0934d1143b7 | 832:5573913a0949 |
---|---|
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 |