changeset 381:d32c749408cb feature/beams

Better error message.
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 02 Jan 2017 09:07:49 +0100
parents 280ae4dbf93b
children 8b8672134be8
files +grid/Curvilinear.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/+grid/Curvilinear.m	Mon Dec 12 11:35:23 2016 +0100
+++ b/+grid/Curvilinear.m	Mon Jan 02 09:07:49 2017 +0100
@@ -32,7 +32,7 @@
             elseif isnumeric(mapping)
                 obj.coords = matrixMappingToCoords(mapping, N, D);
             else
-                error('grid:Curvilinear:Curvilinear','mapping must be a matrix or a cell array.');
+                error('grid:Curvilinear:Curvilinear','mapping must be a function handle, a matrix or a cell array.');
             end
         end