Mercurial > repos > public > sbplib
diff +grid/Curvilinear.m @ 707:0de70ec8bf60 feature/quantumTriangles
merge with feature/optim
author | Ylva Rydin <ylva.rydin@telia.com> |
---|---|
date | Fri, 10 Nov 2017 14:22:56 +0100 |
parents | 692bf61385c0 |
children |
line wrap: on
line diff
--- a/+grid/Curvilinear.m Thu Oct 05 18:04:23 2017 +0200 +++ b/+grid/Curvilinear.m Fri Nov 10 14:22:56 2017 +0100 @@ -19,6 +19,9 @@ % If mapping is a function evaluate it if isa(mapping, 'function_handle') + if nargin(mapping) ~= length(varargin) + error('The dimension of the mapping does not match the dimension of the logical coordinates') + end mapping = grid.evalOn(obj.logic, mapping); end