Skip to content
Snippets Groups Projects
Commit a0645533 authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: Updated write() function of ParticleTracks model

parent 70c11770
Branches
Tags
No related merge requests found
......@@ -33,7 +33,7 @@ License
template<class CloudType>
void Foam::ParticleTracks<CloudType>::write()
{
if (this->owner().solution().writeThisStep())
if (cloudPtr_.valid())
{
cloudPtr_->write();
......@@ -42,6 +42,14 @@ void Foam::ParticleTracks<CloudType>::write()
cloudPtr_->clear();
}
}
else
{
if (debug)
{
Info<< "void Foam::ParticleTracks<CloudType>::write()" << nl
<< "cloupPtr invalid" << endl;
}
}
}
......
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