diff options
author | 2019-09-30 18:38:14 -0700 | |
---|---|---|
committer | 2019-10-26 22:39:54 -0400 | |
commit | 0574904bb3d280611f66c6ba9bafb50f9f2f76ed (patch) | |
tree | 475527bc61da388d92a5b3da0ee6cde6266b1ef9 /Source/Utils/WarpXTagging.cpp | |
parent | 9a3d00bbe42c25c59800b167800088a6db8e8081 (diff) | |
download | WarpX-0574904bb3d280611f66c6ba9bafb50f9f2f76ed.tar.gz WarpX-0574904bb3d280611f66c6ba9bafb50f9f2f76ed.tar.zst WarpX-0574904bb3d280611f66c6ba9bafb50f9f2f76ed.zip |
Consts and Real Literals
Start to modernize const correctness in interfaces and replace
real literals with proper type.
Diffstat (limited to 'Source/Utils/WarpXTagging.cpp')
-rw-r--r-- | Source/Utils/WarpXTagging.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Utils/WarpXTagging.cpp b/Source/Utils/WarpXTagging.cpp index 8ea3211a3..91bb802e8 100644 --- a/Source/Utils/WarpXTagging.cpp +++ b/Source/Utils/WarpXTagging.cpp @@ -22,9 +22,9 @@ WarpX::ErrorEst (int lev, TagBoxArray& tags, Real time, int /*ngrow*/) for (BoxIterator bi(bx); bi.ok(); ++bi) { const IntVect& cell = bi(); - RealVect pos {AMREX_D_DECL((cell[0]+0.5)*dx[0]+problo[0], - (cell[1]+0.5)*dx[1]+problo[1], - (cell[2]+0.5)*dx[2]+problo[2])}; + RealVect pos {AMREX_D_DECL((cell[0]+0.5_rt)*dx[0]+problo[0], + (cell[1]+0.5_rt)*dx[1]+problo[1], + (cell[2]+0.5_rt)*dx[2]+problo[2])}; if (pos > fine_tag_lo && pos < fine_tag_hi) { fab(cell) = TagBox::SET; } |