mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updated clone function for passive/indexed particle
This commit is contained in:
@ -108,9 +108,12 @@ public:
|
||||
{}
|
||||
|
||||
//- Construct and return a clone
|
||||
autoPtr<indexedParticle> clone() const
|
||||
virtual autoPtr<Particle<indexedParticle> > clone() const
|
||||
{
|
||||
return autoPtr<indexedParticle>(new indexedParticle(*this));
|
||||
return autoPtr<Particle<indexedParticle> >
|
||||
(
|
||||
new indexedParticle(*this)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -99,9 +99,12 @@ public:
|
||||
{}
|
||||
|
||||
//- Construct and return a clone
|
||||
autoPtr<passiveParticle> clone() const
|
||||
virtual autoPtr<Particle<passiveParticle> > clone() const
|
||||
{
|
||||
return autoPtr<passiveParticle>(new passiveParticle(*this));
|
||||
return autoPtr<Particle<passiveParticle> >
|
||||
(
|
||||
new passiveParticle(*this)
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user