mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
GIT: Initial state after latest Foundation merge
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -73,13 +73,13 @@ int main(int argc, char *argv[])
|
||||
label minIndex = -1;
|
||||
scalar minDist = GREAT;
|
||||
|
||||
forAll(localPoints, pointI)
|
||||
forAll(localPoints, pointi)
|
||||
{
|
||||
const scalar dist = mag(localPoints[pointI] - samplePt);
|
||||
const scalar dist = mag(localPoints[pointi] - samplePt);
|
||||
if (dist < minDist)
|
||||
{
|
||||
minDist = dist;
|
||||
minIndex = pointI;
|
||||
minIndex = pointi;
|
||||
}
|
||||
}
|
||||
|
||||
@ -99,15 +99,15 @@ int main(int argc, char *argv[])
|
||||
minIndex = -1;
|
||||
minDist = GREAT;
|
||||
|
||||
forAll(surf1, faceI)
|
||||
forAll(surf1, facei)
|
||||
{
|
||||
const point centre = surf1[faceI].centre(points);
|
||||
const point centre = surf1[facei].centre(points);
|
||||
|
||||
const scalar dist = mag(centre - samplePt);
|
||||
if (dist < minDist)
|
||||
{
|
||||
minDist = dist;
|
||||
minIndex = faceI;
|
||||
minIndex = facei;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user