File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
181192at::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);
You can’t perform that action at this time.
0 commit comments