diff --git a/src/lagrangian/intermediate/parcels/Templates/ReactingParcel/ReactingParcelI.H b/src/lagrangian/intermediate/parcels/Templates/ReactingParcel/ReactingParcelI.H index 033b34cd107b7f754aa18b50de4fb92df4d76c9a..f625bc50d313af1399e77d01c1a277deb447499f 100644 --- a/src/lagrangian/intermediate/parcels/Templates/ReactingParcel/ReactingParcelI.H +++ b/src/lagrangian/intermediate/parcels/Templates/ReactingParcel/ReactingParcelI.H @@ -61,26 +61,15 @@ inline Foam::ReactingParcel<ParcelType>::constantProperties::constantProperties ParcelType::constantProperties(parentDict), pMin_(this->dict_, "pMin", 1000.0), constantVolume_(this->dict_, "constantVolume", false), - volUpdateType_(this->dict_, "volumeUpdateMethod") + volUpdateType_(this->dict_, "volumeUpdateMethod", volumeUpadteType::mConstRho) { // If constantVolume found use it if (this->dict_.found("constantVolume")) { volUpdateType_.setValue(mUndefined); } - else + else if (this->dict_.found("volumeUpdateMethod")) { - if (!this->dict_.found("volumeUpdateMethod")) - { - FatalErrorInFunction - << "Either 'constantVolume' or 'volumeUpdateMethod' " << nl - << " must be provided. " << nl - << " The new keyword is 'volumeUpdateMethod'. " << nl - << " Available methods are : " << nl - << " constantRho, constantVolume or updateRhoAndVol. " << nl - << " 'constantVolume' is either true/false " << nl - << nl << exit(FatalError); - } const word volumeUpdateMethod ( this->dict_.getWord("volumeUpdateMethod")