mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
consistency update
- OSspecific: chmod() -> chMod(), even although it's not used anywhere - ListOps get subset() and inplaceSubset() templated on BoolListType - added UList<bool>::operator[](..) const specialization. Returns false (actually pTraits<bool>::zero) for out-of-range elements. This lets us use List<bool> with lazy evaluation and no noticeable change in performance. - use rcIndex() and fcIndex() wherever possible. Could check if branching or modulus is faster for fcIndex(). - UList and FixedList get 'const T* cdata() const' and 'T* data()' members. Similar to the STL front() and std::string::data() methods, they return a pointer to the first element without needing to write '&myList[0]', recast begin() or violate const-ness.
This commit is contained in:
@ -241,14 +241,14 @@ void Foam::booleanSurface::propagateEdgeSide
|
||||
{
|
||||
// Edge (and hence eFaces) in same order as prevVert0.
|
||||
// Take next face from sorted list
|
||||
nextInd = (ind + 1) % eFaces.size();
|
||||
prevInd = (ind > 0 ? ind - 1 : eFaces.size()-1);
|
||||
nextInd = eFaces.fcIndex(ind);
|
||||
prevInd = eFaces.rcIndex(ind);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Take previous face from sorted neighbours
|
||||
nextInd = (ind > 0 ? ind - 1 : eFaces.size()-1);
|
||||
prevInd = (ind + 1) % eFaces.size();
|
||||
nextInd = eFaces.rcIndex(ind);
|
||||
prevInd = eFaces.fcIndex(ind);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user