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
dac0b613
Commit
dac0b613
authored
Jul 25, 2016
by
Matthieu Schaller
Browse files
Fixes in MPI mode
parent
ccd154b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/space.c
View file @
dac0b613
...
...
@@ -209,7 +209,7 @@ void space_regrid(struct space *s, double cell_max, int verbose) {
* global partition is recomputed and the particles redistributed.
* Be prepared to do that. */
#ifdef WITH_MPI
double
oldh
[
3
];
double
old
widt
h
[
3
];
double
oldcdim
[
3
];
int
*
oldnodeIDs
=
NULL
;
if
(
cdim
[
0
]
<
s
->
cdim
[
0
]
||
cdim
[
1
]
<
s
->
cdim
[
1
]
||
cdim
[
2
]
<
s
->
cdim
[
2
])
{
...
...
@@ -305,7 +305,7 @@ void space_regrid(struct space *s, double cell_max, int verbose) {
"basic cell dimensions have increased - recalculating the "
"global partition."
);
if
(
!
partition_space_to_space
(
oldh
,
oldcdim
,
oldnodeIDs
,
s
))
{
if
(
!
partition_space_to_space
(
old
widt
h
,
oldcdim
,
oldnodeIDs
,
s
))
{
/* Failed, try another technique that requires no settings. */
message
(
"Failed to get a new partition, trying less optimal method"
);
...
...
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