Commit d36522e6 authored by mattijs's avatar mattijs
Browse files

BUG: surfaceToPoint: read nErode from Istream

parent 6aab56a1
......@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
......@@ -47,7 +47,7 @@ addToRunTimeSelectionTable(topoSetSource, regionToCell, istream);
Foam::topoSetSource::addToUsageTable Foam::regionToCell::usage_
(
regionToCell::typeName,
"\n Usage: regionToCell subCellSet (pt0 .. ptn)\n\n"
"\n Usage: regionToCell subCellSet (pt0 .. ptn) nErode\n\n"
" Select all cells in the connected region containing"
" points (pt0..ptn).\n"
);
......@@ -433,7 +433,7 @@ Foam::regionToCell::regionToCell
topoSetSource(mesh),
setName_(checkIs(is)),
insidePoints_(checkIs(is)),
nErode_(0)
nErode_(readLabel(checkIs(is)))
{}
......
......@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
......@@ -65,16 +65,16 @@ class surfaceToPoint
static addToUsageTable usage_;
//- Name of surface file
fileName surfName_;
const fileName surfName_;
//- If > 0 : include points with distance to surface less than nearDist.
scalar nearDist_;
const scalar nearDist_;
//- Include all points on opposite sign of normal on nearest surface.
bool includeInside_;
const bool includeInside_;
//- Include all points on this sign of normal on nearest surface.
bool includeOutside_;
const bool includeOutside_;
// Private Member Functions
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment