diff +grid/Curvilinear.m @ 704:111fcbcff2e9 feature/optim

merg with featuew grids
author Ylva Rydin <ylva.rydin@telia.com>
date Fri, 03 Nov 2017 10:53:15 +0100
parents 692bf61385c0
children
line wrap: on
line diff
--- a/+grid/Curvilinear.m	Fri Nov 03 10:43:27 2017 +0100
+++ b/+grid/Curvilinear.m	Fri Nov 03 10:53:15 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