From a8245da9da7045f7f163a6d922f15f0c8f238515 Mon Sep 17 00:00:00 2001 From: RussellBentley Date: Wed, 6 Nov 2024 10:53:14 -0500 Subject: [PATCH] Fix fftw version --- Cargo.lock | 3 +++ Cargo.toml | 2 +- examples/heat_2d_p_fft.rs | 4 ---- src/lib.rs | 1 + 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f5894e7..99fab4a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -372,6 +372,7 @@ dependencies = [ [[package]] name = "fftw" version = "0.8.0" +source = "git+https://github.com/SallySoul/fftw3-rs.git?tag=fftw3-v0.8.1#ba98096fae4cc55e37f3deba19a5a696af551692" dependencies = [ "bitflags 2.6.0", "fftw-sys", @@ -385,6 +386,7 @@ dependencies = [ [[package]] name = "fftw-src" version = "0.8.0" +source = "git+https://github.com/SallySoul/fftw3-rs.git?tag=fftw3-v0.8.1#ba98096fae4cc55e37f3deba19a5a696af551692" dependencies = [ "anyhow", "cc", @@ -396,6 +398,7 @@ dependencies = [ [[package]] name = "fftw-sys" version = "0.8.0" +source = "git+https://github.com/SallySoul/fftw3-rs.git?tag=fftw3-v0.8.1#ba98096fae4cc55e37f3deba19a5a696af551692" dependencies = [ "fftw-src", "libc", diff --git a/Cargo.toml b/Cargo.toml index b418bcc..b7b069e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" [dependencies] colorous = "1.0.14" -fftw = { path = "/Users/russell/projects/rust/fftw3-rs/fftw", features = ["system"] } +fftw = { git = "https://github.com/SallySoul/fftw3-rs.git", tag = "fftw3-v0.8.1" } image = "0.25.2" num = "0.4.3" diff --git a/examples/heat_2d_p_fft.rs b/examples/heat_2d_p_fft.rs index af28d28..a3566d1 100644 --- a/examples/heat_2d_p_fft.rs +++ b/examples/heat_2d_p_fft.rs @@ -157,10 +157,6 @@ fn main() { fft_backwards_buffer[i] = fft_ic_output_buffer[i]; } - for i in 0..width * height { - fft_ic_input_buffer[i] = 0.0; - } - backward_plan .c2r(&mut fft_backwards_buffer, &mut fft_ic_input_buffer) .unwrap(); diff --git a/src/lib.rs b/src/lib.rs index 01756ef..29e2176 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,3 +6,4 @@ pub mod domain; pub mod linear_stencil; pub mod naive_solver; pub mod stencil; +pub mod squaring;