/* This file is part of the Palabos library.
 *
 * Copyright (C) 2011-2015 FlowKit Sarl
 * Route d'Oron 2
 * 1010 Lausanne, Switzerland
 * E-mail contact: contact@flowkit.com
 *
 * The most recent release of Palabos can be downloaded at 
 * <http://www.palabos.org/>
 *
 * The library Palabos is free software: you can redistribute it and/or
 * modify it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * The library 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 Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

/** \file
 * Generator functions for all types of multi-blocks, to make them accessible to SWIG;
 * template instantiation.
 */
#include "multiBlock/multiBlockGenerator2D.h"
#include "multiBlock/multiBlockGenerator2D.hh"

namespace plb {

template
std::auto_ptr<MultiNTensorField2D<PRECOMP_T> > defaultGenerateMultiNTensorField2D<PRECOMP_T> (
        MultiBlockManagement2D const& management, plint nDim );

template
MultiNTensorField2D<PRECOMP_T>* generateMultiNTensorField2D(Box2D const& domain, plint ndim);

template
MultiNTensorField2D<int>*
    generateNTensorFieldFromNTensor2D (
            MultiNTensorField2D<PRECOMP_T> const& field,
            Box2D const& intersection, plint nDim);

template
MultiNTensorField2D<PRECOMP_T>* clone<PRECOMP_T> (
        MultiNTensorField2D<PRECOMP_T>& originalField, Box2D const& subDomain, bool crop );

template
MultiNTensorField2D<PRECOMP_T>* generateMultiNTensorField<PRECOMP_T> (
        MultiBlock2D const& originalField, Box2D const& intersection,
        plint nDim, bool crop );

template
MultiNTensorField2D<PRECOMP_T>* generateIntersectMultiNTensorField<PRECOMP_T> (
        MultiBlock2D const& originalField1,
        MultiBlock2D const& originalField2,
        plint nDim, bool crop );

template
MultiNTensorField2D<PRECOMP_T>* generateIntersectMultiNTensorField<PRECOMP_T> (
        MultiBlock2D const& originalField1,
        MultiBlock2D const& originalField2,
        Box2D const& intersection, plint nDim,  bool crop );

template
MultiNTensorField2D<PRECOMP_T>* generateJoinMultiNTensorField<PRECOMP_T> (
        MultiBlock2D const& originalField1,
        MultiBlock2D const& originalField2,
        plint nDim );

template
MultiNTensorField2D<PRECOMP_T>* extend<PRECOMP_T> (
        MultiNTensorField2D<PRECOMP_T>& originalBlock, Box2D const& addedBlock );

template
MultiNTensorField2D<PRECOMP_T>* except<PRECOMP_T> (
        MultiNTensorField2D<PRECOMP_T>& originalBlock,
        Box2D const& exceptedBlock );

template
MultiNTensorField2D<PRECOMP_T>* align<PRECOMP_T> (
        MultiNTensorField2D<PRECOMP_T> const& originalBlock,
        MultiBlock2D const& partnerBlock );

template
MultiNTensorField2D<PRECOMP_T>* reparallelize<PRECOMP_T> (
        MultiNTensorField2D<PRECOMP_T> const& originalBlock );


template
std::auto_ptr<MultiScalarField2D<PRECOMP_T> > defaultGenerateMultiScalarField2D<PRECOMP_T> (
        MultiBlockManagement2D const& management, plint nDim );

}  // namespace plb
