Mercurial > repos > public > sbplib
diff +grid/Multiblock.m @ 153:7aee9eba3bb8 feature/grids
Added abstract classes for some different types of grids.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 22 Dec 2015 11:59:55 +0100 |
parents | |
children | cf748f33cd5b |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/+grid/Multiblock.m Tue Dec 22 11:59:55 2015 +0100 @@ -0,0 +1,13 @@ +classdef Grid < grid.Grid + % General multiblock grid + methods (Abstract) + % NBlocks returns the number of blocks in the grid. + o = NBlocks(obj); + + % Grid returns the ith grid in the multiblockgrid + gs = Grid(obj,i); + + % Grids returns a cell array of all the grids in the multiblock grid. + gs = Grids(obj); + end +end \ No newline at end of file