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_data
Commits
f6f1dde2
Commit
f6f1dde2
authored
Aug 22, 2017
by
incardon
Browse files
Adding SFC functionality
parent
746121a6
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/Grid/grid_sm.hpp
View file @
f6f1dde2
...
@@ -178,6 +178,7 @@ class grid_sm
...
@@ -178,6 +178,7 @@ class grid_sm
for
(
size_t
i
=
1
;
i
<
N
;
i
++
)
for
(
size_t
i
=
1
;
i
<
N
;
i
++
)
{
{
/* coverity[dead_error_begin] */
sz_s
[
i
]
=
sz
[
i
]
*
sz_s
[
i
-
1
];
sz_s
[
i
]
=
sz
[
i
]
*
sz_s
[
i
-
1
];
// set the box
// set the box
...
...
src/NN/CellList/CellListFast_gen.hpp
View file @
f6f1dde2
...
@@ -104,12 +104,12 @@ public:
...
@@ -104,12 +104,12 @@ public:
return
SFC
;
return
SFC
;
}
}
/*! \brief return the celllist iterator (across cells)
/*! \brief Initialize Space-filling-curve (SFC)
*
*
*
* \return an iterator
*
*
*/
*/
inline
typename
Prock
<
dim
,
CellList_gen
<
dim
,
T
,
Prock
,
Mem_type
,
transform
,
base
>>::
Pit
getIterator
()
inline
void
init_SFC
()
{
{
// Initialize SFC
// Initialize SFC
if
(
init_sfc
==
false
)
if
(
init_sfc
==
false
)
...
@@ -117,6 +117,16 @@ public:
...
@@ -117,6 +117,16 @@ public:
initialize_sfc
(
this
->
getPadding
(
0
));
initialize_sfc
(
this
->
getPadding
(
0
));
init_sfc
=
true
;
init_sfc
=
true
;
}
}
}
/*! \brief return the celllist iterator (across cells)
*
* \return an iterator
*
*/
inline
typename
Prock
<
dim
,
CellList_gen
<
dim
,
T
,
Prock
,
Mem_type
,
transform
,
base
>>::
Pit
getIterator
()
{
init_SFC
();
return
typename
Prock
<
dim
,
CellList_gen
<
dim
,
T
,
Prock
,
Mem_type
,
transform
,
base
>>::
Pit
(
*
this
);
return
typename
Prock
<
dim
,
CellList_gen
<
dim
,
T
,
Prock
,
Mem_type
,
transform
,
base
>>::
Pit
(
*
this
);
}
}
...
...
src/Space/Shape/HyperCube.hpp
View file @
f6f1dde2
...
@@ -17,7 +17,10 @@ template<unsigned int dim> std::ostream& operator<<(std::ostream& str, const com
...
@@ -17,7 +17,10 @@ template<unsigned int dim> std::ostream& operator<<(std::ostream& str, const com
{
{
// print the combination of ostream
// print the combination of ostream
for
(
size_t
i
=
0
;
i
<
dim
-
1
;
i
++
)
for
(
size_t
i
=
0
;
i
<
dim
-
1
;
i
++
)
{
/* coverity[dead_error_line] */
str
<<
c
.
c
[
i
]
<<
";"
;
str
<<
c
.
c
[
i
]
<<
";"
;
}
str
<<
c
.
c
[
dim
-
1
];
str
<<
c
.
c
[
dim
-
1
];
...
...
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