| 10 | // for shape functions |
| 11 | template <int DIM, typename SCAL> |
| 12 | auto GetGradient (const AutoDiff<DIM,SCAL> & ad) |
| 13 | { |
| 14 | Vec<DIM,SCAL> grad; |
| 15 | for (int i = 0; i < DIM; i++) |
| 16 | grad(i) = ad.DValue(i); |
| 17 | return grad; |
| 18 | } |
| 19 | |
| 20 | |
| 21 |
no test coverage detected