From 424f704c4a760c168663b4c4122834f4eee53360 Mon Sep 17 00:00:00 2001 From: Weiqun Zhang Date: Sat, 19 Oct 2024 13:47:07 -0700 Subject: [PATCH] Fix spelling and warning --- Src/FFT/AMReX_FFT.H | 2 +- Tests/FFT/R2C/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/FFT/AMReX_FFT.H b/Src/FFT/AMReX_FFT.H index aeb4e00ff1..ff978c98f4 100644 --- a/Src/FFT/AMReX_FFT.H +++ b/Src/FFT/AMReX_FFT.H @@ -33,7 +33,7 @@ namespace amrex::FFT * This class supports Fourier transforms between real and complex data. The * name R2C indicates that the forward transform converts real data to * complex data, while the backward transform converts complex data to real - * data. It should be noted that both directions fo transformation are + * data. It should be noted that both directions of transformation are * supported, not just from real to complex. The scaling follows the FFTW * convention, where applying the forward transform followed by the backward * transform scales the original data by the size of the input array. diff --git a/Tests/FFT/R2C/main.cpp b/Tests/FFT/R2C/main.cpp index 39354cd871..2a32d8e716 100644 --- a/Tests/FFT/R2C/main.cpp +++ b/Tests/FFT/R2C/main.cpp @@ -105,7 +105,7 @@ int main (int argc, char* argv[]) { // forward and backward FFT::R2C r2c(geom.Domain()); r2c.forwardThenBackward(mf, mf2, - [=] AMREX_GPU_DEVICE (int i, int j, int k, auto& sp) + [=] AMREX_GPU_DEVICE (int, int, int, auto& sp) { sp *= scaling; });