Skip to content

Commit

Permalink
find and fix lower-bound bug in c/ch12/solns/elasto.c
Browse files Browse the repository at this point in the history
  • Loading branch information
bueler committed May 7, 2023
1 parent b5cb6b3 commit 38e49bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c/ch12/solns/elasto.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ PetscErrorCode FormBounds(SNES snes, Vec Xl, Vec Xu) {
DMDALocalInfo info;
PetscInt i, j;
PetscReal **aXu, dx, dy, x, y;
PetscCall(VecSet(Xu,PETSC_NINFINITY));
PetscCall(VecSet(Xl,PETSC_NINFINITY));
PetscCall(SNESGetDM(snes,&da));
PetscCall(DMDAGetLocalInfo(da,&info));
dx = 1.0 / (PetscReal)(info.mx-1);
Expand Down

0 comments on commit 38e49bf

Please sign in to comment.