aboutsummaryrefslogtreecommitdiff
path: root/Source/Utils/WarpXTagging.cpp
diff options
context:
space:
mode:
authorGravatar Yinjian Zhao <yinjianzhao@lbl.gov> 2019-11-20 14:27:00 -0800
committerGravatar Yinjian Zhao <yinjianzhao@lbl.gov> 2019-11-20 14:27:00 -0800
commitdc091f87b0149d30bea844de925ed65d1a81bbf3 (patch)
treef93c1979aa62e989be6563f182e80cb52cf07840 /Source/Utils/WarpXTagging.cpp
parent93b3c21262035097d7204521e0afd76b0e15db44 (diff)
parent13f3c87791971c4e72b567410f938a6dade47647 (diff)
downloadWarpX-dc091f87b0149d30bea844de925ed65d1a81bbf3.tar.gz
WarpX-dc091f87b0149d30bea844de925ed65d1a81bbf3.tar.zst
WarpX-dc091f87b0149d30bea844de925ed65d1a81bbf3.zip
Merge branch 'dev' of https://github.com/ECP-WarpX/WarpX into doNotDepositCurrent
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;
}