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
7be1971e
Commit
7be1971e
authored
Apr 20, 2016
by
James Willis
Browse files
Missed last 2 lines to update w and dw_dx.
parent
2154aa0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/kernel_hydro.h
View file @
7be1971e
...
...
@@ -212,8 +212,6 @@ __attribute__((always_inline)) INLINE static void kernel_eval(float u,
*
W
=
w
*
(
float
)
kernel_constant
*
(
float
)
kernel_igamma3
;
}
#define VECTORIZE
#ifdef VECTORIZE
/**
...
...
@@ -252,6 +250,11 @@ __attribute__((always_inline))
dw_dx
->
v
=
(
dw_dx
->
v
*
x
.
v
)
+
w
->
v
;
w
->
v
=
(
x
.
v
*
w
->
v
)
+
c
[
k
].
v
;
}
/* Return everything */
w
->
v
=
w
->
v
*
vec_set1
((
float
)
kernel_constant
)
*
vec_set1
((
float
)
kernel_igamma3
);
dw_dx
->
v
=
dw_dx
->
v
*
vec_set1
((
float
)
kernel_constant
)
*
vec_set1
((
float
)
kernel_igamma4
);
}
#endif
...
...
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