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
ad6842f9
Commit
ad6842f9
authored
May 12, 2017
by
James Willis
Browse files
Use two vectors to compute the kernel.
parent
018b903a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/hydro/Gadget2/hydro_iact.h
View file @
ad6842f9
...
...
@@ -1549,8 +1549,7 @@ __attribute__((always_inline)) INLINE static void runner_iact_nonsym_2_vec_force
hid_inv
=
pow_dimension_plus_one_vec
(
*
hi_inv
);
xi
.
v
=
r
.
v
*
hi_inv
->
v
;
xi_2
.
v
=
r_2
.
v
*
hi_inv
->
v
;
kernel_deval_1_vec
(
&
xi
,
&
wi
,
&
wi_dx
);
kernel_deval_1_vec
(
&
xi_2
,
&
wi_2
,
&
wi_dx_2
);
kernel_deval_2_vec
(
&
xi
,
&
wi
,
&
wi_dx
,
&
xi_2
,
&
wi_2
,
&
wi_dx_2
);
wi_dr
.
v
=
hid_inv
.
v
*
wi_dx
.
v
;
wi_dr_2
.
v
=
hid_inv
.
v
*
wi_dx_2
.
v
;
...
...
@@ -1957,9 +1956,7 @@ __attribute__((always_inline)) INLINE static void runner_iact_nonsym_2_vec_force
hid_inv
=
pow_dimension_plus_one_vec
(
*
hi_inv
);
xi
.
v
=
r
.
v
*
hi_inv
->
v
;
xi_2
.
v
=
r_2
.
v
*
hi_inv
->
v
;
/* TODO: kernel_deval_2_vec */
kernel_deval_1_vec
(
&
xi
,
&
wi
,
&
wi_dx
);
kernel_deval_1_vec
(
&
xi_2
,
&
wi_2
,
&
wi_dx_2
);
kernel_deval_2_vec
(
&
xi
,
&
wi
,
&
wi_dx
,
&
xi_2
,
&
wi_2
,
&
wi_dx_2
);
wi_dr
.
v
=
hid_inv
.
v
*
wi_dx
.
v
;
wi_dr_2
.
v
=
hid_inv
.
v
*
wi_dx_2
.
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