mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: consistent lookupOrDefault template parameters
- in many cases can just use lookupOrDefault("key", bool) instead of
lookupOrDefault<bool> or lookupOrDefault<Switch> since reading a
bool from an Istream uses the Switch(Istream&) anyhow
STYLE: relocated Switch string names into file-local scope
This commit is contained in:
@ -688,7 +688,7 @@ Foam::sampledTriSurfaceMesh::sampledTriSurfaceMesh
|
||||
),
|
||||
sampleSource_(samplingSourceNames_.lookup("source", dict)),
|
||||
needsUpdate_(true),
|
||||
keepIds_(dict.lookupOrDefault<Switch>("keepIds", false)),
|
||||
keepIds_(dict.lookupOrDefault("keepIds", false)),
|
||||
originalIds_(),
|
||||
zoneIds_(),
|
||||
sampleElements_(0),
|
||||
|
||||
@ -671,7 +671,7 @@ Foam::discreteSurface::discreteSurface
|
||||
interpolate_
|
||||
(
|
||||
allowInterpolate
|
||||
&& dict.lookupOrDefault<Switch>("interpolate", false)
|
||||
&& dict.lookupOrDefault("interpolate", false)
|
||||
),
|
||||
surface_
|
||||
(
|
||||
@ -688,7 +688,7 @@ Foam::discreteSurface::discreteSurface
|
||||
),
|
||||
sampleSource_(samplingSourceNames_.lookup("source", dict)),
|
||||
needsUpdate_(true),
|
||||
keepIds_(dict.lookupOrDefault<Switch>("keepIds", false)),
|
||||
keepIds_(dict.lookupOrDefault("keepIds", false)),
|
||||
originalIds_(),
|
||||
zoneIds_(),
|
||||
sampleElements_(0),
|
||||
|
||||
Reference in New Issue
Block a user