Skip to content

Commit

Permalink
Merge pull request #56 from TNO/52-bugfixes-for-depth-dependent-elast…
Browse files Browse the repository at this point in the history
…ic-parameters

Make stiffness matrix square when elastic input is depth dependent.
  • Loading branch information
VvanderHeiden authored Sep 6, 2024
2 parents 9edc7b0 + d34b71e commit 6940fb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/calculator/FaultSlip.m
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@
nx = length(L);
Kline = -nx/(2*pi*(L(1)-L(end))) ./ ( [0:nx-1]'.^2-0.25 );
Ko = toeplitz(Kline);
% K = mu_II.*Ko;
K = Ko*mu_II;
K(and(K<0,K>(min(min(K)/10000)))) = 0; % set very small changes to 0 to avoid continued interactions of the two peaks to
% K = Ko*mu_II; % if stiffness not depth dependent
K = Ko .* mu_II'; % take depth dependent stiffness into account
K(and(K<0,K>(min(min(K)/10000)))) = 0; % set very small changes to 0 to avoid continued interactions of the two peaks to
end


Expand Down

0 comments on commit 6940fb4

Please sign in to comment.