mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: use dictionary findDict() instead of isDict() + subDict()
- avoids redundant dictionary searching STYLE: remove dictionary lookupOrDefaultCompat wrapper - deprecated and replaced by getOrDefaultCompat (2019-05). The function is usually specific to internal keyword upgrading (version compatibility) and unlikely to exist in any user code.
This commit is contained in:
@ -60,18 +60,16 @@ int main(int argc, char *argv[])
|
||||
)
|
||||
).subDict("volumetricBSplinesMotionSolverCoeffs")
|
||||
);
|
||||
// Read box names and allocate size
|
||||
wordList controlBoxes(NURBSdict.toc());
|
||||
|
||||
for (const word& boxName : controlBoxes)
|
||||
for (const entry& dEntry : NURBSdict)
|
||||
{
|
||||
if (NURBSdict.isDict(boxName))
|
||||
if (dEntry.isDict())
|
||||
{
|
||||
// Creating an object writes the control points in the
|
||||
// constructor
|
||||
NURBS3DVolume::New
|
||||
(void) NURBS3DVolume::New
|
||||
(
|
||||
NURBSdict.subDict(boxName),
|
||||
dEntry.dict(),
|
||||
mesh,
|
||||
false // do not compute parametric coordinates
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user