blockDescriptorTest.C
Go to the documentation of this file.
1 namespace Foam
2 {
3  inline point faceCorr(const point& p)
4  {
5  return p/mag(p);
6  }
7 }
8 
9 
11 (
12  FixedList<List<point>, 6>& facePoints
13 ) const
14 {
15  forAll(facePoints, facei)
16  {
17  forAll(facePoints[facei], pointi)
18  {
19  facePoints[facei][pointi] = faceCorr(facePoints[facei][pointi]);
20  }
21  }
22 
23  return 6;
24 }
#define forAll(list, i)
Loop across all elements in list.
Definition: UList.H:434
A 1D vector of objects of type <T> with a fixed size <Size>.
Definition: FixedList.H:54
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: HashTable.H:59
point faceCorr(const point &p)
void correctFacePoints(FixedList< pointField, 6 > &) const
Correct the location of the given face-points.
Templated 3D Vector derived from VectorSpace adding construction from 3 components, element access using x(), y() and z() member functions and the inner-product (dot-product) and cross product operators.
Definition: Vector.H:57
dimensioned< scalar > mag(const dimensioned< Type > &)
volScalarField & p
Namespace for OpenFOAM.