Fix and test numerics of elasticity tensor

The FD computation of the elasticity tensor forgot to reset the cell after displacing, causing O(epsilon) drift during the calculation. This MR fixes the problem and adds an accurate finite-difference test based on EMT.

Checklist: x (done) or ~ (irrelevant)

Edited by Ask Hjorth Larsen

Merge request reports

Loading
Loading