diff options
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r-- | Source/WarpX.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index c823d8965..99d360291 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -1325,7 +1325,7 @@ WarpX::ComputeDivB (amrex::MultiFab& divB, int const dcomp, "ComputeDivB not implemented with do_nodal." "Shouldn't be too hard to make it general with class FiniteDifferenceSolver"); - Real dxinv = 1./dx[0], dyinv = 1./dx[1], dzinv = 1./dx[2]; + Real dxinv = 1._rt/dx[0], dyinv = 1._rt/dx[1], dzinv = 1._rt/dx[2]; #ifdef WARPX_DIM_RZ const Real rmin = GetInstance().Geom(0).ProbLo(0); @@ -1363,7 +1363,7 @@ WarpX::ComputeDivB (amrex::MultiFab& divB, int const dcomp, "ComputeDivB not implemented with do_nodal." "Shouldn't be too hard to make it general with class FiniteDifferenceSolver"); - Real dxinv = 1./dx[0], dyinv = 1./dx[1], dzinv = 1./dx[2]; + Real dxinv = 1._rt/dx[0], dyinv = 1._rt/dx[1], dzinv = 1._rt/dx[2]; #ifdef WARPX_DIM_RZ const Real rmin = GetInstance().Geom(0).ProbLo(0); |