Commit be5295ea authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

links needs to be big enough to store _both_ density and force tasks.


Former-commit-id: ec9b6c537b539a4b0afc21e63b0693bb3fe0d76e
parent e0bee388
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment