mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Apply coding style recommendations:
- space between keyword and bracket in 'for(..)', 'if(..)', 'while(..)'
This commit is contained in:
@ -38,7 +38,7 @@ Foam::label Foam::router::count(const label weight) const
|
||||
{
|
||||
cnt += weights_[nodeI];
|
||||
}
|
||||
|
||||
|
||||
return cnt;
|
||||
}
|
||||
|
||||
@ -315,7 +315,7 @@ bool Foam::router::route(const labelList& path, const label pathValue)
|
||||
setWeights(0, path[0]);
|
||||
|
||||
// Check if all endPoints can be reached
|
||||
for(label leafI = 1; leafI < path.size(); leafI++)
|
||||
for (label leafI = 1; leafI < path.size(); leafI++)
|
||||
{
|
||||
if (weights_[path[leafI]] == labelMax)
|
||||
{
|
||||
@ -329,7 +329,7 @@ bool Foam::router::route(const labelList& path, const label pathValue)
|
||||
}
|
||||
|
||||
// Search back from all endpoints to start and fix weights
|
||||
for(label leafI = 1; leafI < path.size(); leafI++)
|
||||
for (label leafI = 1; leafI < path.size(); leafI++)
|
||||
{
|
||||
fixWeights
|
||||
(
|
||||
@ -370,7 +370,7 @@ bool Foam::router::route(const labelList& path, const label pathValue)
|
||||
{
|
||||
weights_[nodeI] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user