Skip to content

Commit

Permalink
Minor cleanup in IceModelVec2T
Browse files Browse the repository at this point in the history
  • Loading branch information
ckhroulev committed Aug 30, 2021
1 parent 60c841f commit 70aa823
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/util/iceModelVec2T.cc
Expand Up @@ -224,7 +224,7 @@ void IceModelVec2T::end_access() const {
if (m_impl->access_counter == 0) {
PetscErrorCode ierr = DMDAVecRestoreArrayDOF(*m_data->da, m_data->v, &m_data->array);
PISM_CHK(ierr, "DMDAVecRestoreArrayDOF");
m_data->array = NULL;
m_data->array = nullptr;
}
}

Expand Down Expand Up @@ -585,8 +585,6 @@ void IceModelVec2T::init_interpolation(const std::vector<double> &ts) {

assert(m_data->first >= 0);

auto time = m_impl->grid->ctx()->time();

// Compute "periodized" times if necessary.
std::vector<double> times_requested(ts.size());
if (m_data->period > 0.0) {
Expand Down

0 comments on commit 70aa823

Please sign in to comment.