[petsc-dev] strangness in Chebyshev estimate of eigenvalues
    Satish Balay 
    balay at mcs.anl.gov
       
    Fri May 20 00:03:43 CDT 2016
    
    
  
On Thu, 19 May 2016, Satish Balay wrote:
> I was going to push the following fix to mark/snes-ex56c.
> 
> diff --git a/src/ksp/ksp/impls/cheby/cheby.c b/src/ksp/ksp/impls/cheby/cheby.c
> index f2a26bf..722d32d 100644
> --- a/src/ksp/ksp/impls/cheby/cheby.c
> +++ b/src/ksp/ksp/impls/cheby/cheby.c
> @@ -369,7 +369,7 @@ static PetscErrorCode KSPSolve_Chebyshev(KSP ksp)
>            ierr = VecGetLocalSize(B,&n);CHKERRQ(ierr);
>            ierr = VecGetArray(B,&xx);CHKERRQ(ierr);
>            for (i=0; i<n; i++) {
> -            PetscReal v = chebyhash(i+istart);
> +            PetscScalar v = chebyhash(i+istart);
>              xx[i] = v;
>            }
>            ierr = VecRestoreArray(B,&xx);CHKERRQ(ierr);
pushed to mark/snes-ex56c and merged with next.
satish
    
    
More information about the petsc-dev
mailing list