Skip to content
GitLab
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
2d34a8e0
Commit
2d34a8e0
authored
May 01, 2017
by
Matthieu Schaller
Browse files
Do not recurse in runner_do_timestep() if the cell is inactive. Just reset the counters to zero.
parent
6777c37c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/runner.c
View file @
2d34a8e0
...
...
@@ -1135,6 +1135,14 @@ void runner_do_timestep(struct runner *r, struct cell *c, int timer) {
TIMER_TIC
;
/* Anything to do here? */
if
(
!
cell_is_active
(
c
,
e
))
{
c
->
updated
=
0
;
c
->
g_updated
=
0
;
c
->
s_updated
=
0
;
return
;
}
int
updated
=
0
,
g_updated
=
0
,
s_updated
=
0
;
integertime_t
ti_end_min
=
max_nr_timesteps
,
ti_end_max
=
0
,
ti_beg_max
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment