Skip to content

Commit

Permalink
fluidfft_fftw.fft3d.with_fftw3d working!!!
Browse files Browse the repository at this point in the history
  • Loading branch information
paugier committed Feb 2, 2024
1 parent ae8b044 commit 3ead91c
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
include 'base.pyx'


from {{ module_name }} cimport (
from fft3d_{{ module_name }} cimport (
{{ class_name }} as mycppclass,
mycomplex)

Expand Down
1 change: 0 additions & 1 deletion plugins/fluidfft-fftw/src/fluidfft_fftw/fft2d/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@ py.extension_module(
install: true,
subdir: 'fluidfft_fftw/fft2d',
)

34 changes: 29 additions & 5 deletions plugins/fluidfft-fftw/src/fluidfft_fftw/fft3d/meson.build
Original file line number Diff line number Diff line change
@@ -1,8 +1,32 @@
python_sources = [
'__init__.py',
]

py.install_sources(
python_sources,
subdir: 'fluidfft-fftw/ftt3d'
'__init__.py',
subdir: 'fluidfft_fftw/fft3d',
)

pyx = custom_target(
'with_fftw3d.pyx',
output: 'with_fftw3d.pyx',
command: ['fluidfft-builder-make-file', '@OUTPUT@', 'FFT3DWithFFTW3D'],
)

pxd = custom_target(
'fft3d_with_fftw3d.pxd',
output: 'fft3d_with_fftw3d.pxd',
command: ['fluidfft-builder-make-file', '@OUTPUT@', 'FFT3DWithFFTW3D'],
)

py.extension_module(
'with_fftw3d',
pyx,
pxd,
'fft3d_with_fftw3d.cpp',
'fft3d_with_fftw3d.h',
include_path_fluidfft_builder / 'base_fft3d.cpp',
include_path_fluidfft_builder / 'base_fft.cpp',
dependencies: fftw_dep,
override_options : ['cython_language=cpp'],
include_directories: include_path_fluidfft_builder,
install: true,
subdir: 'fluidfft_fftw/fft3d',
)
10 changes: 10 additions & 0 deletions plugins/fluidfft-fftw/tests/test_3d.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from unittest import TestCase

from fluidfft.fft3d.testing import complete_test_class_3d


class Tests(TestCase):
pass


complete_test_class_3d("fft3d.with_fftw3d", Tests)

0 comments on commit 3ead91c

Please sign in to comment.