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
9b424893
Commit
9b424893
authored
4 months ago
by
Darwin
Browse files
Options
Downloads
Patches
Plain Diff
Debugging tasks dependencies in swallow_sink (sink swallow sink)
parent
ed25d7be
No related branches found
No related tags found
1 merge request
!2052
Draft: Sink MPI: Let's add the physics
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/runner_doiact_functions_sinks.h
+20
-4
20 additions, 4 deletions
src/runner_doiact_functions_sinks.h
with
20 additions
and
4 deletions
src/runner_doiact_functions_sinks.h
+
20
−
4
View file @
9b424893
...
...
@@ -292,10 +292,26 @@ void DO_NONSYM_PAIR1_SINKS_NAIVE(struct runner *r, struct cell *restrict ci,
#ifdef SWIFT_DEBUG_CHECKS
/* Check that particles have been drifted to the current time */
if
(
si
->
ti_drift
!=
e
->
ti_current
)
error
(
"Particle si not drifted to current time"
);
if
(
sj
->
ti_drift
!=
e
->
ti_current
)
error
(
"Particle sj not drifted to current time"
);
if
(
si
->
ti_drift
!=
e
->
ti_current
)
{
scheduler_write_cell_dependencies_debug
(
&
r
->
e
->
sched
,
e
->
verbose
,
e
->
step
,
ci
);
scheduler_write_cell_dependencies_debug
(
&
r
->
e
->
sched
,
e
->
verbose
,
e
->
step
,
cj
);
error
(
"Particle si not drifted to current time. si->id = %lld, sj->id = %lld | i: hydro super = %lld, grav super = %lld,"
" top = %lld, c = %lld | j hydro super = %lld, grav super = %lld,"
" top = %lld, c = %lld"
,
si
->
id
,
sj
->
id
,
ci
->
hydro
.
super
->
cellID
,
ci
->
grav
.
super
->
cellID
,
ci
->
top
->
cellID
,
ci
->
cellID
,
cj
->
hydro
.
super
->
cellID
,
cj
->
grav
.
super
->
cellID
,
cj
->
top
->
cellID
,
cj
->
cellID
);
}
if
(
sj
->
ti_drift
!=
e
->
ti_current
)
{
scheduler_write_cell_dependencies_debug
(
&
r
->
e
->
sched
,
e
->
verbose
,
e
->
step
,
ci
);
scheduler_write_cell_dependencies_debug
(
&
r
->
e
->
sched
,
e
->
verbose
,
e
->
step
,
cj
);
error
(
"Particle sj not drifted to current time. si->id = %lld, sj->id = %lld | i: hydro super = %lld, grav super = %lld,"
" top = %lld, c = %lld | j hydro super = %lld, grav super = %lld,"
" top = %lld, c = %lld"
,
si
->
id
,
sj
->
id
,
ci
->
hydro
.
super
->
cellID
,
ci
->
grav
.
super
->
cellID
,
ci
->
top
->
cellID
,
ci
->
cellID
,
cj
->
hydro
.
super
->
cellID
,
cj
->
grav
.
super
->
cellID
,
cj
->
top
->
cellID
,
cj
->
cellID
);
}
#endif
if
(
r2
<
hig2
||
r2
<
hjg2
)
{
...
...
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