Skip to content
GitLab
Menu
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
47777577
Commit
47777577
authored
Jul 07, 2020
by
Jacob Kegerreis
Browse files
Attempt workaround to avoid missing proxy creation
parent
933d1455
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
47777577
...
...
@@ -3190,7 +3190,7 @@ void engine_makeproxies(struct engine *e) {
/* Gravity needs to take the opening angle into account */
if
(
with_gravity
)
{
const
double
distance
=
2
.
*
r_max
*
theta_crit_inv
;
const
double
distance
=
4
.
*
r_max
*
theta_crit_inv
;
delta_cells
=
(
int
)(
distance
/
cells
[
0
].
dmin
)
+
1
;
}
...
...
src/engine_maketasks.c
View file @
47777577
...
...
@@ -1336,7 +1336,7 @@ void engine_make_self_gravity_tasks_mapper(void *map_data, int num_elements,
const
double
max_distance2
=
max_distance
*
max_distance
;
/* Compute how many cells away we need to walk */
const
double
distance
=
2
.
5
*
cells
[
0
].
width
[
0
]
/
theta_crit
;
const
double
distance
=
5
.
*
cells
[
0
].
width
[
0
]
/
theta_crit
;
int
delta
=
(
int
)(
distance
/
cells
[
0
].
width
[
0
])
+
1
;
int
delta_m
=
delta
;
int
delta_p
=
delta
;
...
...
Write
Preview
Supports
Markdown
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