Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5a0311a

Browse files
committed
Change references from const_pi to sctl::const_pi #12
1 parent 59d275c commit 5a0311a

5 files changed

Lines changed: 23 additions & 23 deletions

File tree

Lib/include/STKFMM/LaplaceLayerKernel.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ struct laplace_p : public GenericKernel<laplace_p> {
4242
static const int FLOPS = 20;
4343
template <class Real>
4444
static Real ScaleFactor() {
45-
return 1.0 / (4.0 * const_pi<Real>());
45+
return 1.0 / (4.0 * sctl::const_pi<Real>());
4646
}
4747

4848
/**
@@ -68,7 +68,7 @@ struct laplace_pgrad : public GenericKernel<laplace_pgrad> {
6868
static const int FLOPS = 20;
6969
template <class Real>
7070
static Real ScaleFactor() {
71-
return 1.0 / (4.0 * const_pi<Real>());
71+
return 1.0 / (4.0 * sctl::const_pi<Real>());
7272
}
7373

7474
/**
@@ -99,7 +99,7 @@ struct laplace_dipolep : public GenericKernel<laplace_dipolep> {
9999
static const int FLOPS = 20;
100100
template <class Real>
101101
static Real ScaleFactor() {
102-
return 1.0 / (4.0 * const_pi<Real>());
102+
return 1.0 / (4.0 * sctl::const_pi<Real>());
103103
}
104104
template <class VecType, int digits>
105105
static void uKerEval(VecType (&u)[1], const VecType (&r)[3], const VecType (&f)[3], const void *ctx_ptr) {
@@ -116,7 +116,7 @@ struct laplace_dipolepgrad : public GenericKernel<laplace_dipolepgrad> {
116116
static const int FLOPS = 20;
117117
template <class Real>
118118
static Real ScaleFactor() {
119-
return 1.0 / (4.0 * const_pi<Real>());
119+
return 1.0 / (4.0 * sctl::const_pi<Real>());
120120
}
121121
template <class VecType, int digits>
122122
static void uKerEval(VecType (&u)[4], const VecType (&r)[3], const VecType (&f)[3], const void *ctx_ptr) {
@@ -139,7 +139,7 @@ struct laplace_pgradgrad : public GenericKernel<laplace_pgradgrad> {
139139
static const int FLOPS = 20;
140140
template <class Real>
141141
static Real ScaleFactor() {
142-
return 1.0 / (4.0 * const_pi<Real>());
142+
return 1.0 / (4.0 * sctl::const_pi<Real>());
143143
}
144144
template <class VecType, int digits>
145145
static void uKerEval(VecType (&u)[10], const VecType (&r)[3], const VecType (&f)[1], const void *ctx_ptr) {
@@ -169,7 +169,7 @@ struct laplace_dipolepgradgrad : public GenericKernel<laplace_dipolepgradgrad> {
169169
static const int FLOPS = 20;
170170
template <class Real>
171171
static Real ScaleFactor() {
172-
return 1.0 / (4.0 * const_pi<Real>());
172+
return 1.0 / (4.0 * sctl::const_pi<Real>());
173173
}
174174
template <class VecType, int digits>
175175
static void uKerEval(VecType (&u)[10], const VecType (&r)[3], const VecType (&f)[3], const void *ctx_ptr) {
@@ -203,7 +203,7 @@ struct laplace_quadp : public GenericKernel<laplace_quadp> {
203203
static const int FLOPS = 20;
204204
template <class Real>
205205
static Real ScaleFactor() {
206-
return 1.0 / (4.0 * const_pi<Real>());
206+
return 1.0 / (4.0 * sctl::const_pi<Real>());
207207
}
208208
template <class VecType, int digits>
209209
static void uKerEval(VecType (&u)[1], const VecType (&r)[3], const VecType (&f)[9], const void *ctx_ptr) {
@@ -235,7 +235,7 @@ struct laplace_quadpgradgrad : public GenericKernel<laplace_quadpgradgrad> {
235235
static const int FLOPS = 20;
236236
template <class Real>
237237
static Real ScaleFactor() {
238-
return 1.0 / (4.0 * const_pi<Real>());
238+
return 1.0 / (4.0 * sctl::const_pi<Real>());
239239
}
240240
template <class VecType, int digits>
241241
static void uKerEval(VecType (&u)[10], const VecType (&r)[3], const VecType (&f)[9], const void *ctx_ptr) {

Lib/include/STKFMM/RPYKernel.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ struct rpy_u : public GenericKernel<rpy_u> {
1818
static const int FLOPS = 20;
1919
template <class Real>
2020
static Real ScaleFactor() {
21-
return 1.0 / (8.0 * const_pi<Real>());
21+
return 1.0 / (8.0 * sctl::const_pi<Real>());
2222
}
2323
template <class VecType, int digits>
2424
static void uKerEval(VecType (&u)[3], const VecType (&r)[3], const VecType (&f)[4], const void *ctx_ptr) {
@@ -53,7 +53,7 @@ struct rpy_ulapu : public GenericKernel<rpy_ulapu> {
5353
static const int FLOPS = 20;
5454
template <class Real>
5555
static Real ScaleFactor() {
56-
return 1.0 / (8.0 * const_pi<Real>());
56+
return 1.0 / (8.0 * sctl::const_pi<Real>());
5757
}
5858
template <class VecType, int digits>
5959
static void uKerEval(VecType (&u)[6], const VecType (&r)[3], const VecType (&f)[4], const void *ctx_ptr) {
@@ -98,7 +98,7 @@ struct stk_ulapu : public GenericKernel<stk_ulapu> {
9898
static const int FLOPS = 20;
9999
template <class Real>
100100
static Real ScaleFactor() {
101-
return 1.0 / (8.0 * const_pi<Real>());
101+
return 1.0 / (8.0 * sctl::const_pi<Real>());
102102
}
103103
template <class VecType, int digits>
104104
static void uKerEval(VecType (&u)[6], const VecType (&r)[3], const VecType (&f)[3], const void *ctx_ptr) {

Lib/include/STKFMM/StokesDoubleLayerKernel.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct stokes_doublepvel : public GenericKernel<stokes_doublepvel> {
2626
static const int FLOPS = 20;
2727
template <class Real>
2828
static Real ScaleFactor() {
29-
return 1.0 / (8.0 * const_pi<Real>());
29+
return 1.0 / (8.0 * sctl::const_pi<Real>());
3030
}
3131
template <class VecType, int digits>
3232
static void uKerEval(VecType (&u)[4], const VecType (&r)[3], const VecType (&f)[9], const void *ctx_ptr) {
@@ -65,7 +65,7 @@ struct stokes_doublepvelgrad : public GenericKernel<stokes_doublepvelgrad> {
6565
static const int FLOPS = 20;
6666
template <class Real>
6767
static Real ScaleFactor() {
68-
return 1.0 / (8.0 * const_pi<Real>());
68+
return 1.0 / (8.0 * sctl::const_pi<Real>());
6969
}
7070
template <class VecType, int digits>
7171
static void uKerEval(VecType (&u)[16], const VecType (&r)[3], const VecType (&f)[9], const void *ctx_ptr) {
@@ -151,7 +151,7 @@ struct stokes_doublelaplacian : public GenericKernel<stokes_doublelaplacian> {
151151
static const int FLOPS = 20;
152152
template <class Real>
153153
static Real ScaleFactor() {
154-
return 1.0 / (8.0 * const_pi<Real>());
154+
return 1.0 / (8.0 * sctl::const_pi<Real>());
155155
}
156156
template <class VecType, int digits>
157157
static void uKerEval(VecType (&u)[7], const VecType (&r)[3], const VecType (&f)[9], const void *ctx_ptr) {
@@ -214,7 +214,7 @@ struct stokes_doubletraction : public GenericKernel<stokes_doubletraction> {
214214
static const int FLOPS = 20;
215215
template <class Real>
216216
static Real ScaleFactor() {
217-
return -3.0 / (8.0 * const_pi<Real>());
217+
return -3.0 / (8.0 * sctl::const_pi<Real>());
218218
}
219219
template <class VecType, int digits>
220220
static void uKerEval(VecType (&u)[9], const VecType (&r)[3], const VecType (&f)[9], const void *ctx_ptr) {

Lib/include/STKFMM/StokesRegSingleLayerKernel.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ struct stokes_regvel : public GenericKernel<stokes_regvel> {
1818
static const int FLOPS = 20;
1919
template <class Real>
2020
static Real ScaleFactor() {
21-
return 1.0 / (8.0 * const_pi<Real>());
21+
return 1.0 / (8.0 * sctl::const_pi<Real>());
2222
}
2323
template <class VecType, int digits>
2424
static void uKerEval(VecType (&u)[3], const VecType (&r)[3], const VecType (&f)[4], const void *ctx_ptr) {
@@ -49,7 +49,7 @@ struct stokes_regftvel : public GenericKernel<stokes_regftvel> {
4949
static const int FLOPS = 20;
5050
template <class Real>
5151
static Real ScaleFactor() {
52-
return 1.0 / (8.0 * const_pi<Real>());
52+
return 1.0 / (8.0 * sctl::const_pi<Real>());
5353
}
5454
template <class VecType, int digits>
5555
static void uKerEval(VecType (&u)[3], const VecType (&r)[3], const VecType (&f)[7], const void *ctx_ptr) {
@@ -97,7 +97,7 @@ struct stokes_regftvelomega : public GenericKernel<stokes_regftvelomega> {
9797
static const int FLOPS = 20;
9898
template <class Real>
9999
static Real ScaleFactor() {
100-
return 1.0 / (8.0 * const_pi<Real>());
100+
return 1.0 / (8.0 * sctl::const_pi<Real>());
101101
}
102102
template <class VecType, int digits>
103103
static void uKerEval(VecType (&u)[6], const VecType (&r)[3], const VecType (&f)[7], const void *ctx_ptr) {
@@ -159,7 +159,7 @@ struct stokes_velomega : public GenericKernel<stokes_velomega> {
159159
static const int FLOPS = 20;
160160
template <class Real>
161161
static Real ScaleFactor() {
162-
return 1.0 / (8.0 * const_pi<Real>());
162+
return 1.0 / (8.0 * sctl::const_pi<Real>());
163163
}
164164
template <class VecType, int digits>
165165
static void uKerEval(VecType (&u)[6], const VecType (&r)[3], const VecType (&f)[3], const void *ctx_ptr) {

Lib/include/STKFMM/StokesSingleLayerKernel.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ struct stokes_pvel : public GenericKernel<stokes_pvel> {
2828
static const int FLOPS = 20;
2929
template <class Real>
3030
static Real ScaleFactor() {
31-
return 1.0 / (8.0 * const_pi<Real>());
31+
return 1.0 / (8.0 * sctl::const_pi<Real>());
3232
}
3333
template <class VecType, int digits>
3434
static void uKerEval(VecType (&u)[4], const VecType (&r)[3], const VecType (&f)[4], const void *ctx_ptr) {
@@ -55,7 +55,7 @@ struct stokes_pvelgrad : public GenericKernel<stokes_pvelgrad> {
5555
static const int FLOPS = 20;
5656
template <class Real>
5757
static Real ScaleFactor() {
58-
return 1.0 / (8.0 * const_pi<Real>());
58+
return 1.0 / (8.0 * sctl::const_pi<Real>());
5959
}
6060
template <class VecType, int digits>
6161
static void uKerEval(VecType (&u)[16], const VecType (&r)[3], const VecType (&f)[4], const void *ctx_ptr) {
@@ -119,7 +119,7 @@ struct stokes_pvellaplacian : public GenericKernel<stokes_pvellaplacian> {
119119
static const int FLOPS = 20;
120120
template <class Real>
121121
static Real ScaleFactor() {
122-
return 1.0 / (8.0 * const_pi<Real>());
122+
return 1.0 / (8.0 * sctl::const_pi<Real>());
123123
}
124124
template <class VecType, int digits>
125125
static void uKerEval(VecType (&u)[7], const VecType (&r)[3], const VecType (&f)[4], const void *ctx_ptr) {
@@ -163,7 +163,7 @@ struct stokes_traction : public GenericKernel<stokes_traction> {
163163
static const int FLOPS = 20;
164164
template <class Real>
165165
static Real ScaleFactor() {
166-
return -3.0 / (4.0 * const_pi<Real>());
166+
return -3.0 / (4.0 * sctl::const_pi<Real>());
167167
}
168168
template <class VecType, int digits>
169169
static void uKerEval(VecType (&u)[9], const VecType (&r)[3], const VecType (&f)[4], const void *ctx_ptr) {

0 commit comments

Comments
 (0)