Mercurial > repos > public > sbplib
annotate assertIsMember.m @ 835:008496ca38f3 feature/burgers1d
Compute the residual in between each runge-kutta stage.
Note: It is not clear whether the correct residual is used when computing the stages. Must investigate further.
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Thu, 13 Sep 2018 18:14:54 +0200 |
parents | c596122374df |
children |
rev | line source |
---|---|
775
c596122374df
Add a few assert functions
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
1 function assertIsMember(v, allowed) |
c596122374df
Add a few assert functions
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
2 assert(ismember(v, allowed), 'Expected ''%s'' to be in the set %s', inputname(1), toString(allowed)); |
c596122374df
Add a few assert functions
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
3 end |