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

Fixed sign bug in femMatrices

parent 6b930940
......@@ -166,7 +166,7 @@ for k = 1:N-1
% assemble the matrices with the elements:
M(idxk, idxk) = M(idxk, idxk) + M0 * element.diff(k);
K(idxk, idxk) = K(idxk, idxk) + K0 + K1 - K2;
K(idxk, idxk) = K(idxk, idxk) + K0 + K1 + K2;
L(idxk, :) = L(idxk, :) + L0;
P(:, idxk) = P(:, idxk) + P0;
end
......
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