diff options
author | 2019-10-28 10:43:21 -0700 | |
---|---|---|
committer | 2019-10-28 10:43:21 -0700 | |
commit | 24515f6f3368a7655e5c1a8634c4548cae3f141f (patch) | |
tree | 475527bc61da388d92a5b3da0ee6cde6266b1ef9 /Source/Utils/WarpXTagging.cpp | |
parent | 9a3d00bbe42c25c59800b167800088a6db8e8081 (diff) | |
parent | 0574904bb3d280611f66c6ba9bafb50f9f2f76ed (diff) | |
download | WarpX-24515f6f3368a7655e5c1a8634c4548cae3f141f.tar.gz WarpX-24515f6f3368a7655e5c1a8634c4548cae3f141f.tar.zst WarpX-24515f6f3368a7655e5c1a8634c4548cae3f141f.zip |
Merge pull request #422 from ax3l/topic-constAndLiterals
Consts and Real Literals
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; } |