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
ce5bf9d3
Commit
ce5bf9d3
authored
Dec 16, 2013
by
BRAMAS Berenger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove never used part
parent
c15501df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
17 deletions
+2
-17
Src/Kernels/Spherical/FAbstractSphericalKernel.hpp
Src/Kernels/Spherical/FAbstractSphericalKernel.hpp
+2
-17
No files found.
Src/Kernels/Spherical/FAbstractSphericalKernel.hpp
View file @
ce5bf9d3
...
...
@@ -23,6 +23,7 @@
#include "../../Utils/FMemUtils.hpp"
#include "../../Utils/FSmartPointer.hpp"
#include "../../Utils/FPoint.hpp"
#include "../../Utils/FAssert.hpp"
#include "../../Containers/FTreeCoordinate.hpp"
...
...
@@ -558,23 +559,7 @@ private:
}
//spherical_position_Set_r
//FReal rh = spherical.r;
if
(
spherical
.
getR
()
<
0
){
//rh = -spherical.r;
//spherical_position_Set_ph(p, M_PI - spherical_position_Get_th(p));
ph
=
FMath
::
Fmod
(
FMath
::
FPi
-
th
,
2
*
FMath
::
FPi
);
if
(
ph
>
M_PI
)
ph
-=
2
*
FMath
::
FPi
;
if
(
ph
<
-
M_PI
+
FMath
::
Epsilon
)
ph
+=
2
*
FMath
::
Epsilon
;
//spherical_position_Set_th(p, spherical_position_Get_th(p) + M_PI);
th
=
FMath
::
Fmod
(
th
+
FMath
::
FPi
,
2
*
FMath
::
FPi
);
if
(
th
<
0.0
)
th
+=
2
*
FMath
::
FPi
;
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
);
if
(
ph
>
M_PI
)
ph
-=
2
*
FMath
::
FPi
;
if
(
ph
<
-
M_PI
+
FMath
::
Epsilon
)
ph
+=
2
*
FMath
::
FPi
;
}
}
FAssertLF
(
spherical
.
getR
()
>=
0
,
"R should be < 0!"
);
const
FReal
cos_theta
=
FMath
::
Cos
(
th
);
const
FReal
cos_phi
=
FMath
::
Cos
(
ph
);
...
...
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