Commit 4fa5f74f authored by Andrew Heather's avatar Andrew Heather
Browse files

using null constructor for none option

parent c4ac52e6
......@@ -30,6 +30,14 @@ Description
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class CloudType>
Foam::DispersionModel<CloudType>::DispersionModel(CloudType& owner)
:
dict_(dictionary::null),
owner_(owner)
{}
template<class CloudType>
Foam::DispersionModel<CloudType>::DispersionModel
(
......
......@@ -81,6 +81,9 @@ public:
// Constructors
//- Construct null from owner
DispersionModel(CloudType& owner);
//- Construct from components
DispersionModel
(
......
......@@ -33,11 +33,11 @@ Description
template<class CloudType>
Foam::NoDispersion<CloudType>::NoDispersion
(
const dictionary& dict,
const dictionary&,
CloudType& owner
)
:
DispersionModel<CloudType>(dict, owner)
DispersionModel<CloudType>(owner)
{}
......
......@@ -26,7 +26,7 @@ Class
Foam::NoDispersion
Description
No turbulent dispersion of the parcels
Place holder for 'none' option
\*---------------------------------------------------------------------------*/
......@@ -41,7 +41,7 @@ namespace Foam
{
/*---------------------------------------------------------------------------*\
Class NoDispersion Declaration
Class NoDispersion Declaration
\*---------------------------------------------------------------------------*/
template<class CloudType>
......@@ -52,7 +52,7 @@ class NoDispersion
public:
//- Runtime type information
TypeName("NoDispersion");
TypeName("none");
// Constructors
......
Supports Markdown
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