Skip to content

Commit

Permalink
Cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ckhroulev committed May 5, 2021
1 parent 38121c7 commit 7811683
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/stressbalance/ShallowStressBalance.cc
Expand Up @@ -287,12 +287,10 @@ IceModelVec::Ptr SSB_taub::compute_impl() const {
const int i = p.i(), j = p.j();

if (mask.grounded_ice(i,j)) {
double beta = basal_sliding_law->drag((*tauc)(i,j), velocity(i,j).u, velocity(i,j).v);
(*result)(i,j).u = - beta * velocity(i,j).u;
(*result)(i,j).v = - beta * velocity(i,j).v;
double beta = basal_sliding_law->drag((*tauc)(i, j), velocity(i, j).u, velocity(i, j).v);
(*result)(i, j) = - beta * velocity(i, j);
} else {
(*result)(i,j).u = 0.0;
(*result)(i,j).v = 0.0;
(*result)(i, j) = 0.0;
}
}

Expand Down

0 comments on commit 7811683

Please sign in to comment.