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
ae08b76b
Commit
ae08b76b
authored
Sep 07, 2015
by
BRAMAS Berenger
Browse files
Merge branch 'master' of
git+ssh://scm.gforge.inria.fr//gitroot//scalfmm/scalfmm
parents
c911f8b5
265170f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Src/Kernels/Uniform/FUnifKernel.hpp
View file @
ae08b76b
...
...
@@ -145,13 +145,17 @@ public:
const
int
/*TreeLevel*/
)
{
for
(
int
idxRhs
=
0
;
idxRhs
<
NVALS
;
++
idxRhs
){
// 1) Apply Inverse Discete Fourier Transform
FReal
localExp
[
AbstractBaseClass
::
nnodes
];
M2LHandler
.
unapplyZeroPaddingAndDFT
(
ParentCell
->
getTransformedLocal
(
idxRhs
),
const_cast
<
CellClass
*>
(
ParentCell
)
->
getLocal
(
idxRhs
));
localExp
);
FBlas
::
add
(
AbstractBaseClass
::
nnodes
,
const_cast
<
FReal
*>
(
ParentCell
->
getLocal
(
idxRhs
)),
localExp
);
// 2) apply Sx
for
(
unsigned
int
ChildIndex
=
0
;
ChildIndex
<
8
;
++
ChildIndex
){
if
(
ChildCells
[
ChildIndex
]){
AbstractBaseClass
::
Interpolator
->
applyL2L
(
ChildIndex
,
ParentCell
->
getLocal
(
idxRhs
)
,
ChildCells
[
ChildIndex
]
->
getLocal
(
idxRhs
));
AbstractBaseClass
::
Interpolator
->
applyL2L
(
ChildIndex
,
localExp
,
ChildCells
[
ChildIndex
]
->
getLocal
(
idxRhs
));
}
}
}
...
...
@@ -162,21 +166,24 @@ public:
{
const
FPoint
<
FReal
>
LeafCellCenter
(
AbstractBaseClass
::
getLeafCellCenter
(
LeafCell
->
getCoordinate
()));
FReal
localExp
[
NVALS
*
AbstractBaseClass
::
nnodes
];
for
(
int
idxRhs
=
0
;
idxRhs
<
NVALS
;
++
idxRhs
){
// 1) Apply Inverse Discete Fourier Transform
M2LHandler
.
unapplyZeroPaddingAndDFT
(
LeafCell
->
getTransformedLocal
(
idxRhs
),
const_cast
<
CellClass
*>
(
LeafCell
)
->
getLocal
(
idxRhs
));
localExp
+
idxRhs
*
AbstractBaseClass
::
nnodes
);
FBlas
::
add
(
AbstractBaseClass
::
nnodes
,
const_cast
<
FReal
*>
(
LeafCell
->
getLocal
(
idxRhs
)),
localExp
+
idxRhs
*
AbstractBaseClass
::
nnodes
);
}
// 2.a) apply Sx
AbstractBaseClass
::
Interpolator
->
applyL2P
(
LeafCellCenter
,
AbstractBaseClass
::
BoxWidthLeaf
,
LeafCell
->
getL
ocal
(
0
)
,
TargetParticles
);
l
ocal
Exp
,
TargetParticles
);
// 2.b) apply Px (grad Sx)
AbstractBaseClass
::
Interpolator
->
applyL2PGradient
(
LeafCellCenter
,
AbstractBaseClass
::
BoxWidthLeaf
,
LeafCell
->
getL
ocal
(
0
)
,
TargetParticles
);
l
ocal
Exp
,
TargetParticles
);
}
...
...
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