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
c4f02501
Commit
c4f02501
authored
Jun 21, 2018
by
Martin Reinecke
Browse files
relax accuracy criterion
parent
939a0fd1
Pipeline
#31561
failed with stages
in 4 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty5/extra/energy_tests.py
View file @
c4f02501
...
...
@@ -44,7 +44,7 @@ def _get_acceptable_energy(E):
return
E2
def
check_value_gradient_consistency
(
E
,
tol
=
1e-
10
,
ntries
=
100
):
def
check_value_gradient_consistency
(
E
,
tol
=
1e-
8
,
ntries
=
100
):
for
_
in
range
(
ntries
):
E2
=
_get_acceptable_energy
(
E
)
val
=
E
.
value
...
...
@@ -65,7 +65,7 @@ def check_value_gradient_consistency(E, tol=1e-10, ntries=100):
# E = Enext
def
check_value_gradient_curvature_consistency
(
E
,
tol
=
1e-
10
,
ntries
=
100
):
def
check_value_gradient_curvature_consistency
(
E
,
tol
=
1e-
8
,
ntries
=
100
):
for
_
in
range
(
ntries
):
E2
=
_get_acceptable_energy
(
E
)
val
=
E
.
value
...
...
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