Mercurial > repos > public > sbplib
comparison +scheme/Elastic2dVariable.m @ 1283:70939ea9a71f feature/poroelastic
Bugfix in Elastic2dVariable
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Tue, 23 Jun 2020 13:31:01 -0700 |
parents | d9da4c1cdaa0 |
children | 60c875c18de3 |
comparison
equal
deleted
inserted
replaced
1282:a52033540dd9 | 1283:70939ea9a71f |
---|---|
196 e2_n = (e_scalar_n'*E{2}')'; | 196 e2_n = (e_scalar_n'*E{2}')'; |
197 | 197 |
198 | 198 |
199 % D2 | 199 % D2 |
200 for i = 1:dim | 200 for i = 1:dim |
201 obj.D2_lambda{i} = sparse(m_tot); | 201 obj.D2_lambda{i} = sparse(m_tot, m_tot); |
202 obj.D2_mu{i} = sparse(m_tot); | 202 obj.D2_mu{i} = sparse(m_tot, m_tot); |
203 end | 203 end |
204 ind = grid.funcToMatrix(g, 1:m_tot); | 204 ind = grid.funcToMatrix(g, 1:m_tot); |
205 | 205 |
206 for i = 1:m(2) | 206 for i = 1:m(2) |
207 D_lambda = D2{1}(lambda(ind(:,i))); | 207 D_lambda = D2{1}(lambda(ind(:,i))); |