Page MenuHomec4science

projection_base.cc
No OneTemporary

File Metadata

Created
Sat, Nov 2, 11:45

projection_base.cc

/**
* file projection_base.cc
*
* @author Till Junge <till.junge@epfl.ch>
*
* @date 06 Dec 2017
*
* @brief implementation of base class for projections
*
* @section LICENCE
*
* Copyright © 2017 Till Junge
*
* µSpectre 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, or (at
* your option) any later version.
*
* µSpectre 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 GNU Emacs; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#include "fft/projection_base.hh"
namespace muSpectre {
/* ---------------------------------------------------------------------- */
template <Dim_t DimS, Dim_t DimM>
ProjectionBase<DimS, DimM>::ProjectionBase(FFT_Engine_ptr engine,
Formulation form)
: fft_engine{std::move(engine)}, form{form},
projection_container{this->fft_engine->get_field_collection()}
{
static_assert((DimS == FFT_Engine::sdim),
"spatial dimensions are incompatible");
static_assert((DimM == FFT_Engine::mdim),
"material dimensions are incompatible");
}
/* ---------------------------------------------------------------------- */
template <Dim_t DimS, Dim_t DimM>
void ProjectionBase<DimS, DimM>::
initialise(FFT_PlanFlags flags) {
fft_engine->initialise(flags);
}
template class ProjectionBase<twoD, twoD>;
template class ProjectionBase<twoD, threeD>;
template class ProjectionBase<threeD, threeD>;
} // muSpectre

Event Timeline