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
0500b35d
Commit
0500b35d
authored
9 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Ported engine.c
parent
3eadd7a6
No related branches found
No related tags found
2 merge requests
!136
Master
,
!79
First version of the multiple time-stepping
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/cell.h
+1
-1
1 addition, 1 deletion
src/cell.h
src/engine.c
+168
-194
168 additions, 194 deletions
src/engine.c
src/space.c
+4
-2
4 additions, 2 deletions
src/space.c
with
173 additions
and
197 deletions
src/cell.h
+
1
−
1
View file @
0500b35d
...
...
@@ -111,7 +111,7 @@ struct cell {
int
nr_density
,
nr_force
,
nr_grav
;
/* The ghost task to link density to interactions. */
struct
task
*
ghost
,
*
kick1
,
*
kick
2
;
struct
task
*
ghost
,
*
init
,
*
drift
,
*
kick
;
/* Task receiving data. */
struct
task
*
recv_xv
,
*
recv_rho
;
...
...
This diff is collapsed.
Click to expand it.
src/engine.c
+
168
−
194
View file @
0500b35d
This diff is collapsed.
Click to expand it.
src/space.c
+
4
−
2
View file @
0500b35d
...
...
@@ -279,8 +279,10 @@ void space_regrid(struct space *s, double cell_max, int verbose) {
s
->
cells
[
k
].
sorted
=
0
;
s
->
cells
[
k
].
count
=
0
;
s
->
cells
[
k
].
gcount
=
0
;
s
->
cells
[
k
].
kick1
=
NULL
;
s
->
cells
[
k
].
kick2
=
NULL
;
s
->
cells
[
k
].
init
=
NULL
;
s
->
cells
[
k
].
ghost
=
NULL
;
s
->
cells
[
k
].
drift
=
NULL
;
s
->
cells
[
k
].
kick
=
NULL
;
s
->
cells
[
k
].
super
=
&
s
->
cells
[
k
];
}
s
->
maxdepth
=
0
;
...
...
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