annotate assertLength.m @ 1136:eee71789f13b feature/laplace_curvilinear_test

Add LaplaceCurvilinear schemes where the minimum check will be implemented. The Virta scheme will be used for comparison only.
author Martin Almquist <malmquist@stanford.edu>
date Mon, 10 Jun 2019 10:43:12 +0200
parents 1d70f29c7ab2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
987
1d70f29c7ab2 Add assertLength
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
1 function assertLength(A,l)
1d70f29c7ab2 Add assertLength
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
2 assert(isvector(A), sprintf('Expected ''%s'' to be a vector, got matrix of size %s',inputname(1), toString(size(A))));
1d70f29c7ab2 Add assertLength
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
3 assert(length(A) == l, sprintf('Expected ''%s'' to have length %d, got %d', inputname(1), l, length(A)));
1d70f29c7ab2 Add assertLength
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
4 end