mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use default constructors/destructors for base cloud classes
- use cloud::defaultName instead of "defaultCloud" string literal
This commit is contained in:
committed by
Andrew Heather
parent
e90eafcf18
commit
037be8dbb0
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2017 OpenCFD Ltd.
|
||||
\\ / A nd | Copyright (C) 2017-2019 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -68,10 +68,10 @@ public:
|
||||
// Constructors
|
||||
|
||||
//- Construct given mesh
|
||||
passivePositionParticleCloud
|
||||
explicit passivePositionParticleCloud
|
||||
(
|
||||
const polyMesh&,
|
||||
const word& cloudName = "defaultCloud",
|
||||
const polyMesh& mesh,
|
||||
const word& cloudName = cloud::defaultName,
|
||||
bool readFields = true
|
||||
);
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd |
|
||||
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
| Copyright (C) 2015 OpenFOAM Foundation
|
||||
@ -59,10 +59,10 @@ public:
|
||||
// Constructors
|
||||
|
||||
//- Construct given mesh
|
||||
unmappedPassivePositionParticleCloud
|
||||
explicit unmappedPassivePositionParticleCloud
|
||||
(
|
||||
const polyMesh& mesh,
|
||||
const word& cloudName = "defaultCloud",
|
||||
const word& cloudName = cloud::defaultName,
|
||||
bool readFields = true
|
||||
)
|
||||
:
|
||||
@ -80,9 +80,12 @@ public:
|
||||
passivePositionParticleCloud(mesh, cloudName, particles)
|
||||
{}
|
||||
|
||||
//- Destructor
|
||||
virtual ~unmappedPassivePositionParticleCloud()
|
||||
{}
|
||||
|
||||
//- Destructor
|
||||
virtual ~unmappedPassivePositionParticleCloud() = default;
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
//- Switch off remapping of cells of particles when
|
||||
// mesh topology changes
|
||||
|
||||
Reference in New Issue
Block a user