Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
95fedf82
Commit
95fedf82
authored
Apr 03, 2017
by
Matthieu Schaller
Browse files
Updated tolerance requirements for the multipole construction accuracy test.
parent
d6a3001f
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cell.c
View file @
95fedf82
...
...
@@ -1157,7 +1157,7 @@ void cell_check_multipole(struct cell *c, void *data) {
/* Now compare the multipole expansion */
if
(
!
gravity_multipole_equal
(
&
ma
,
c
->
multipole
,
tolerance
))
{
message
(
"Multipoles are not equal at depth=%d!"
,
c
->
depth
);
message
(
"Multipoles are not equal at depth=%d!
tol=%f
"
,
c
->
depth
,
tolerance
);
message
(
"Correct answer:"
);
gravity_multipole_print
(
&
ma
.
m_pole
);
message
(
"Recursive multipole:"
);
...
...
src/multipole.h
View file @
95fedf82
...
...
@@ -572,6 +572,7 @@ INLINE static int gravity_multipole_equal(const struct gravity_tensors *ga,
return
0
;
}
#endif
tolerance
*=
10
.;
#if SELF_GRAVITY_MULTIPOLE_ORDER > 2
/* Manhattan Norm of 3rd order terms */
const
float
order3_norm
=
...
...
Write
Preview
Supports
Markdown
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