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
16c4113f
Commit
16c4113f
authored
Jul 20, 2016
by
Matthieu Schaller
Browse files
Bug fix in testSPHStep
parent
d2042445
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/testSPHStep.c
View file @
16c4113f
...
...
@@ -96,10 +96,16 @@ void runner_dopair2_force(struct runner *r, struct cell *ci, struct cell *cj);
/* Run a full time step integration for one cell */
int
main
()
{
#ifndef DEFAULT_SPH
return
0
;
#else
int
i
,
j
,
k
,
offset
[
3
];
struct
part
*
p
;
struct
hydro_props
hp
;
hp
.
target_neighbours
=
48
.;
hp
.
delta_neighbours
=
1
.;
hp
.
max_smoothing_iterations
=
30
;
int
N
=
10
;
float
dim
=
1
.;
...
...
@@ -144,6 +150,7 @@ int main() {
struct
engine
e
;
e
.
s
=
&
space
;
e
.
hydro_properties
=
&
hp
;
struct
runner
r
;
r
.
e
=
&
e
;
...
...
@@ -197,4 +204,5 @@ int main() {
free
(
ci
->
xparts
);
return
0
;
#endif
}
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