Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Oct 15, 2024
1 parent 7c0aff0 commit 7bd9779
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Src/FFT/AMReX_FFT.H
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ class FFT_R2C
public:
FFT_R2C (BoxArray const& ba, DistributionMapping const& dm, Box const& domain);

~FFT_R2C ();

FFT_R2C (FFT_R2C const&) = delete;
FFT_R2C (FFT_R2C &&) = delete;
FFT_R2C& operator= (FFT_R2C const&) = delete;
FFT_R2C& operator= (FFT_R2C &&) = delete;

void forward (MultiFab const& rmf);

private:
Expand Down
5 changes: 5 additions & 0 deletions Src/FFT/AMReX_FFT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ FFT_R2C::FFT_R2C (BoxArray const& ba, DistributionMapping const& dm, Box const&
FFTW_ESTIMATE);
}

FFT_R2C::~FFT_R2C ()
{
fftw_destroy_plan(m_fftw_plan_x);
}

void FFT_R2C::forward (MultiFab const& rmf)
{
m_rx.ParallelCopy(rmf, 0, 0, 1);
Expand Down

0 comments on commit 7bd9779

Please sign in to comment.