Skip to content

Commit

Permalink
fix for precision
Browse files Browse the repository at this point in the history
  • Loading branch information
FR13ndSDP committed May 22, 2024
1 parent 23f544e commit bdfa7cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/Tagging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ EBR::errorEst (TagBoxArray& tags, int, int, Real time, int, int)
ParallelFor(tags,
[=] AMREX_GPU_DEVICE (int box_no, int i, int j, int k) noexcept
{
RealVect pos {(i+0.5)*dx[0]+problo[0],
(j+0.5)*dx[1]+problo[1],
(k+0.5)*dx[2]+problo[2]};
RealVect pos {(i+0.5_rt)*dx[0]+problo[0],
(j+0.5_rt)*dx[1]+problo[1],
(k+0.5_rt)*dx[2]+problo[2]};
if (boxes[irb].contains(pos)) {
tagma[box_no](i,j,k) = TagBox::SET;
}
Expand Down Expand Up @@ -78,4 +78,4 @@ EBR::errorEst (TagBoxArray& tags, int, int, Real time, int, int)
}
}
}
}
}

0 comments on commit bdfa7cf

Please sign in to comment.