@@ -14,15 +14,15 @@ namespace hemelb::redblood::buffer
1414      {
1515        LatticeDistance maxCellRadius (CellBase const & cell)
1616        {
17-           auto  const  barycenter  = cell.GetBarycenter ();
17+           auto  const  barycentre  = cell.GetBarycentre ();
1818          auto  const  &vertices = cell.GetVertices ();
1919          auto  const  first = vertices.begin ();
20-           auto  dist = [&barycenter ](LatticePosition const  &a, LatticePosition const  &b)
20+           auto  dist = [&barycentre ](LatticePosition const  &a, LatticePosition const  &b)
2121          {
22-             return  (a-barycenter ).GetMagnitudeSquared () < (b-barycenter ).GetMagnitudeSquared ();
22+             return  (a-barycentre ).GetMagnitudeSquared () < (b-barycentre ).GetMagnitudeSquared ();
2323          };
2424          LatticePosition const  &max = *std::max_element (first, vertices.end (), dist);
25-           return  4e0  * (max - barycenter ).GetMagnitudeSquared ();
25+           return  4e0  * (max - barycentre ).GetMagnitudeSquared ();
2626        }
2727
2828        template <class  T_FUNC >
@@ -49,7 +49,7 @@ namespace hemelb::redblood::buffer
4949        auto  const  &normal = geometry->normal ;
5050        auto  getdist = [&normal](CellContainer::value_type const & c)
5151        {
52-           return  Dot (c->GetBarycenter (), normal);
52+           return  Dot (c->GetBarycentre (), normal);
5353        };
5454        return  orderedCell (getdist, virtuals);
5555      }
@@ -59,7 +59,7 @@ namespace hemelb::redblood::buffer
5959        auto  const  &normal = geometry->normal ;
6060        auto  getdist = [&normal](const  CellContainer::value_type& c)
6161        {
62-           return  -Dot (c->GetBarycenter (), normal);
62+           return  -Dot (c->GetBarycentre (), normal);
6363        };
6464        return  orderedCell (getdist, virtuals);
6565      }
@@ -69,7 +69,7 @@ namespace hemelb::redblood::buffer
6969        justDropped = nearestCell ();
7070        virtuals.erase (justDropped);
7171
72-         lastZ = Dot (justDropped->GetBarycenter (), geometry->normal );
72+         lastZ = Dot (justDropped->GetBarycentre (), geometry->normal );
7373        *justDropped += geometry->origin  + geometry->normal  * offset;
7474        return  justDropped;
7575      }
@@ -110,7 +110,7 @@ namespace hemelb::redblood::buffer
110110          lastCell = furthestCell ();
111111        }
112112        //  add cell until outside geometry, including interaction radius buffer.
113-         while  (isDroppablePosition (lastCell->GetBarycenter () - geometry->normal  * interactionRadius))
113+         while  (isDroppablePosition (lastCell->GetBarycentre () - geometry->normal  * interactionRadius))
114114        {
115115          lastCell = insertCell ();
116116        }
@@ -157,13 +157,13 @@ namespace hemelb::redblood::buffer
157157        }
158158
159159        auto  const  normal = geometry->normal ;
160-         auto  const  zCell = Dot (normal, nearestCell ()->GetBarycenter ());
160+         auto  const  zCell = Dot (normal, nearestCell ()->GetBarycentre ());
161161        if  (not  justDropped)
162162        {
163163          offset = -zCell;
164164          return ;
165165        }
166-         auto  const  zDropped = Dot (normal, justDropped->GetBarycenter () - geometry->origin ) - offset;
166+         auto  const  zDropped = Dot (normal, justDropped->GetBarycentre () - geometry->origin ) - offset;
167167        //  dropped cell moved forward but distance with next cell is small
168168        //  Then movement must the smallest of:
169169        //  - distance moved by dropped cell over last LB iteration
0 commit comments