← Back to team overview

yade-dev team mailing list archive

[Bug 724396] Re: crash after add particles in parallel mode

 

I don't think so. I think sizeof(vector<T>) is always
sizeof(size_t)+sizeof(void*), the array is allocated on the heap
dynamically. For the independent resizing: sounds fine, though sizes
should be re-synced in sync() before the summation loop, otherwise it
will run slower due to in-loop size checks.

-- 
You received this bug notification because you are a member of Yade
developers, which is the registrant for Yade.
https://bugs.launchpad.net/bugs/724396

Title:
  crash after add particles in parallel mode

Status in Yet Another Dynamic Engine:
  New

Bug description:
  Yade crash in parallel mode if to add particles after run of simulation.
  Attached script runs without errors in serial mode (-j 1 option),
  but in parallel mode (-j 2 or more) it crash at second O.run.



References