/*---------------------------------------------------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     |
    \\  /    A nd           | www.openfoam.com
     \\/     M anipulation  |
-------------------------------------------------------------------------------
    Copyright (C) 2011-2016 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 <http://www.gnu.org/licenses/>.

InClass
    Foam::volFields

Description

SourceFiles
    volFields.C

\*---------------------------------------------------------------------------*/

#ifndef Foam_volFields_H
#define Foam_volFields_H

#include "GeometricFields.H"
#include "volMesh.H"
#include "fvMesh.H"
#include "fvPatchField.H"
#include "volFieldsFwd.H"
#include "calculatedFvPatchFields.H"

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

namespace Foam
{

// Specializations

template<>
tmp<GeometricField<scalar, fvPatchField, volMesh>>
GeometricField<scalar, fvPatchField, volMesh>::component
(
    const direction
) const;

template<>
void GeometricField<scalar, fvPatchField, volMesh>::replace
(
    const direction,
    const GeometricField<scalar, fvPatchField, volMesh>& sf
);


// Local consistency checks
//
// template<class Type>
// bool GeometricBoundaryField<Type, fvPatchField, volMesh>::check() const
// {
//     return checkConsistency<coupledFvPatchField<Type>>
//     (
//         FieldBase::localBoundaryTolerance_,
//        !(debug&4)       // make into warning if debug&4
//     );
// }

template<>
bool GeometricBoundaryField<scalar, fvPatchField, volMesh>::
check() const;

template<>
bool GeometricBoundaryField<vector, fvPatchField, volMesh>::
check() const;

template<>
bool GeometricBoundaryField<sphericalTensor, fvPatchField, volMesh>::
check() const;

template<>
bool GeometricBoundaryField<symmTensor, fvPatchField, volMesh>::
check() const;

template<>
bool GeometricBoundaryField<tensor, fvPatchField, volMesh>::
check() const;


// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

} // End namespace Foam

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

#include "volFieldsI.H"

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

#endif

// ************************************************************************* //
