Skip to content

Commit 7a9594f

Browse files
committed
fixed MagneX.H header for compiling issue
1 parent c3c9969 commit 7a9594f

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

Source/MagneX.H

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
#ifdef AMREX_USE_CUDA
2+
#include <cufft.h>
3+
#include <torch/script.h>
4+
#else
5+
#include <fftw3.h>
6+
#ifdef AMREX_USE_MPI
7+
#include <fftw3-mpi.h>
8+
#endif
9+
#endif
10+
111
#include <AMReX_MultiFab.H>
212

313
#include "MagneX_namespace.H"
@@ -176,7 +186,8 @@ void WritePlotfile(MultiFab& Ms,
176186
const Real& time,
177187
const int& plt_step);
178188

179-
#ifdef AMREX_USE_ML
189+
190+
180191

181192
at::Tensor PackMfieldToTensorDynamic(
182193
const amrex::Array<amrex::MultiFab, AMREX_SPACEDIM>& Mfield,
@@ -209,6 +220,4 @@ void MoveModuleToDevice(torch::jit::script::Module& m,
209220
const torch::Device& device);
210221

211222
// Read expected_spatial = [nx, ny, nz] from normalizer module
212-
amrex::IntVect GetExpectedSpatial(torch::jit::script::Module& x_norm_module);
213-
214-
#endif
223+
amrex::IntVect GetExpectedSpatial(torch::jit::script::Module& x_norm_module);

0 commit comments

Comments
 (0)