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
285463e5
Commit
285463e5
authored
Mar 16, 2017
by
incardon
Browse files
Fixing add pad
parent
86a78332
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/NN/CellList/CellDecomposer.hpp
View file @
285463e5
...
...
@@ -422,7 +422,7 @@ class CellDecomposer_sm
size_t
cell_id
=
ConvertToID
(
pos
,
0
);
cell_id
=
(
cell_id
==
off
[
0
])
?
off
[
0
]
-
1
:
cell_id
;
cell_id
=
(
cell_id
==
gr_cell
.
size
(
0
)
-
off
[
0
]
-
1
)
?
gr_cell
.
size
(
0
)
-
off
[
0
]
:
cell_id
;
cell_id
=
(
cell_id
==
gr_cell
2
.
size
(
0
)
-
off
[
0
]
-
1
)
?
gr_cell
2
.
size
(
0
)
-
off
[
0
]
:
cell_id
;
for
(
size_t
s
=
1
;
s
<
dim
;
s
++
)
{
...
...
@@ -430,7 +430,7 @@ class CellDecomposer_sm
size_t
cell_idt
=
ConvertToID
(
pos
,
s
);
cell_idt
=
(
cell_idt
==
off
[
s
])
?
off
[
s
]
-
1
:
cell_idt
;
cell_idt
=
(
cell_idt
==
gr_cell
.
size
(
s
)
-
off
[
s
]
-
1
)
?
gr_cell
.
size
(
s
)
-
off
[
s
]
:
cell_idt
;
cell_idt
=
(
cell_idt
==
gr_cell
2
.
size
(
s
)
-
off
[
s
]
-
1
)
?
gr_cell
2
.
size
(
s
)
-
off
[
s
]
:
cell_idt
;
cell_id
+=
gr_cell2
.
size_s
(
s
-
1
)
*
cell_idt
;
}
...
...
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