Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80796802
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
Mon, Sep 2, 15:34
Size
1 KB
Mime Type
text/x-c
Expires
Wed, Sep 4, 15:34 (2 d)
Engine
blob
Format
Raw Data
Handle
20449998
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
*
* 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
(
FFTEngine_ptr
engine
,
Formulation
form
)
:
fft_engine
{
std
::
move
(
engine
)},
form
{
form
},
projection_container
{
this
->
fft_engine
->
get_field_collection
()}
{
static_assert
((
DimS
==
FFTEngine
::
sdim
),
"spatial dimensions are incompatible"
);
static_assert
((
DimM
==
FFTEngine
::
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