Closed WardLT closed 1 week ago
For clarity, I was getting a RuntimeError: One of the differentiated Tensors appears to not have been used in the graph. Set allow_unused=True if this is the desired behavior.
when using calc_stress=True
for the Forces
output module.
Thank you for your contribution!
Took me a long time to figure out why the strain was not being used when computing forces. Felt stupid afterwards, but also that it could be an easy mistake others would make.