aboutsummaryrefslogtreecommitdiff
path: root/Source/Utils/WarpXTagging.cpp
diff options
context:
space:
mode:
authorGravatar Dave Grote <grote1@llnl.gov> 2019-11-01 17:20:55 -0700
committerGravatar Dave Grote <grote1@llnl.gov> 2019-11-01 17:20:55 -0700
commit947211be5797f83c7b11e2f626b46576d933d259 (patch)
tree411e6df9231f4019e7ed326055a391ef16ca1557 /Source/Utils/WarpXTagging.cpp
parent2b1c5a17e0afdf0aebd008a652540956174eb286 (diff)
parentf42fc99efc105dcb99213d02b31c6bf5183d18a7 (diff)
downloadWarpX-947211be5797f83c7b11e2f626b46576d933d259.tar.gz
WarpX-947211be5797f83c7b11e2f626b46576d933d259.tar.zst
WarpX-947211be5797f83c7b11e2f626b46576d933d259.zip
Merge branch 'dev' into generalize_nodal_deposition
Diffstat (limited to 'Source/Utils/WarpXTagging.cpp')
-rw-r--r--Source/Utils/WarpXTagging.cpp6
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;
}