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
15bc59f4
Commit
15bc59f4
authored
9 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
New drift and kick tasks in runner.c
parent
ed6c9011
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/part.h
+2
-2
2 additions, 2 deletions
src/part.h
src/runner.c
+237
-365
237 additions, 365 deletions
src/runner.c
src/space.c
+3
-3
3 additions, 3 deletions
src/space.c
with
242 additions
and
370 deletions
src/part.h
+
2
−
2
View file @
15bc59f4
...
...
@@ -32,8 +32,8 @@ struct xpart {
/* Old position, at last tree rebuild. */
double
x_old
[
3
];
/* Velocity at the
half-
step. */
float
v_
hdt
[
3
];
/* Velocity at the
last full
step. */
float
v_
full
[
3
];
/* Entropy at the half-step. */
float
u_hdt
;
...
...
This diff is collapsed.
Click to expand it.
src/runner.c
+
237
−
365
View file @
15bc59f4
This diff is collapsed.
Click to expand it.
src/space.c
+
3
−
3
View file @
15bc59f4
...
...
@@ -1123,9 +1123,9 @@ void space_init(struct space *s, double dim[3], struct part *parts, int N,
for
(
int
k
=
0
;
k
<
N
;
k
++
)
{
struct
part
*
p
=
&
parts
[
k
];
struct
xpart
*
xp
=
&
s
->
xparts
[
k
];
xp
->
v_
hdt
[
0
]
=
p
->
v
[
0
];
xp
->
v_
hdt
[
1
]
=
p
->
v
[
1
];
xp
->
v_
hdt
[
2
]
=
p
->
v
[
2
];
xp
->
v_
full
[
0
]
=
p
->
v
[
0
];
xp
->
v_
full
[
1
]
=
p
->
v
[
1
];
xp
->
v_
full
[
2
]
=
p
->
v
[
2
];
xp
->
u_hdt
=
p
->
u
;
}
...
...
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