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
05c71340
Commit
05c71340
authored
6 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Better naming convention for the function deciding whether a task can be split in the hydro case.
parent
1eed6369
No related branches found
No related tags found
1 merge request
!576
Gravity splittask (non-MPI)
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/cell.h
+2
-2
2 additions, 2 deletions
src/cell.h
src/scheduler.c
+2
-2
2 additions, 2 deletions
src/scheduler.c
with
4 additions
and
4 deletions
src/cell.h
+
2
−
2
View file @
05c71340
...
...
@@ -568,7 +568,7 @@ __attribute__((always_inline)) INLINE static int cell_can_recurse_in_self_task(
*
* @param c The #cell.
*/
__attribute__
((
always_inline
))
INLINE
static
int
cell_can_split_pair_task
(
__attribute__
((
always_inline
))
INLINE
static
int
cell_can_split_pair_
hydro_
task
(
const
struct
cell
*
c
)
{
/* Is the cell split ? */
...
...
@@ -585,7 +585,7 @@ __attribute__((always_inline)) INLINE static int cell_can_split_pair_task(
*
* @param c The #cell.
*/
__attribute__
((
always_inline
))
INLINE
static
int
cell_can_split_self_task
(
__attribute__
((
always_inline
))
INLINE
static
int
cell_can_split_self_
hydro_
task
(
const
struct
cell
*
c
)
{
/* Is the cell split ? */
...
...
This diff is collapsed.
Click to expand it.
src/scheduler.c
+
2
−
2
View file @
05c71340
...
...
@@ -360,7 +360,7 @@ static void scheduler_splittask_hydro(struct task *t, struct scheduler *s) {
}
/* Is this cell even split and the task does not violate h ? */
if
(
cell_can_split_self_task
(
ci
))
{
if
(
cell_can_split_self_
hydro_
task
(
ci
))
{
/* Make a sub? */
if
(
scheduler_dosub
&&
ci
->
count
<
space_subsize_self_hydro
)
{
...
...
@@ -419,7 +419,7 @@ static void scheduler_splittask_hydro(struct task *t, struct scheduler *s) {
const
int
sid
=
space_getsid
(
s
->
space
,
&
ci
,
&
cj
,
shift
);
/* Should this task be split-up? */
if
(
cell_can_split_pair_task
(
ci
)
&&
cell_can_split_pair_task
(
cj
))
{
if
(
cell_can_split_pair_
hydro_
task
(
ci
)
&&
cell_can_split_pair_
hydro_
task
(
cj
))
{
/* Replace by a single sub-task? */
if
(
scheduler_dosub
&&
/* Use division to avoid integer overflow. */
...
...
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