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
4a3f0925
Commit
4a3f0925
authored
Jun 05, 2013
by
Pedro Gonnet
Browse files
bugfix.
Former-commit-id: 95e1f8c5f70ade08e52225d9a24e750d97a46d38
parent
54448de7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
4a3f0925
...
...
@@ -281,15 +281,15 @@ void engine_map_kick_first ( struct cell *c , void *data ) {
else
{
/* Init with the first non-null child. */
for
(
k
=
0
;
c
->
progeny
[
k
]
==
NULL
;
k
++
);
dt_min
=
c
->
progeny
[
k
]
->
dt_min
;
dt_max
=
c
->
progeny
[
k
]
->
dt_max
;
h_max
=
c
->
progeny
[
k
]
->
h_max
;
dx_max
=
c
->
progeny
[
k
]
->
dx_max
;
dt_min
=
FLT_MAX
;
dt_max
=
0
.
0
f
;
h_max
=
0
.
0
f
;
dx_max
=
0
.
0
f
;
/* Loop over the remaining progeny. */
for
(
k
+
=
1
;
k
<
8
;
k
++
)
for
(
k
=
0
;
k
<
8
;
k
++
)
if
(
c
->
progeny
[
k
]
!=
NULL
)
{
engine_map_kick_first
(
c
->
progeny
[
k
]
,
e
);
dt_min
=
fminf
(
dt_min
,
c
->
progeny
[
k
]
->
dt_min
);
dt_max
=
fmaxf
(
dt_max
,
c
->
progeny
[
k
]
->
dt_max
);
h_max
=
fmaxf
(
h_max
,
c
->
progeny
[
k
]
->
h_max
);
...
...
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