Skip to content

Commit

Permalink
More static_cast calls
Browse files Browse the repository at this point in the history
  • Loading branch information
itopcuoglu committed Jul 31, 2024
1 parent b169e75 commit d1dd513
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/CartBlock.C
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ void CartBlock::getInterpolatedData(
for (i = 0; i < listptr->nweights; i++) {
int const cell_index =
static_cast<int>(cart_utils::get_cell_index(
dims[0], dims[1], nf, listptr->inode[3 * i],
dims[0], dims[1], nf,
listptr->inode[static_cast<int>(3 * i)],
listptr->inode[3 * i + 1], listptr->inode[3 * i + 2]));
for (n = 0; n < nvar_cell; n++) {
weight = listptr->weights[i];
Expand Down Expand Up @@ -169,7 +170,8 @@ void CartBlock::preprocess(CartGrid* cg)
for (int n = 0; n < 3; n++) {
dx[n] = cg->dx[3 * global_id + n];
}
dims[0] = cg->ihi[3 * global_id] - cg->ilo[3 * global_id] + 1;
dims[0] = cg->ihi[static_cast<int>(3 * global_id)] -
cg->ilo[static_cast<int>(3 * global_id)] + 1;
dims[1] = cg->ihi[3 * global_id + 1] - cg->ilo[3 * global_id + 1] + 1;
dims[2] = cg->ihi[3 * global_id + 2] - cg->ilo[3 * global_id + 2] + 1;
nf = cg->nf;
Expand Down

0 comments on commit d1dd513

Please sign in to comment.