Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
fa2b0e38
Commit
fa2b0e38
authored
Apr 04, 2018
by
Martin Reinecke
Browse files
remove debug print
parent
0bb768e7
Pipeline
#26786
passed with stages
in 21 minutes and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty4/extra/energy_tests.py
View file @
fa2b0e38
...
...
@@ -49,7 +49,6 @@ def check_value_gradient_consistency(E, tol=1e-6, ntries=100):
dirnorm
=
dir
.
norm
()
dirder
=
E
.
gradient
.
vdot
(
dir
)
/
dirnorm
for
i
in
range
(
50
):
print
(
abs
((
E2
.
value
-
E
.
value
)
/
dirnorm
-
dirder
))
if
abs
((
E2
.
value
-
E
.
value
)
/
dirnorm
-
dirder
)
<
tol
:
break
dir
*=
0.5
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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