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

display n-D on construction

- also serves to initialise mesh.geometricD() and mesh.solutionD()
  - lazy evaluation of calcDirections() caused prob when running in parallel
parent 3f4dae46
Branches
Tags
No related merge requests found
......@@ -301,6 +301,12 @@ Foam::InjectionModel<CloudType>::InjectionModel
time0_(owner.db().time().value()),
timeStep0_(0.0)
{
// Provide some info
// - also serves to initialise mesh dimensions - needed for parallel runs
// due to lazy evaluation of valid mesh dimensions
Info<< " Constructing " << owner.mesh().nGeometricD() << "-D injection"
<< endl;
word parcelBasisType = coeffDict_.lookup("parcelBasisType");
if (parcelBasisType == "mass")
{
......@@ -341,6 +347,11 @@ template<class CloudType>
template<class TrackData>
void Foam::InjectionModel<CloudType>::inject(TrackData& td)
{
if (!active())
{
return;
}
const scalar time = owner_.db().time().value();
const scalar continuousDt = owner_.db().time().deltaT().value();
......
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