Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
solverstack
ScalFMM
Commits
dc14ccf8
Commit
dc14ccf8
authored
Dec 16, 2013
by
BRAMAS Berenger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove a potential bug
parent
85337148
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Src/Kernels/Spherical/FAbstractSphericalKernel.hpp
Src/Kernels/Spherical/FAbstractSphericalKernel.hpp
+4
-4
No files found.
Src/Kernels/Spherical/FAbstractSphericalKernel.hpp
View file @
dc14ccf8
...
...
@@ -552,9 +552,9 @@ private:
if
(
th
>
FMath
::
FPi
){
th
=
2
*
FMath
::
FPi
-
th
;
//spherical_position_Set_ph(p, spherical_position_Get_ph(p) + M_PI);
/*
ph = FMath::Fmod(ph + FMath::FPi, 2*FMath::FPi);
ph
=
FMath
::
Fmod
(
ph
+
FMath
::
FPi
,
2
*
FMath
::
FPi
);
if
(
ph
>
M_PI
)
ph
-=
2
*
FMath
::
FPi
;
if (ph < -M_PI + FMath::Epsilon) ph += 2 * FMath::FPi;
*/
if
(
ph
<
-
M_PI
+
FMath
::
Epsilon
)
ph
+=
2
*
FMath
::
FPi
;
}
//spherical_position_Set_r
//FReal rh = spherical.r;
...
...
@@ -570,9 +570,9 @@ private:
if
(
th
>
FMath
::
FPi
){
th
=
2
*
FMath
::
FPi
-
th
;
//spherical_position_Set_ph(p, spherical_position_Get_ph(p) + M_PI);
/*
ph = FMath::Fmod(ph + FMath::FPi, 2*FMath::FPi);
ph
=
FMath
::
Fmod
(
ph
+
FMath
::
FPi
,
2
*
FMath
::
FPi
);
if
(
ph
>
M_PI
)
ph
-=
2
*
FMath
::
FPi
;
if (ph < -M_PI + FMath::Epsilon) ph += 2 * FMath::FPi;
*/
if
(
ph
<
-
M_PI
+
FMath
::
Epsilon
)
ph
+=
2
*
FMath
::
FPi
;
}
}
...
...
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