Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ScalFMM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
solverstack
ScalFMM
Commits
5dc0985c
Commit
5dc0985c
authored
Nov 25, 2014
by
PIACIBELLO Cyrille
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Api Works now in periodic
parent
6ab40aff
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
Addons/CKernelApi/Src/FInterEngine.hpp
Addons/CKernelApi/Src/FInterEngine.hpp
+3
-0
Addons/CKernelApi/Src/FScalFMMEngine.hpp
Addons/CKernelApi/Src/FScalFMMEngine.hpp
+0
-4
Addons/CKernelApi/Tests/testUseNewApi.c
Addons/CKernelApi/Tests/testUseNewApi.c
+3
-3
No files found.
Addons/CKernelApi/Src/FInterEngine.hpp
View file @
5dc0985c
...
...
@@ -176,6 +176,8 @@ public:
forcesToFill
[
indexes
[
idxPart
]
*
3
+
0
]
=
sources
->
getForcesX
()[
idxPart
];
forcesToFill
[
indexes
[
idxPart
]
*
3
+
1
]
=
sources
->
getForcesY
()[
idxPart
];
forcesToFill
[
indexes
[
idxPart
]
*
3
+
2
]
=
sources
->
getForcesZ
()[
idxPart
];
printf
(
"forces found : %e,%e,%e
\n
"
,
sources
->
getForcesX
()[
idxPart
],
sources
->
getForcesY
()[
idxPart
],
sources
->
getForcesZ
()[
idxPart
]);
}
});
}
...
...
@@ -545,6 +547,7 @@ public:
{
typedef
FFmmAlgorithmPeriodic
<
OctreeClass
,
InterCell
,
ContainerClass
,
InterKernel
,
LeafClass
>
AlgoClassPeriodic
;
AlgoClassPeriodic
algoPeriod
(
octree
,
2
);
algoPeriod
.
setKernel
(
kernel
);
algoPeriod
.
execute
();
break
;
}
...
...
Addons/CKernelApi/Src/FScalFMMEngine.hpp
View file @
5dc0985c
...
...
@@ -65,10 +65,6 @@ public:
return
this
->
kernelType
;
}
// //To deal with particles moving outside the box
// void out_of_the_box_config(scalfmm_out_of_box_behavior config){
// this->OutOfBoxBehavior = config;
// }
//To change default algorithm
void
algorithm_config
(
scalfmm_algorithm
config
){
...
...
Addons/CKernelApi/Tests/testUseNewApi.c
View file @
5dc0985c
...
...
@@ -29,9 +29,9 @@ int main(int argc, char ** av){
//Init our lib
scalfmm_handle
handle
=
scalfmm_init
(
TreeHeight
,
boxWidth
,
boxCenter
,
myChoice
);
//The tree is built
scalfmm_algorithm_config
(
handle
,
periodic
);
//Creation of an array of particles
int
nb_of_parts
=
10
;
int
nb_of_parts
=
2
;
int
idxPart
;
double
*
positionsXYZ
=
malloc
(
sizeof
(
double
)
*
3
*
nb_of_parts
);
memset
(
positionsXYZ
,
0
,
sizeof
(
double
)
*
3
*
nb_of_parts
);
...
...
@@ -45,7 +45,7 @@ int main(int argc, char ** av){
//Creation of charge for each part
double
*
array_of_charge
=
malloc
(
sizeof
(
double
)
*
nb_of_parts
);
for
(
idxPart
=
0
;
idxPart
<
nb_of_parts
;
++
idxPart
){
array_of_charge
[
idxPart
]
=
1
.
0
*
(
idxPart
%
2
)
;
array_of_charge
[
idxPart
]
=
1
.
0
;
}
//Inserting the array in the tree
...
...
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