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
4f93e8c8
Commit
4f93e8c8
authored
8 years ago
by
Matthieu Schaller
Committed by
James Willis
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Reset the particles for every run in test125.
parent
0167dd62
No related branches found
No related tags found
1 merge request
!406
Doself2 vectorisation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test125cells.c
+10
-3
10 additions, 3 deletions
tests/test125cells.c
with
10 additions
and
3 deletions
tests/test125cells.c
+
10
−
3
View file @
4f93e8c8
/*******************************************************************************
* This file is part of SWIFT.
* Copyright (C) 2016 Matthieu Schaller (matthieu.schaller@durham.ac.uk).
...
...
@@ -543,9 +544,9 @@ int main(int argc, char *argv[]) {
/* Build the infrastructure */
struct
space
space
;
space
.
periodic
=
1
;
space
.
dim
[
0
]
=
3
.;
space
.
dim
[
1
]
=
3
.;
space
.
dim
[
2
]
=
3
.;
space
.
dim
[
0
]
=
5
.;
space
.
dim
[
1
]
=
5
.;
space
.
dim
[
2
]
=
5
.;
hydro_space_init
(
&
space
.
hs
,
&
space
);
struct
phys_const
prog_const
;
...
...
@@ -699,6 +700,12 @@ int main(int argc, char *argv[]) {
outputFileNameExtension
);
dump_particle_fields
(
outputFileName
,
main_cell
,
solution
,
0
);
}
/* Reset stuff */
for
(
int
i
=
0
;
i
<
125
;
++
i
)
{
for
(
int
n
=
0
;
n
<
cells
[
i
]
->
count
;
++
n
)
hydro_init_part
(
&
cells
[
i
]
->
parts
[
n
],
&
space
.
hs
);
}
}
/* Output timing */
...
...
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