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
61d02e00
Commit
61d02e00
authored
Dec 02, 2016
by
James Willis
Browse files
Comments
parent
200dcdb9
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/hydro/Gadget2/hydro_iact.h
View file @
61d02e00
...
...
@@ -403,7 +403,7 @@ runner_iact_nonsym_2_vec_density(float *R2, float *Dx, float *Dy, float *Dz, vec
vector
dvdr2
;
vector
curlvrx2
,
curlvry2
,
curlvrz2
;
/*
Get
the
masse
s. */
/*
Fill
the
vector
s. */
mj
.
v
=
vec_load
(
Mj
);
mj2
.
v
=
vec_load
(
&
Mj
[
VEC_SIZE
]);
vjx
.
v
=
vec_load
(
Vjx
);
...
...
@@ -430,6 +430,7 @@ runner_iact_nonsym_2_vec_density(float *R2, float *Dx, float *Dy, float *Dz, vec
xi
.
v
=
vec_mul
(
r
.
v
,
hi_inv
.
v
);
xi2
.
v
=
vec_mul
(
r_2
.
v
,
hi_inv
.
v
);
/* Calculate the kernel for two particles. */
kernel_deval_2_vec
(
&
xi
,
&
wi
,
&
wi_dx
,
&
xi2
,
&
wi2
,
&
wi_dx2
);
/* Compute dv. */
...
...
src/kernel_hydro.h
View file @
61d02e00
...
...
@@ -363,6 +363,7 @@ __attribute__((always_inline)) INLINE static void kernel_deval_vec(
dw_dx
->
v
*
kernel_constant_vec
.
v
*
kernel_gamma_inv_dim_plus_one_vec
.
v
;
}
/* Define constant vectors for the Wendland C2 kernel coefficients. */
#ifdef WENDLAND_C2_KERNEL
static
const
vector
c0
=
FILL_VEC
(
4
.
f
);
static
const
vector
c1
=
FILL_VEC
(
-
15
.
f
);
...
...
@@ -373,7 +374,7 @@ static const vector c5 = FILL_VEC(1.f);
#endif
/**
* @brief Computes the kernel function and its derivative using
two
interleaved vectors.
* @brief Computes the kernel function and its derivative
for two particles
using interleaved vectors.
*
* Return 0 if $u > \\gamma = H/h$
*
...
...
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