Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77497199
projection_base.cc
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Aug 14, 20:08
Size
1 KB
Mime Type
text/x-c
Expires
Fri, Aug 16, 20:08 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
19870320
Attached To
rMUSPECTRE µSpectre
projection_base.cc
View Options
/**
* 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 (C) 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 & engine)
: fft_engine{engine}, projection_container{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
Log In to Comment