grads[start][0][1] = 0.;
grads[start][1][0] = -unit_point(1) * monovali[0][2];
grads[start][1][1] = -monovali[0][1];
- grads[start+1][0][0] = -monovali[1][1];
- grads[start+1][0][1] = -unit_point(0) * monovali[1][2];
+ grads[start+1][0][0] = monovali[1][1];
+ grads[start+1][0][1] = unit_point(0) * monovali[1][2];
grads[start+1][1][0] = 0.;
- grads[start+1][1][1] = monovali[1][1];
+ grads[start+1][1][1] = -monovali[1][1];
}
if (grad_grads.size() != 0)
{
grad_grads[start][1][1][0] = -monovali[0][2];
grad_grads[start][1][1][1] = 0.;
grad_grads[start+1][0][0][0] = 0;
- grad_grads[start+1][0][0][1] = -monovali[1][2];
- grad_grads[start+1][0][1][0] = -monovali[1][2];
- grad_grads[start+1][0][1][1] = -unit_point(0) * monovali[1][3];
+ grad_grads[start+1][0][0][1] = monovali[1][2];
+ grad_grads[start+1][0][1][0] = monovali[1][2];
+ grad_grads[start+1][0][1][1] = unit_point(0) * monovali[1][3];
grad_grads[start+1][1][0][0] = 0.;
grad_grads[start+1][1][0][1] = 0.;
grad_grads[start+1][1][1][0] = 0.;
- grad_grads[start+1][1][1][1] = monovali[1][2];
+ grad_grads[start+1][1][1][1] = -monovali[1][2];
}
}
else // dim == 3