Mercurial > repos > public > sbplib
annotate timeTask.m @ 1031:2ef20d00b386 feature/advectionRV
For easier comparison, return both the first order and residual viscosity when evaluating the residual. Add the first order and residual viscosity to the state of the RungekuttaRV time steppers
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Thu, 17 Jan 2019 10:25:06 +0100 |
parents | 1afd33f719df |
children |
rev | line source |
---|---|
391
1afd33f719df
Allow formats for timeTask.
Jonatan Werpers <jonatan@werpers.com>
parents:
358
diff
changeset
|
1 function done = timeTask(fmt, varargin) |
1afd33f719df
Allow formats for timeTask.
Jonatan Werpers <jonatan@werpers.com>
parents:
358
diff
changeset
|
2 fprintf(fmt, varargin{:}); |
358
5cb99f56f55e
Added some utility functions. Improved some documentation.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
3 tStart = tic; |
5cb99f56f55e
Added some utility functions. Improved some documentation.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
4 |
5cb99f56f55e
Added some utility functions. Improved some documentation.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
5 function done_fun() |
5cb99f56f55e
Added some utility functions. Improved some documentation.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
6 fprintf(' - done %fs\n', toc(tStart)); |
5cb99f56f55e
Added some utility functions. Improved some documentation.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
7 end |
5cb99f56f55e
Added some utility functions. Improved some documentation.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
8 done = @done_fun; |
5cb99f56f55e
Added some utility functions. Improved some documentation.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
9 end |