mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use list methods find/found instead of findIndex function
This commit is contained in:
@ -173,7 +173,7 @@ int main(int argc, char *argv[])
|
||||
collectFieldList(psytf, patchi, fieldToType);
|
||||
collectFieldList(ptf, patchi, fieldToType);
|
||||
|
||||
label groupI = findIndex(fieldToTypes, fieldToType);
|
||||
label groupI = fieldToTypes.find(fieldToType);
|
||||
if (groupI == -1)
|
||||
{
|
||||
DynamicList<label> group(1);
|
||||
|
||||
Reference in New Issue
Block a user