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
c2790396
Commit
c2790396
authored
9 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
One missing instance of task_type_psort in engine.c
parent
6afeba8b
No related branches found
No related tags found
1 merge request
!128
Parallel gpart sort
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/engine.c
+9
-4
9 additions, 4 deletions
src/engine.c
with
9 additions
and
4 deletions
src/engine.c
+
9
−
4
View file @
c2790396
...
...
@@ -261,9 +261,11 @@ void engine_redistribute(struct engine *e) {
/* Verify that all parts are in the right place. */
/* for ( int k = 0 ; k < nr_parts ; k++ ) {
int cid = cell_getid( cdim , parts_new[k].x[0]*ih[0], parts_new[k].x[1]*ih[1], parts_new[k].x[2]*ih[2] );
int cid = cell_getid( cdim , parts_new[k].x[0]*ih[0],
parts_new[k].x[1]*ih[1], parts_new[k].x[2]*ih[2] );
if ( cells[ cid ].nodeID != nodeID )
error( "Received particle (%i) that does not belong here (nodeID=%i).", k , cells[ cid ].nodeID );
error( "Received particle (%i) that does not belong here
(nodeID=%i).", k , cells[ cid ].nodeID );
} */
/* Set the new part data, free the old. */
...
...
@@ -1078,9 +1080,12 @@ void engine_maketasks(struct engine *e) {
scheduler_reset
(
sched
,
s
->
tot_cells
*
engine_maxtaskspercell
);
/* Add the space sorting tasks. */
for
(
int
i
=
0
;
i
<
e
->
nr_threads
;
i
++
)
scheduler_addtask
(
sched
,
task_type_psort
,
task_subtype_none
,
i
,
0
,
NULL
,
for
(
int
i
=
0
;
i
<
e
->
nr_threads
;
i
++
)
{
scheduler_addtask
(
sched
,
task_type_p
art_
sort
,
task_subtype_none
,
i
,
0
,
NULL
,
NULL
,
0
);
scheduler_addtask
(
sched
,
task_type_gpart_sort
,
task_subtype_none
,
i
,
0
,
NULL
,
NULL
,
0
);
}
/* Construct the firt hydro loop over neighbours */
engine_make_hydroloop_tasks
(
e
);
...
...
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