diff options
author | 2020-12-01 18:27:07 +0100 | |
---|---|---|
committer | 2020-12-01 09:27:07 -0800 | |
commit | 68f4dd87d2814058ac34ca08061c7c27f42fda7e (patch) | |
tree | 5238358ea40976c0b9cde53b4af8a438a03dd483 /Source/WarpX.cpp | |
parent | ae89e95c1636f28e2d88a93620c20f4c4acfbfeb (diff) | |
download | WarpX-68f4dd87d2814058ac34ca08061c7c27f42fda7e.tar.gz WarpX-68f4dd87d2814058ac34ca08061c7c27f42fda7e.tar.zst WarpX-68f4dd87d2814058ac34ca08061c7c27f42fda7e.zip |
Fix some warnings related to double to float conversions (#1533)
* fixed several warnings related to double to float conversions
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
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); |