Mercurial > repos > public > sbplib
comparison +multiblock/Grid.m @ 733:a55d3c1e1f83 feature/poroelastic
Bugfix in multiblock.Grid.splitFunc, didnt work for vector-valued functions.
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Wed, 25 Apr 2018 14:44:49 -0700 |
parents | b0386d2c180d |
children | 67228a10dfad |
comparison
equal
deleted
inserted
replaced
732:624120275bab | 733:a55d3c1e1f83 |
---|---|
75 nBlocks = length(obj.grids); | 75 nBlocks = length(obj.grids); |
76 | 76 |
77 % Collect number of points in each block | 77 % Collect number of points in each block |
78 N = zeros(1,nBlocks); | 78 N = zeros(1,nBlocks); |
79 for i = 1:nBlocks | 79 for i = 1:nBlocks |
80 N(i) = obj.grids{i}.N(); | 80 N(i) = obj.grids{i}.N()*nComponents; |
81 end | 81 end |
82 | 82 |
83 gfs = blockmatrix.fromMatrix(gf, {N,1}); | 83 gfs = blockmatrix.fromMatrix(gf, {N,1}); |
84 end | 84 end |
85 | 85 |