/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2012-2015 OpenFOAM Foundation ------------------------------------------------------------------------------- License This file is part of OpenFOAM. OpenFOAM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenFOAM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenFOAM. If not, see . \*---------------------------------------------------------------------------*/ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // template inline const Foam::Time& Foam::DelaunayMesh::time() const { return runTime_; } template void Foam::DelaunayMesh::timeCheck ( const string& description, const bool check ) const { if (check) { Info<< nl << "--- [ cpuTime " << time().elapsedCpuTime() << " s, " << "delta " << time().cpuTimeIncrement()<< " s"; if (!description.empty()) { Info<< ", " << description << " "; } else { Info<< " "; } Info<< "] --- " << endl; } } template inline Foam::label Foam::DelaunayMesh::getNewCellIndex() const { label id = cellCount_++; if (id == labelMax) { WarningInFunction << "Cell counter has overflowed." << endl; } return id; } template inline Foam::label Foam::DelaunayMesh::getNewVertexIndex() const { label id = vertexCount_++; if (id == labelMax) { WarningInFunction << "Vertex counter has overflowed." << endl; } return id; } template Foam::label Foam::DelaunayMesh::cellCount() const { return cellCount_; } template Foam::label Foam::DelaunayMesh::vertexCount() const { return vertexCount_; } template void Foam::DelaunayMesh::resetCellCount() { cellCount_ = 0; } template void Foam::DelaunayMesh::resetVertexCount() { vertexCount_ = 0; } // ************************************************************************* //