STYLE: removed globalMeshData::bb(). Use mesh.bounds() instead

This commit is contained in:
mattijs
2011-01-20 13:46:02 +00:00
parent fc1e443116
commit 0c6789e539
8 changed files with 18 additions and 18 deletions

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -522,7 +522,7 @@ int main(int argc, char *argv[])
); );
const boundBox& bb = mesh.globalData().bb(); const boundBox& bb = mesh.bounds();
const vector span = bb.span(); const vector span = bb.span();
const scalar mergeDim = 1E-4 * bb.minDim(); const scalar mergeDim = 1E-4 * bb.minDim();

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -910,7 +910,7 @@ int main(int argc, char *argv[])
( (
args, args,
runTime, runTime,
mesh.globalData().bb() mesh.bounds()
); );
// Mesh distribution engine // Mesh distribution engine

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -208,7 +208,7 @@ int main(int argc, char *argv[])
const scalar searchTol = args.optionLookupOrDefault("tol", 1e-3); const scalar searchTol = args.optionLookupOrDefault("tol", 1e-3);
// Get search box. Anything not within this box will not be considered. // Get search box. Anything not within this box will not be considered.
const boundBox& meshBb = mesh.globalData().bb(); const boundBox& meshBb = mesh.bounds();
const vector searchSpan = searchTol * meshBb.span(); const vector searchSpan = searchTol * meshBb.span();
Info<< "All boundary faces further away than " << searchTol Info<< "All boundary faces further away than " << searchTol

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -4394,7 +4394,7 @@ void Foam::hexRef8::distribute(const mapDistributePolyMesh& map)
void Foam::hexRef8::checkMesh() const void Foam::hexRef8::checkMesh() const
{ {
const scalar smallDim = 1E-6 * mesh_.globalData().bb().mag(); const scalar smallDim = 1E-6 * mesh_.bounds().mag();
if (debug) if (debug)
{ {

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -1791,7 +1791,7 @@ Foam::autoPtr<Foam::mapPolyMesh> Foam::meshRefinement::splitMeshRegions
"meshRefinement::splitMeshRegions(const point&)" "meshRefinement::splitMeshRegions(const point&)"
) << "Point " << keepPoint ) << "Point " << keepPoint
<< " is not inside the mesh." << nl << " is not inside the mesh." << nl
<< "Bounding box of the mesh:" << mesh_.globalData().bb() << "Bounding box of the mesh:" << mesh_.bounds()
<< exit(FatalError); << exit(FatalError);
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -1263,7 +1263,7 @@ void Foam::meshRefinement::findCellZoneInsideWalk
", const labelList&, const labelList&)" ", const labelList&, const labelList&)"
) << "Point " << insidePoint ) << "Point " << insidePoint
<< " is not inside the mesh." << nl << " is not inside the mesh." << nl
<< "Bounding box of the mesh:" << mesh_.globalData().bb() << "Bounding box of the mesh:" << mesh_.bounds()
<< exit(FatalError); << exit(FatalError);
} }
@ -1431,7 +1431,7 @@ void Foam::meshRefinement::findCellZoneTopo
"(const point&, const labelList&, const labelList&, labelList&)" "(const point&, const labelList&, const labelList&, labelList&)"
) << "Point " << keepPoint ) << "Point " << keepPoint
<< " is not inside the mesh." << nl << " is not inside the mesh." << nl
<< "Bounding box of the mesh:" << mesh_.globalData().bb() << "Bounding box of the mesh:" << mesh_.bounds()
<< exit(FatalError); << exit(FatalError);
} }
@ -1972,7 +1972,7 @@ Foam::autoPtr<Foam::mapPolyMesh> Foam::meshRefinement::splitMesh
"(const label, const labelList&, const point&)" "(const label, const labelList&, const point&)"
) << "Point " << keepPoint ) << "Point " << keepPoint
<< " is not inside the mesh." << nl << " is not inside the mesh." << nl
<< "Bounding box of the mesh:" << mesh_.globalData().bb() << "Bounding box of the mesh:" << mesh_.bounds()
<< exit(FatalError); << exit(FatalError);
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -135,7 +135,7 @@ void Foam::regionToCell::combine(topoSet& set, const bool add) const
"regionToCell::combine(topoSet&, const bool) const" "regionToCell::combine(topoSet&, const bool) const"
) << "Point " << insidePoint_ ) << "Point " << insidePoint_
<< " is not inside the mesh." << nl << " is not inside the mesh." << nl
<< "Bounding box of the mesh:" << mesh_.globalData().bb() << "Bounding box of the mesh:" << mesh_.bounds()
<< endl; << endl;
return; return;
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -342,7 +342,7 @@ bool Foam::sampledSurfaces::update()
} }
// dimension as fraction of mesh bounding box // dimension as fraction of mesh bounding box
scalar mergeDim = mergeTol_ * mesh_.globalData().bb().mag(); scalar mergeDim = mergeTol_ * mesh_.bounds().mag();
if (Pstream::master() && debug) if (Pstream::master() && debug)
{ {