comparison +multiblock/Grid.m @ 216:8b10476b9bb7 feature/beams

multiblock: Fixed some problems in DiffOp and Grid.
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 22 Jun 2016 14:44:03 +0200
parents 6fb354955c37
children b8ee5212f651
comparison
equal deleted inserted replaced
215:7bb2ef637142 216:8b10476b9bb7
60 function gfs = splitFunc(obj, gf) 60 function gfs = splitFunc(obj, gf)
61 nComponents = length(gf)/obj.nPoints; 61 nComponents = length(gf)/obj.nPoints;
62 nBlocks = length(obj.grids); 62 nBlocks = length(obj.grids);
63 63
64 % Collect number of points in each block 64 % Collect number of points in each block
65 N = cell(1,nBlocks); 65 N = zeros(1,nBlocks);
66 for i = 1:nBlocks 66 for i = 1:nBlocks
67 N{i} = obj.grids{i}.N(); 67 N(i) = obj.grids{i}.N();
68 end 68 end
69 69
70 gfs = mat2cell(gf, N, 1); 70 gfs = mat2cell(gf, N, 1);
71 end 71 end
72 72