comparison +grid/Curvilinear.m @ 448:692bf61385c0 feature/grids

Better error message
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 09 May 2017 14:47:52 +0200
parents 4f935415700e
children
comparison
equal deleted inserted replaced
447:ae15b72c16c1 448:692bf61385c0
17 xi = varargin; 17 xi = varargin;
18 obj.logic = grid.Cartesian(xi{:}); 18 obj.logic = grid.Cartesian(xi{:});
19 19
20 % If mapping is a function evaluate it 20 % If mapping is a function evaluate it
21 if isa(mapping, 'function_handle') 21 if isa(mapping, 'function_handle')
22 if nargin(mapping) ~= length(varargin)
23 error('The dimension of the mapping does not match the dimension of the logical coordinates')
24 end
22 mapping = grid.evalOn(obj.logic, mapping); 25 mapping = grid.evalOn(obj.logic, mapping);
23 end 26 end
24 27
25 D = obj.logic.D(); 28 D = obj.logic.D();
26 N = obj.logic.N(); 29 N = obj.logic.N();