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
solverstack
ScalFMM
Commits
212f86e8
Commit
212f86e8
authored
Jan 22, 2014
by
BLANCHARD Pierre
Browse files
some more cleanup
parent
bc2c6626
Changes
1
Hide whitespace changes
Inline
Side-by-side
Src/Kernels/Interpolation/FInterpMatrixKernel.hpp
View file @
212f86e8
...
...
@@ -27,7 +27,6 @@
enum
KERNEL_FUNCTION_IDENTIFIER
{
ONE_OVER_R
,
ONE_OVER_R_SQUARED
,
LENNARD_JONES_POTENTIAL
,
RX
,
ID_OVER_R
,
R_IJ
,
R_IJK
};
...
...
@@ -112,7 +111,7 @@ struct FInterpMatrixKernelRR : FInterpAbstractMatrixKernel
static
const
unsigned
int
NRHS
=
1
;
static
const
unsigned
int
NLHS
=
1
;
FInterpMatrixKernelRR
(
const
unsigned
int
)
{}
FInterpMatrixKernelRR
(
const
unsigned
int
=
0
)
{}
// returns position in reduced storage
int
getPosition
(
const
unsigned
int
)
const
...
...
@@ -180,45 +179,6 @@ struct FInterpMatrixKernelLJ : FInterpAbstractMatrixKernel
};
/// r_0 / R^2
struct
FInterpMatrixKernelRX
:
FInterpAbstractMatrixKernel
{
// PB: leave NON_HOMOGENEOUS while it is used as test matrix kernel
static
const
KERNEL_FUNCTION_TYPE
Type
=
NON_HOMOGENEOUS
;
static
const
KERNEL_FUNCTION_IDENTIFIER
Identifier
=
RX
;
static
const
unsigned
int
DIM
=
1
;
//PB: dimension of kernel
static
const
unsigned
int
NRHS
=
1
;
static
const
unsigned
int
NLHS
=
1
;
FInterpMatrixKernelRX
(
const
unsigned
int
=
0
)
{}
// returns position in reduced storage
int
getPosition
(
const
unsigned
int
)
const
{
return
0
;}
FReal
evaluate
(
const
FPoint
&
x
,
const
FPoint
&
y
)
const
{
const
FPoint
xy
(
x
-
y
);
const
FReal
r
=
xy
.
norm
();
const
FReal
r2
=
r
*
r
;
return
xy
.
getX
()
/**xy.getX()*/
/
r2
;
}
FReal
getScaleFactor
(
const
FReal
,
const
int
)
const
{
// return 1 because non homogeneous kernel functions cannot be scaled!!!
return
FReal
(
1.
);
}
FReal
getScaleFactor
(
const
FReal
)
const
{
// return 1 because non homogeneous kernel functions cannot be scaled!!!
return
FReal
(
1.
);
}
};
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//
...
...
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