parcelThermo: Added copy constructor to clone the liquid and solid properties

This commit is contained in:
Henry Weller
2021-05-29 23:09:56 +01:00
parent 2a38355945
commit a6cf873a00
2 changed files with 10 additions and 0 deletions

View File

@ -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()

View File

@ -74,6 +74,9 @@ public:
//- Construct from carrier thermo
parcelThermo(const fluidThermo& carrierThermo);
//- Copy constructor
parcelThermo(const parcelThermo&);
//- Destructor
virtual ~parcelThermo();