| 64 | namespace tri { |
| 65 | |
| 66 | double shapeFun(double x, double y, int i) { |
| 67 | if (i == 0) |
| 68 | return 1.0 - x - y; |
| 69 | else if (i == 1) |
| 70 | return x; |
| 71 | else if (i == 2) |
| 72 | return y; |
| 73 | return 0.0; |
| 74 | } |
| 75 | |
| 76 | void shapeFunDer(Matrix& dN) { |
| 77 | dN(0, 0) = -1.0; dN(0, 1) = -1.0; |
no outgoing calls
no test coverage detected