Skip to content

Commit

Permalink
buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwen committed Jan 20, 2020
1 parent 93b54a7 commit 4f81604
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/userobjects/FFTWBufferBase.C
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,16 @@ FFTWBufferBase<T>::backward()
fftw_execute(_backward_plan);
}

// explicit instantiation
template class FFTWBufferBase<Real>;
template class FFTWBufferBase<RealVectorValue>;
template class FFTWBufferBase<RankTwoTensor>;
template class FFTWBufferBase<RankThreeTensor>;
template class FFTWBufferBase<RankFourTensor>;
// explicit instantiation and registration
#define FFTWBufferInstance(T) \
template class FFTWBufferBase<T>; \
using T##FFTWBuffer = FFTWBufferBase<T>; \
registerMooseObject("MagpieApp", T##FFTWBuffer)

FFTWBufferInstance(Real);
FFTWBufferInstance(RealVectorValue);
FFTWBufferInstance(RankTwoTensor);
FFTWBufferInstance(RankThreeTensor);
FFTWBufferInstance(RankFourTensor);

#endif

0 comments on commit 4f81604

Please sign in to comment.