Skip to content
Snippets Groups Projects
Commit 0df979f2 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

fix

parent 54c659a9
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -55,7 +55,6 @@ def check_value_gradient_consistency(E, tol=1e-6, ntries=100):
dirder = E.gradient.vdot(dir)/dirnorm
for i in range(50):
if abs((E2.value-val)/dirnorm-dirder) < tol:
print i, dirnorm, dirder, E2.value-val
break
dir *= 0.5
dirnorm *= 0.5
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment