Skip to content
Snippets Groups Projects
Commit aeb7602f authored by tokies's avatar tokies
Browse files

* Added error message to lagrangeBasis (in case invalid parameters are supplied).

parent 58026b82
Branches
No related tags found
No related merge requests found
......@@ -20,6 +20,9 @@ function B = lagrangeBasis(dim, order)
'order', @(grid, elementIndex)(1),...
'index', @P1Index,...
'size', @(grid)(size(grid.nodes,2)));
else
error( 'The chosen parameters (dim=%d, order=%d) are not supported.', ...
dim, order );
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment