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
301d41f8
Commit
301d41f8
authored
6 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Prevent FPE in in task_overlap(). But that FPE should not be there in the first place...
parent
db0dc02c
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!745
Rewrite of MPI loops - Add stellar feedback loops
,
!744
Mpi stars2 matthieu
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/task.c
+3
-0
3 additions, 0 deletions
src/task.c
with
3 additions
and
0 deletions
src/task.c
+
3
−
0
View file @
301d41f8
...
...
@@ -266,6 +266,9 @@ float task_overlap(const struct task *restrict ta,
if
(
tb
->
ci
!=
NULL
)
size_union
+=
tb
->
ci
->
hydro
.
count
;
if
(
tb
->
cj
!=
NULL
)
size_union
+=
tb
->
cj
->
hydro
.
count
;
// MATTHIEU: This should not be necessary
if
(
size_union
==
0
)
return
0
.
f
;
/* Compute the intersection of the cell data. */
const
size_t
size_intersect
=
task_cell_overlap_part
(
ta
->
ci
,
tb
->
ci
)
+
task_cell_overlap_part
(
ta
->
ci
,
tb
->
cj
)
+
...
...
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