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
2035c96b
Commit
2035c96b
authored
8 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Undo previous commit
parent
72de62ad
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/cell.c
+0
-22
0 additions, 22 deletions
src/cell.c
src/cell.h
+0
-1
0 additions, 1 deletion
src/cell.h
src/runner.c
+0
-11
0 additions, 11 deletions
src/runner.c
with
0 additions
and
34 deletions
src/cell.c
+
0
−
22
View file @
2035c96b
...
...
@@ -981,25 +981,3 @@ void cell_set_super(struct cell *c, struct cell *super) {
for
(
int
k
=
0
;
k
<
8
;
k
++
)
if
(
c
->
progeny
[
k
]
!=
NULL
)
cell_set_super
(
c
->
progeny
[
k
],
super
);
}
/**
* Set ti_old of a #cell and all its progenies to a new value.
*
* @param c The #cell.
* @param ti_current The new value of ti_old.
*/
void
cell_set_ti_old
(
struct
cell
*
c
,
int
ti_current
)
{
/* Set this cell */
c
->
ti_old
=
ti_current
;
/* Recurse */
if
(
c
->
split
)
{
for
(
int
k
=
0
;
k
<
8
;
++
k
)
{
if
(
c
->
progeny
[
k
]
!=
NULL
)
{
struct
cell
*
cp
=
c
->
progeny
[
k
];
cell_set_ti_old
(
cp
,
ti_current
);
}
}
}
}
This diff is collapsed.
Click to expand it.
src/cell.h
+
0
−
1
View file @
2035c96b
...
...
@@ -295,6 +295,5 @@ void cell_check_drift_point(struct cell *c, void *data);
int
cell_is_drift_needed
(
struct
cell
*
c
,
const
struct
engine
*
e
);
int
cell_unskip_tasks
(
struct
cell
*
c
,
struct
scheduler
*
s
);
void
cell_set_super
(
struct
cell
*
c
,
struct
cell
*
super
);
void
cell_set_ti_old
(
struct
cell
*
c
,
int
ti_current
);
#endif
/* SWIFT_CELL_H */
This diff is collapsed.
Click to expand it.
src/runner.c
+
0
−
11
View file @
2035c96b
...
...
@@ -838,17 +838,6 @@ static void runner_do_drift(struct cell *c, struct engine *e, int drift) {
/* Now, get the maximal particle motion from its square */
dx_max
=
sqrtf
(
dx2_max
);
/* Set ti_old on the sub-cells */
cell_set_ti_old
(
c
,
e
->
ti_current
);
/* Need to recurse to unskip if need be */
for
(
int
k
=
0
;
k
<
8
;
k
++
)
{
if
(
c
->
progeny
[
k
]
!=
NULL
)
{
struct
cell
*
cp
=
c
->
progeny
[
k
];
runner_do_drift
(
cp
,
e
,
0
);
}
}
}
/* Check that we are actually going to move forward. */
else
{
...
...
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