Skip to content

Commit

Permalink
Merge pull request IBAMR#1669 from drwells/remove-unused-variables
Browse files Browse the repository at this point in the history
Remove some unused variables.
  • Loading branch information
drwells authored Jan 5, 2024
2 parents 10dd969 + 9a23067 commit 7ac8efe
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion ibtk/src/lagrangian/FEDataManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2591,7 +2591,6 @@ FEDataManager::applyGradientDetector(const Pointer<BasePatchHierarchy<NDIM> > hi
// Determine the active elements associated with the prescribed patch
// level.
std::vector<std::vector<Elem*> > active_level_elem_map;
const IntVector<NDIM> ghost_width = 1;
collectActivePatchElements(active_level_elem_map, level_number, level_number + 1, d_max_level_number);
std::vector<unsigned int> X_ghost_dofs;
std::vector<Elem*> active_level_elems;
Expand Down
11 changes: 0 additions & 11 deletions src/IB/IIMethod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1022,8 +1022,6 @@ IIMethod::interpolateVelocity(const int u_data_idx,
x_lower_gh[d] = patch_x_lower[d] - (static_cast<double>(u_ghost_num)) * patch_dx[d];
x_upper_gh[d] = patch_x_upper[d] + (static_cast<double>(u_ghost_num)) * patch_dx[d];
}
double* x_upper_ghost = &x_upper_gh[0];
double* x_lower_ghost = &x_lower_gh[0];

// Setup vectors to store the values of U, DU_j, x, and n at the
// quadrature points.
Expand Down Expand Up @@ -1203,15 +1201,6 @@ IIMethod::interpolateVelocity(const int u_data_idx,
const double* const x = &x_qp[NDIM * k];
const hier::Index<NDIM> i = IndexUtilities::getCellIndex(x, patch_geom, patch_box);
if (interp_box.contains(i)) local_indices.push_back(k);

const double* const x_in = &x_in_qp[NDIM * k];
const hier::Index<NDIM> in = IndexUtilities::getCellIndex(
x_in, x_lower_ghost, x_upper_ghost, patch_geom->getDx(), ghost_box.lower(), ghost_box.upper());

const double* const x_out = &x_out_qp[NDIM * k];
const hier::Index<NDIM> out = IndexUtilities::getCellIndex(
x_out, x_lower_ghost, x_upper_ghost, patch_geom->getDx(), ghost_box.lower(), ghost_box.upper());

// Some kind of assertation can be applied here using the indices of the cells away from the
// interfce
}
Expand Down

0 comments on commit 7ac8efe

Please sign in to comment.