Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make stiffness matrix square when elastic input is depth dependent. #56

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/calculator/FaultSlip.m
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,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