Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
0df979f2
Commit
0df979f2
authored
May 29, 2018
by
Martin Reinecke
Browse files
fix
parent
54c659a9
Pipeline
#29973
passed with stages
in 3 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty4/extra/energy_tests.py
View file @
0df979f2
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment