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
void correctFacePoints(FixedList< pointField, 6 > &) const
Correct the location of the given face-points.
FixedList< pointField, 6 > facePoints(const pointField &points) const
Return the list of face-points for all of the faces of the block.
Namespace for OpenFOAM.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
dimensioned< scalar > mag(const dimensioned< Type > &)
point faceCorr(const point &p)
volScalarField & p