Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
205c8340
Commit
205c8340
authored
Jul 26, 2016
by
Pedro Gonnet
Browse files
only collect h_max from local cells.
parent
8ae6261a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/space.c
View file @
205c8340
...
...
@@ -168,7 +168,9 @@ void space_regrid(struct space *s, double cell_max, int verbose) {
if
(
nr_parts
>
0
)
{
if
(
s
->
cells
!=
NULL
)
{
for
(
int
k
=
0
;
k
<
s
->
nr_cells
;
k
++
)
{
if
(
s
->
cells
[
k
].
h_max
>
h_max
)
h_max
=
s
->
cells
[
k
].
h_max
;
if
(
s
->
cells
[
k
].
nodeID
==
engine_rank
&&
s
->
cells
[
k
].
h_max
>
h_max
)
{
h_max
=
s
->
cells
[
k
].
h_max
;
}
}
}
else
{
for
(
size_t
k
=
0
;
k
<
nr_parts
;
k
++
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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