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
071fe57c
Commit
071fe57c
authored
8 years ago
by
Pedro Gonnet
Browse files
Options
Downloads
Patches
Plain Diff
clean up sub-cell task activation, currently switched off for testing.
parent
05ea1995
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!343
Subset sorting
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cell.c
+16
-18
16 additions, 18 deletions
src/cell.c
with
16 additions
and
18 deletions
src/cell.c
+
16
−
18
View file @
071fe57c
...
...
@@ -1541,38 +1541,36 @@ void cell_activate_subcell_tasks(struct cell *ci, struct cell *cj,
int
sid
=
space_getsid
(
s
->
space
,
&
ci
,
&
cj
,
shift
);
if
(
ci
->
dx_max_sort
>
space_maxreldx
*
ci
->
dmin
)
{
for
(
struct
cell
*
finger
=
ci
;
finger
!=
NULL
;
finger
=
finger
->
parent
)
for
(
struct
cell
*
finger
=
ci
;
finger
!=
NULL
;
finger
=
finger
->
parent
)
{
finger
->
sorted
=
0
;
if
(
finger
->
requires_sorts
==
ti_current
)
scheduler_activate
(
s
,
finger
->
sorts
);
}
}
if
(
!
(
ci
->
sorted
&
(
1
<<
sid
)))
{
atomic_or
(
&
ci
->
sorts
->
flags
,
1
<<
sid
);
if
(
!
(
ci
->
sorted
&
(
1
<<
t
->
flags
)))
{
atomic_or
(
&
ci
->
sorts
->
flags
,
(
1
<<
t
->
flags
)
);
scheduler_activate
(
s
,
ci
->
sorts
);
if
(
ci
->
nodeID
==
engine_rank
)
scheduler_activate
(
s
,
ci
->
drift
);
}
if
(
cj
->
dx_max_sort
>
space_maxreldx
*
cj
->
dmin
)
{
for
(
struct
cell
*
finger
=
cj
;
finger
!=
NULL
;
finger
=
finger
->
parent
)
for
(
struct
cell
*
finger
=
cj
;
finger
!=
NULL
;
finger
=
finger
->
parent
)
{
finger
->
sorted
=
0
;
if
(
finger
->
requires_sorts
==
ti_current
)
scheduler_activate
(
s
,
finger
->
sorts
);
}
}
if
(
!
(
cj
->
sorted
&
(
1
<<
sid
)))
{
atomic_or
(
&
cj
->
sorts
->
flags
,
1
<<
sid
);
if
(
!
(
cj
->
sorted
&
(
1
<<
t
->
flags
)))
{
atomic_or
(
&
cj
->
sorts
->
flags
,
(
1
<<
t
->
flags
)
);
scheduler_activate
(
s
,
cj
->
sorts
);
if
(
cj
->
nodeID
==
engine_rank
)
scheduler_activate
(
s
,
cj
->
drift
);
}
ci
->
requires_sorts
=
ti_current
;
cj
->
requires_sorts
=
ti_current
;
ci
->
dx_max_sort_old
=
ci
->
dx_max_sort
;
cj
->
dx_max_sort_old
=
cj
->
dx_max_sort
;
}
}
/**
* @brief Recursively store the values for dx_max_old and h_max_old.
*/
void
cell_store_pre_drift_values
(
struct
cell
*
c
)
{
c
->
h_max_old
=
c
->
h_max
;
c
->
dx_max_old
=
c
->
dx_max
;
if
(
c
->
split
)
for
(
int
i
=
0
;
i
<
8
;
i
++
)
if
(
c
->
progeny
[
i
]
!=
NULL
)
cell_store_pre_drift_values
(
c
->
progeny
[
i
]);
}
/**
* @brief Un-skips all the tasks associated with a given cell and checks
* if the space needs to be rebuilt.
...
...
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