mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Moved call to buildCellOccupancy() to within collisions. Was calling before move() had been called, so some particles were changing processor when running in parallel and invalidating the pointers.
This commit is contained in:
@ -210,6 +210,8 @@ void Foam::DsmcCloud<ParcelType>::initialise
|
||||
template<class ParcelType>
|
||||
void Foam::DsmcCloud<ParcelType>::collisions()
|
||||
{
|
||||
buildCellOccupancy();
|
||||
|
||||
scalar deltaT = mesh_.time().deltaT().value();
|
||||
|
||||
label collisionCandidates = 0;
|
||||
@ -451,8 +453,6 @@ Foam::DsmcCloud<ParcelType>::~DsmcCloud()
|
||||
template<class ParcelType>
|
||||
void Foam::DsmcCloud<ParcelType>::evolve()
|
||||
{
|
||||
buildCellOccupancy();
|
||||
|
||||
typename ParcelType::trackData td(*this);
|
||||
|
||||
//this->injection().inject(td);
|
||||
|
||||
Reference in New Issue
Block a user