Skip to content

Commit

Permalink
Update grid.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Mar 7, 2025
1 parent 5842f9d commit e069dcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grid.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2514,7 +2514,7 @@ auto get_totmassradionuclide(const int z, const int a) -> double {
std::tie(d_coordminboundary, d_coordmaxboundary) = get_coordboundary_distances_cylindrical2d(
pos, dir, pktposgridcoord, pktvelgridcoord, cellindex, tstart, cellcoordmax);

if (pktvelgridcoord[1] > (pktposgridcoord[1] / tstart)) {
if ((pktvelgridcoord[1] * tstart) > pktposgridcoord[1]) {
d_coordminboundary[1] = -1;
} else {
d_coordmaxboundary[1] = -1;
Expand All @@ -2534,7 +2534,7 @@ auto get_totmassradionuclide(const int z, const int a) -> double {
// boundary, regardless of direction.

for (int d = 0; d < 3; d++) {
if (pktvelgridcoord[d] > (pktposgridcoord[d] / tstart)) {
if ((pktvelgridcoord[d] * tstart) > pktposgridcoord[d]) {
d_coordminboundary[d] = -1;
const double t_coordmaxboundary = ((pktposgridcoord[d] - (pktvelgridcoord[d] * tstart)) /
(cellcoordmax[d] - (pktvelgridcoord[d] * globals::tmin)) * globals::tmin) -
Expand Down

0 comments on commit e069dcb

Please sign in to comment.