STYLE: use default constructors/destructors for base cloud classes

- use cloud::defaultName instead of "defaultCloud" string literal
This commit is contained in:
Mark Olesen
2019-08-02 17:22:00 +02:00
committed by Andrew Heather
parent e90eafcf18
commit 037be8dbb0
26 changed files with 83 additions and 234 deletions

View File

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

View File

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