diff options
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r-- | Source/WarpX.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index 50e73d4c1..c591a2856 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -907,7 +907,8 @@ WarpX::AllocLevelMFs (int lev, const BoxArray& ba, const DistributionMapping& dm } #else std::array<Real,3> dx = CellSize(lev); - fdtd_solver_fp[lev].reset( new FiniteDifferenceSolver(dx); ) + fdtd_solver_fp[lev].reset( + new FiniteDifferenceSolver(maxwell_fdtd_solver_id, dx) ); #endif // // The Aux patch (i.e., the full solution) @@ -994,7 +995,8 @@ WarpX::AllocLevelMFs (int lev, const BoxArray& ba, const DistributionMapping& dm } #else std::array<Real,3> dx = CellSize(lev-1); - fdtd_solver_cp[lev].reset( new FiniteDifferenceSolver(dx); ) + fdtd_solver_cp[lev].reset( + new FiniteDifferenceSolver( maxwell_fdtd_solver_id, dx ) ); #endif } |