diff +multiblock/Line.m @ 546:19951684588e feature/grids

Add type assertion
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 23 Aug 2017 11:05:35 +0200
parents febd750965c4
children 24b2487b01c2
line wrap: on
line diff
--- a/+multiblock/Line.m	Mon Aug 21 11:20:20 2017 +0200
+++ b/+multiblock/Line.m	Wed Aug 23 11:05:35 2017 +0200
@@ -8,6 +8,7 @@
 
     methods
         function obj = Line(g, gf)
+            assertType(g, 'multiblock.Grid')
             obj.grid = g;
 
             X = obj.grid.splitFunc(obj.grid.points());