Skip to content

Commit 661895b

Browse files
committed
cleanup include statements
1 parent 7a9594f commit 661895b

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

Source/MagneX.H

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
#ifdef AMREX_USE_CUDA
2-
#include <cufft.h>
1+
#ifdef AMREX_USE_ML
32
#include <torch/script.h>
4-
#else
5-
#include <fftw3.h>
6-
#ifdef AMREX_USE_MPI
7-
#include <fftw3-mpi.h>
8-
#endif
93
#endif
104

115
#include <AMReX_MultiFab.H>
@@ -186,8 +180,7 @@ void WritePlotfile(MultiFab& Ms,
186180
const Real& time,
187181
const int& plt_step);
188182

189-
190-
183+
#ifdef AMREX_USE_ML
191184

192185
at::Tensor PackMfieldToTensorDynamic(
193186
const amrex::Array<amrex::MultiFab, AMREX_SPACEDIM>& Mfield,
@@ -220,4 +213,6 @@ void MoveModuleToDevice(torch::jit::script::Module& m,
220213
const torch::Device& device);
221214

222215
// Read expected_spatial = [nx, ny, nz] from normalizer module
223-
amrex::IntVect GetExpectedSpatial(torch::jit::script::Module& x_norm_module);
216+
amrex::IntVect GetExpectedSpatial(torch::jit::script::Module& x_norm_module);
217+
218+
#endif

0 commit comments

Comments
 (0)