Skip to content

Commit

Permalink
fix compile for USE_FFT=FALSE
Browse files Browse the repository at this point in the history
  • Loading branch information
asalmgren committed Nov 24, 2024
1 parent f64043c commit a11bf35
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Source/LinearSolvers/ERF_PoissonSolve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ void ERF::project_velocities (int lev, Real l_dt, Vector<MultiFab>& mom_mf, Mult
solve_with_EB_mlmg(lev, rhs, phi, fluxes);
#else

bool boxes_make_rectangle = (geom_tmp[0].Domain().numPts() == ba_tmp[0].numPts());
#ifdef ERF_USE_FFT
bool boxes_make_rectangle = (geom_tmp[0].Domain().numPts() == ba_tmp[0].numPts());
#endif

// ****************************************************************************
// No terrain or grid stretching
Expand Down
1 change: 0 additions & 1 deletion Source/LinearSolvers/ERF_solve_with_gmres.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "ERF.H"
#include "ERF_Utils.H"
#include "ERF_TerrainPoisson.H"
#include "ERF_FFT_TerrainPrecond.H"

#include <AMReX_GMRES.H>

Expand Down
5 changes: 4 additions & 1 deletion Source/LinearSolvers/Make.package
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
CEXE_headers += ERF_TerrainPoisson_3D_K.H
CEXE_headers += ERF_TerrainPoisson.H
CEXE_headers += ERF_FFT_TerrainPrecond.H
CEXE_sources += ERF_TerrainPoisson.cpp

CEXE_sources += ERF_compute_divergence.cpp
Expand All @@ -10,6 +9,10 @@ CEXE_sources += ERF_solve_with_fft.cpp
CEXE_sources += ERF_solve_with_gmres.cpp
CEXE_sources += ERF_solve_with_mlmg.cpp

ifeq ($(USE_FFT), TRUE)
CEXE_headers += ERF_FFT_TerrainPrecond.H
endif

ifeq ($(USE_EB), TRUE)
CEXE_sources += ERF_solve_with_EB_mlmg.cpp
endif

0 comments on commit a11bf35

Please sign in to comment.