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
547fb37f
Commit
547fb37f
authored
Aug 24, 2017
by
James Willis
Browse files
Account for separations of zero.
parent
442892a3
Changes
1
Show whitespace changes
Inline
Side-by-side
src/runner_doiact_vec.c
View file @
547fb37f
...
...
@@ -746,6 +746,9 @@ for (int pid = 0; pid < count; pid++) {
v_hj
.
v
=
vec_load
(
&
cell_cache
->
h
[
pjd
]);
v_hj_inv
=
vec_reciprocal
(
v_hj
);
/* To stop floating point exceptions for when particle separations are 0. */
v_r2
.
v
=
vec_add
(
v_r2
.
v
,
vec_set1
(
FLT_MIN
));
runner_iact_nonsym_1_vec_force
(
&
v_r2
,
&
v_dx
,
&
v_dy
,
&
v_dz
,
v_vix
,
v_viy
,
v_viz
,
v_rhoi
,
v_grad_hi
,
v_pOrhoi2
,
v_balsara_i
,
v_ci
,
...
...
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