mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use UPtrList::test() instead of separate bounds checking
This commit is contained in:
@ -368,11 +368,7 @@ Description
|
||||
{
|
||||
const label nPatchFields =
|
||||
(
|
||||
(
|
||||
writeri < patchInterps.size() && patchInterps.set(writeri)
|
||||
? nVolFields
|
||||
: 0
|
||||
)
|
||||
(patchInterps.test(writeri) ? nVolFields : 0)
|
||||
+ nPointFields
|
||||
);
|
||||
|
||||
|
||||
@ -116,7 +116,7 @@ label writeVolFields
|
||||
label writeri = 0;
|
||||
for (vtk::patchWriter& writer : patchWriters)
|
||||
{
|
||||
if (writeri < patchInterps.size() && patchInterps.set(writeri))
|
||||
if (patchInterps.test(writeri))
|
||||
{
|
||||
writer.write(tfield(), patchInterps[writeri]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user