Skip to content

Commit

Permalink
fixed warning: ‘alpha’ may be used uninitialized in this function
Browse files Browse the repository at this point in the history
  • Loading branch information
haplav committed Mar 10, 2017
1 parent 28ab207 commit 86dd7fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/qps/impls/mpgp/mpgp.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ PetscErrorCode QPSSolve_MPGP(QPS qps)
/* initiate CG method */
TRY( VecCopy(phi, p) ); /* p=phi */

alpha = mpgp->alpha;
qps->iteration = 0; /* main iteration counter */
while (1) /* main cycle */
{
Expand Down

0 comments on commit 86dd7fa

Please sign in to comment.