Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sbalzarini Lab
S
Software
P
Parallel Computing
OpenFPM
openfpm_pdata
Commits
5cd11180
Commit
5cd11180
authored
Jan 06, 2016
by
Pietro Incardona
Browse files
Fixing examples
parent
0aa33d86
Changes
6
Hide whitespace changes
Inline
Side-by-side
example/SE/0_classes/Makefile
View file @
5cd11180
...
...
@@ -10,7 +10,7 @@ OBJ = main.o
$(CC)
-O0
-g3
-c
--std
=
c++11
-o
$@
$<
$(INCLUDE_PATH)
se_classes
:
$(OBJ)
$(CC)
-o
$@
$^
$(CFLAGS)
$(LIBS_PATH)
$(LIBS
_SE2
)
$(CC)
-o
$@
$^
$(CFLAGS)
$(LIBS_PATH)
$(LIBS)
all
:
se_classes
...
...
example/SE/0_classes/main.cpp
View file @
5cd11180
...
...
@@ -40,7 +40,7 @@ int main(int argc, char* argv[])
// ### WIKI 3 ###
//
// Here we Initialize the library, than we create a uniform random generator between 0 and 1 to to generate particles
// randomly in the domain, we create a Box that define our domain
// randomly in the domain, we create a Box that define our domain
, boundary conditions and ghost
//
init_global_v_cluster
(
&
argc
,
&
argv
);
Vcluster
&
v_cl
=
*
global_v_cluster
;
...
...
@@ -48,7 +48,9 @@ int main(int argc, char* argv[])
typedef
Point
<
2
,
float
>
s
;
Box
<
2
,
float
>
box
({
0.0
,
0.0
},{
1.0
,
1.0
});
size_t
bc
[
2
]
=
{
NON_PERIODIC
,
NON_PERIODIC
};
Ghost
<
2
,
float
>
g
(
0.01
);
//
// ### WIKI 4 ###
//
...
...
@@ -85,7 +87,7 @@ int main(int argc, char* argv[])
// decomposition
//
{
vector_dist
<
2
,
float
,
Point_test
<
float
>
,
CartDecomposition
<
2
,
float
>
>
vd
(
4096
,
box
);
vector_dist
<
2
,
float
,
Point_test
<
float
>
,
CartDecomposition
<
2
,
float
>
>
vd
(
4096
,
box
,
bc
,
g
);
//
// ### WIKI 6 ###
...
...
@@ -95,7 +97,7 @@ int main(int argc, char* argv[])
//
try
{
vect_dist_key_dx
vt
(
0
,
5048
);
vect_dist_key_dx
vt
(
5048
);
auto
it
=
vd
.
getPos
<
0
>
(
vt
);
}
catch
(
size_t
e
)
...
...
@@ -110,8 +112,8 @@ int main(int argc, char* argv[])
// we create, now two of them using new
//
vector_dist
<
2
,
float
,
Point_test
<
float
>
,
CartDecomposition
<
2
,
float
>
>
*
vd1
=
new
vector_dist
<
2
,
float
,
Point_test
<
float
>
,
CartDecomposition
<
2
,
float
>
>
(
4096
,
box
);
vector_dist
<
2
,
float
,
Point_test
<
float
>
,
CartDecomposition
<
2
,
float
>
>
*
vd2
=
new
vector_dist
<
2
,
float
,
Point_test
<
float
>
,
CartDecomposition
<
2
,
float
>
>
(
4096
,
box
);
vector_dist
<
2
,
float
,
Point_test
<
float
>
,
CartDecomposition
<
2
,
float
>
>
*
vd1
=
new
vector_dist
<
2
,
float
,
Point_test
<
float
>
,
CartDecomposition
<
2
,
float
>
>
(
4096
,
box
,
bc
,
g
);
vector_dist
<
2
,
float
,
Point_test
<
float
>
,
CartDecomposition
<
2
,
float
>
>
*
vd2
=
new
vector_dist
<
2
,
float
,
Point_test
<
float
>
,
CartDecomposition
<
2
,
float
>
>
(
4096
,
box
,
bc
,
g
);
//
// ### WIKI 8 ###
...
...
@@ -182,7 +184,7 @@ int main(int argc, char* argv[])
//
try
{
vect_dist_key_dx
vt
(
0
,
0
);
vect_dist_key_dx
vt
(
0
);
auto
it
=
vd1
->
getPos
<
0
>
(
vt
);
}
catch
(
size_t
e
)
...
...
example/SE/1_classes/Makefile
View file @
5cd11180
...
...
@@ -10,7 +10,7 @@ OBJ = main.o
$(CC)
-O0
-g3
-c
--std
=
c++11
-o
$@
$<
$(INCLUDE_PATH)
se_classes
:
$(OBJ)
$(CC)
-o
$@
$^
$(CFLAGS)
$(LIBS_PATH)
$(LIBS
_SE2
)
$(CC)
-o
$@
$^
$(CFLAGS)
$(LIBS_PATH)
$(LIBS)
all
:
se_classes
...
...
example/SE/1_classes/se_classes
View file @
5cd11180
No preview for this file type
example/VCluster/0_simple/vcluster
View file @
5cd11180
No preview for this file type
openfpm_data
@
51c621a2
Subproject commit
4415b6823c6b94331f0bab335f3efcdbfa38982d
Subproject commit
51c621a24979b4df3851e12987a6c5a6e5485913
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