Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
c2790396
Commit
c2790396
authored
Mar 23, 2016
by
Matthieu Schaller
Browse files
One missing instance of task_type_psort in engine.c
parent
6afeba8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/engine.c
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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment