view +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 source

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