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
121d28a9
Commit
121d28a9
authored
Sep 30, 2016
by
incardon
Browse files
Latest changes in progress
parent
9ea8975f
Changes
4
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
121d28a9
# Change Log
All notable changes to this project will be documented in this file.
## [0.5.1] -
Mid s
eptember
## [0.5.1] -
27 S
eptember
2016
### Added
-
ghost_put support for particles
...
...
src/Vector/vector_dist.hpp
View file @
121d28a9
...
...
@@ -363,13 +363,13 @@ public:
size_t
div
[
dim
];
// Calculate the Cell list division for this CellList
CellDecomposer
<
dim
,
St
,
shift
<
dim
,
St
>>
cd_sm
;
CellDecomposer
_sm
<
dim
,
St
,
shift
<
dim
,
St
>>
cd_sm
;
for
(
size_t
i
=
0
;
i
<
dim
;
i
++
)
div
[
i
]
=
(
d
omain
.
getHigh
(
i
)
-
d
omain
.
getLow
(
i
))
/
r_cut
;
div
[
i
]
=
(
getDecomposition
().
getD
omain
()
.
getHigh
(
i
)
-
getDecomposition
().
getD
omain
()
.
getLow
(
i
))
/
r_cut
;
size_t
pad
=
0
;
Ghost
g
=
getDecomposition
().
getGhost
();
Ghost
<
dim
,
St
>
g
=
getDecomposition
().
getGhost
();
g
.
magnify
(
1.013
);
// Calculate the maximum padding
...
...
@@ -379,14 +379,16 @@ public:
pad
=
(
pad
>
tmp
)
?
pad
:
tmp
;
}
cd_sm
.
Initialize
(
d
omain
,
div
,
pad
);
cd_sm
.
setDimensions
(
getDecomposition
().
getD
omain
()
,
div
,
pad
);
// get the processor bounding box
Box
<
dim
,
St
>
pbox
=
getDecomposition
().
getProcessorBounds
();
cell_list
.
Initialize
(
cd_sm
,
pbox
);
cell_list
.
setDimensions
(
cd_sm
,
pbox
);
updateCellList
(
cell_list
);
return
cell_list
;
}
/*! \brief Construct a cell list starting from the stored particles
...
...
src/Vector/vector_dist_comm.hpp
View file @
121d28a9
...
...
@@ -846,7 +846,8 @@ public:
typedef
openfpm
::
vector
<
prp_object
>
send_vector
;
// reset the ghost part
v_pos
.
resize
(
g_m
);
if
(
opt
!=
NO_POSITION
)
v_pos
.
resize
(
g_m
);
v_prp
.
resize
(
g_m
);
// Label all the particles
...
...
src/Vector/vector_dist_unit_test.hpp
View file @
121d28a9
...
...
@@ -1948,7 +1948,7 @@ BOOST_AUTO_TEST_CASE( vector_dist_symmetric_cell_list )
++
p_it
;
}
vd
.
ghost_put
<
add
,
1
>
();
vd
.
ghost_put
<
add
_
,
1
>
();
}
#include "vector_dist_cell_list_tests.hpp"
...
...
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