Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
16c4113f
Commit
16c4113f
authored
8 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Bug fix in testSPHStep
parent
d2042445
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/testSPHStep.c
+8
-0
8 additions, 0 deletions
tests/testSPHStep.c
with
8 additions
and
0 deletions
tests/testSPHStep.c
+
8
−
0
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
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment