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
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ License ...@@ -33,7 +33,7 @@ License
template<class CloudType> template<class CloudType>
void Foam::ParticleTracks<CloudType>::write() void Foam::ParticleTracks<CloudType>::write()
{ {
if (this->owner().solution().writeThisStep()) if (cloudPtr_.valid())
{ {
cloudPtr_->write(); cloudPtr_->write();
...@@ -42,6 +42,14 @@ void Foam::ParticleTracks<CloudType>::write() ...@@ -42,6 +42,14 @@ void Foam::ParticleTracks<CloudType>::write()
cloudPtr_->clear(); cloudPtr_->clear();
} }
} }
else
{
if (debug)
{
Info<< "void Foam::ParticleTracks<CloudType>::write()" << nl
<< "cloupPtr invalid" << endl;
}
}
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment