Commit a9aa58f9 authored by Ferdinand Fischer's avatar Ferdinand Fischer
Browse files

fixed argument validation for femMatrices to allow multplie in- and outputs

parent e345a356
......@@ -37,8 +37,8 @@ arguments
optArgs.alpha quantity.Discrete {mustBe.scalarOrEmpty} = quantity.Discrete.empty(1,0);
optArgs.beta quantity.Discrete {mustBe.scalarOrEmpty} = quantity.Discrete.empty(1,0);
optArgs.gamma quantity.Discrete {mustBe.scalarOrEmpty} = quantity.Discrete.empty(1,0);
optArgs.b quantity.Discrete {mustBe.scalarOrEmpty} = quantity.Discrete.empty(1,0);
optArgs.c quantity.Discrete {mustBe.scalarOrEmpty} = quantity.Discrete.empty(1,0)';
optArgs.b quantity.Discrete = quantity.Discrete.empty(1,0);
optArgs.c quantity.Discrete = quantity.Discrete.empty(1,0)';
optArgs.silent logical = false;
end
......
......@@ -24,8 +24,7 @@ M_ = spatialDomain.stepSize / 6 * ...
1, 4, 1; ...
0, 1, 2];
% TODO check why there is a minus sign!
D2_ = - 1 / spatialDomain.stepSize * ...
D2_ = 1 / spatialDomain.stepSize * ...
[-1 1 0; ...
1 -2 1; ...
0 1 -1];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment