Skip to content

Commit

Permalink
Fix a compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ckhroulev committed Jan 15, 2021
1 parent fe82fe9 commit a8255c5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/stressbalance/blatter/residual.cc
@@ -1,4 +1,4 @@
/* Copyright (C) 2020 PISM Authors
/* Copyright (C) 2020, 2021 PISM Authors
*
* This file is part of PISM.
*
Expand Down Expand Up @@ -375,7 +375,9 @@ void Blatter::compute_residual(DMDALocalInfo *petsc_info,
for (int k = info.gzs; k < info.gzs + info.gzm - 1; k++) {

// Reset element residual to zero in preparation.
memset(R_nodal, 0, sizeof(R_nodal));
for (int n = 0; n < Nk; ++n) {
R_nodal[n] = 0.0;
}

// Compute z coordinates of the nodes of this element
for (int n = 0; n < Nk; ++n) {
Expand Down

0 comments on commit a8255c5

Please sign in to comment.