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
be5295ea
Commit
be5295ea
authored
Feb 04, 2014
by
Pedro Gonnet
Browse files
links needs to be big enough to store _both_ density and force tasks.
Former-commit-id: ec9b6c537b539a4b0afc21e63b0693bb3fe0d76e
parent
e0bee388
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
be5295ea
...
...
@@ -977,7 +977,7 @@ void engine_maketasks ( struct engine *e ) {
/* Allocate the list of cell-task links. */
if
(
e
->
links
!=
NULL
)
free
(
e
->
links
);
if
(
(
e
->
links
=
malloc
(
sizeof
(
struct
link
)
*
s
->
tot_cells
*
27
)
)
==
NULL
)
if
(
(
e
->
links
=
malloc
(
sizeof
(
struct
link
)
*
s
->
tot_cells
*
27
*
2
)
)
==
NULL
)
error
(
"Failed to allocate cell-task links."
);
e
->
nr_links
=
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