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
543655ab
Commit
543655ab
authored
5 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Reset the limiter flag at the end of the function.
parent
7aecceea
No related branches found
No related tags found
1 merge request
!956
Fully implement the timestep limiter (non MPI)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/timestep_limiter.h
+6
-1
6 additions, 1 deletion
src/timestep_limiter.h
with
6 additions
and
1 deletion
src/timestep_limiter.h
+
6
−
1
View file @
543655ab
...
...
@@ -59,6 +59,8 @@ __attribute__((always_inline)) INLINE static integertime_t timestep_limit_part(
old_time_bin
=
-
p
->
wakeup
;
}
message
(
"Limiting particle %lld wakeup=%d"
,
p
->
id
,
p
->
wakeup
);
const
integertime_t
old_dti
=
old_ti_end
-
old_ti_beg
;
/* The new fake time-step the particle will be on */
...
...
@@ -137,7 +139,10 @@ __attribute__((always_inline)) INLINE static integertime_t timestep_limit_part(
new_ti_beg
+
new_dti
/
2
);
/* Remember the old time-bin */
p
->
wakeup
=
old_time_bin
;
if
(
p
->
wakeup
==
time_bin_awake
)
p
->
wakeup
=
old_time_bin
;
else
p
->
wakeup
=
time_bin_not_awake
;
/* Update the time bin of this particle */
p
->
time_bin
=
e
->
min_active_bin
;
...
...
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