| 321 | } |
| 322 | |
| 323 | void |
| 324 | LagrangeMP_FE::determineTangent(void) |
| 325 | { |
| 326 | const Matrix &constraint = theMP->getConstraint(); |
| 327 | int noRows = constraint.noRows(); |
| 328 | int noCols = constraint.noCols(); |
| 329 | int n = noRows+noCols; |
| 330 | |
| 331 | tang->Zero(); |
| 332 | |
| 333 | for (int j=0; j<noRows; j++) { |
| 334 | (*tang)(n+j, j) = -alpha; |
| 335 | (*tang)(j, n+j) = -alpha; |
| 336 | } |
| 337 | |
| 338 | for (int i=0; i<noRows; i++) |
| 339 | for (int j=0; j<noCols; j++) { |
| 340 | double val = constraint(i,j) * alpha; |
| 341 | (*tang)(n+i, j+noRows) = val; |
| 342 | (*tang)(noRows+j, n+i) = val; |
| 343 | } |
| 344 | } |
| 345 | |
| 346 | |
| 347 |
no test coverage detected