parcelThermo: Added copy constructor to clone the liquid and solid properties
This commit is contained in:
@ -64,6 +64,13 @@ Foam::parcelThermo::parcelThermo(const fluidThermo& carrierThermo)
|
||||
}
|
||||
|
||||
|
||||
Foam::parcelThermo::parcelThermo(const parcelThermo& pThermo)
|
||||
:
|
||||
liquids_(pThermo.liquids_, false),
|
||||
solids_(pThermo.solids_, false)
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||
|
||||
Foam::parcelThermo::~parcelThermo()
|
||||
|
||||
@ -74,6 +74,9 @@ public:
|
||||
//- Construct from carrier thermo
|
||||
parcelThermo(const fluidThermo& carrierThermo);
|
||||
|
||||
//- Copy constructor
|
||||
parcelThermo(const parcelThermo&);
|
||||
|
||||
|
||||
//- Destructor
|
||||
virtual ~parcelThermo();
|
||||
|
||||
Reference in New Issue
Block a user