Mercurial > repos > public > sbplib
comparison +grid/Curvilinear.m @ 381:d32c749408cb feature/beams
Better error message.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 02 Jan 2017 09:07:49 +0100 |
parents | 30321dc180e1 |
children | 4f935415700e |
comparison
equal
deleted
inserted
replaced
380:280ae4dbf93b | 381:d32c749408cb |
---|---|
30 if iscell(mapping) | 30 if iscell(mapping) |
31 obj.coords = cellMappingToCoords(mapping, N, D, obj.logic.m); | 31 obj.coords = cellMappingToCoords(mapping, N, D, obj.logic.m); |
32 elseif isnumeric(mapping) | 32 elseif isnumeric(mapping) |
33 obj.coords = matrixMappingToCoords(mapping, N, D); | 33 obj.coords = matrixMappingToCoords(mapping, N, D); |
34 else | 34 else |
35 error('grid:Curvilinear:Curvilinear','mapping must be a matrix or a cell array.'); | 35 error('grid:Curvilinear:Curvilinear','mapping must be a function handle, a matrix or a cell array.'); |
36 end | 36 end |
37 end | 37 end |
38 | 38 |
39 function m = size(obj) | 39 function m = size(obj) |
40 m = obj.logic.size(); | 40 m = obj.logic.size(); |