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
5b975d78
Commit
5b975d78
authored
Dec 01, 2016
by
James Willis
Browse files
Compute the kernel using 2 vectors.
parent
915bb911
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/hydro/Gadget2/hydro_iact.h
View file @
5b975d78
...
...
@@ -430,9 +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
);
//kernel_deval_2_vec(&xi, &wi, &wi_dx,&xi2, &wi2, &wi_dx2);
kernel_deval_vec
(
&
xi
,
&
wi
,
&
wi_dx
);
kernel_deval_vec
(
&
xi2
,
&
wi2
,
&
wi_dx2
);
kernel_deval_2_vec
(
&
xi
,
&
wi
,
&
wi_dx
,
&
xi2
,
&
wi2
,
&
wi_dx2
);
/* Compute dv. */
dvx
.
v
=
vec_sub
(
vix
.
v
,
vjx
.
v
);
...
...
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