Skip to content

Commit

Permalink
Two FFT Tutorials (#99)
Browse files Browse the repository at this point in the history
Co-authored-by: jclepelch <60457193+jclepelch@users.noreply.github.com>
  • Loading branch information
ajnonaka and jclepelch committed Aug 3, 2023
1 parent 6ea7053 commit 7fa647d
Show file tree
Hide file tree
Showing 12 changed files with 1,105 additions and 0 deletions.
22 changes: 22 additions & 0 deletions ExampleCodes/FFTW/Basic/GNUmakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# AMREX_HOME defines the directory in which we will find all the AMReX code.
AMREX_HOME ?= ../../../../amrex

USE_MPI = TRUE
DEBUG = FALSE
USE_OMP = FALSE
COMP = gnu
DIM = 2

include $(AMREX_HOME)/Tools/GNUMake/Make.defs

include ./Make.package

include $(AMREX_HOME)/Src/Base/Make.package

include $(AMREX_HOME)/Tools/GNUMake/Make.rules

ifeq ($(USE_CUDA),TRUE)
LIBRARIES += -lcufft
else
LIBRARIES += -L$(FFTW_DIR) -lfftw3_mpi -lfftw3
endif
3 changes: 3 additions & 0 deletions ExampleCodes/FFTW/Basic/Make.package
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CEXE_sources += main.cpp myfunc.cpp
CEXE_headers = myfunc.H

8 changes: 8 additions & 0 deletions ExampleCodes/FFTW/Basic/inputs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
max_grid_size = 32
n_cell_x = 64
n_cell_y = 64
n_cell_z = 64

prob_hi_x = 1.
prob_hi_y = 1.
prob_hi_z = 1.
Loading

0 comments on commit 7fa647d

Please sign in to comment.