Mercurial > repos > public > sbplib
changeset 25:791decafe6e4
Made calculateSolution save the discretization instead of a handle to contructor.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 25 Sep 2015 14:51:18 +0200 |
parents | 986e3efd8543 |
children | ed6a704b028d |
files | +noname/calculateSolution.m |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
diff -r 986e3efd8543 -r 791decafe6e4 +noname/calculateSolution.m --- a/+noname/calculateSolution.m Fri Sep 25 14:50:01 2015 +0200 +++ b/+noname/calculateSolution.m Fri Sep 25 14:51:18 2015 +0200 @@ -44,7 +44,7 @@ % Do we want to to save the initial conditions? if T(1) == 0 snapshot = discr.getTimeSnapshot(0); - saveToFile(sf, method, order(i), m(j),T(1), snapshot, NaN, NaN, discrHand); + saveToFile(sf, method, order(i), m(j),T(1), snapshot, NaN, NaN, discr); T(1) = []; end @@ -63,7 +63,7 @@ ts.stepN(end_step-ts.n,true); runtime = runtime + toc(clock_start); snapshot = discr.getTimeSnapshot(ts); - saveToFile(sf, method, order(i), m(j),T(l), snapshot, runtime, k, discrHand); + saveToFile(sf, method, order(i), m(j),T(l), snapshot, runtime, k, discr); fprintf('Done! (%.3fs)\n',runtime); end else @@ -76,7 +76,7 @@ [v,t] = ts.stepN(N-ts.n,true); runtime = toc(clock_start); snapshot = discr.getTimeSnapshot(ts); - saveToFile(sf, method, order(i), m(j),T(l), snapshot, runtime, k, discrHand); + saveToFile(sf, method, order(i), m(j),T(l), snapshot, runtime, k, discr); fprintf('Done! (%.3fs)\n',runtime); end @@ -87,7 +87,7 @@ end -function saveToFile(sf, method, order, m, T, snapshot, runtime, k, discrHand) +function saveToFile(sf, method, order, m, T, snapshot, runtime, k, discr) key.method = method; key.order = order; key.m = m; @@ -96,7 +96,7 @@ entry.repr = snapshot; entry.runtime = runtime; entry.k = k; - entry.discrHand = discrHand; + entry.discr = discr; sf.store(key,entry); end