changeset 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 624120275bab
children eebe24a636c7
files +multiblock/Grid.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/+multiblock/Grid.m	Wed Apr 25 14:43:58 2018 -0700
+++ b/+multiblock/Grid.m	Wed Apr 25 14:44:49 2018 -0700
@@ -77,7 +77,7 @@
             % Collect number of points in each block
             N = zeros(1,nBlocks);
             for i = 1:nBlocks
-                N(i) = obj.grids{i}.N();
+                N(i) = obj.grids{i}.N()*nComponents;
             end
 
             gfs = blockmatrix.fromMatrix(gf, {N,1});