[petsc-dev] Patch to fix vector allocation in ksp-fcg

Barry Smith bsmith at mcs.anl.gov
Fri Dec 19 11:36:28 CST 2014


  Fixed in master and next

  Thanks

  Barry

> On Dec 19, 2014, at 8:18 AM, Sascha Schnepp <mail at saschaschnepp.net> wrote:
> 
> Hello developers,
> 
> I prepared a patch to fix the allocation of direction vectors in
> KSPAllocateVectors_FCG within ksp-fcg.
> 
> The fix consists only of replacing a PetscMin with a PetscMax. This
> prevents vectors being allocated one-by-one instead of chunksize
> of them once the preallocated ones (nprealloc) are exhausted.
> 
> Let me know if you prefer a PR.
> 
> Best,
> Sascha
> 
> 
> 
> --------------------------------------
> ETH Zurich
> Sascha Schnepp
> Institute of Geophysics - Geophysical Fluid Dynamics
> NO H23, Sonneggstrasse 5, 8092 Zurich, Switzerland
>  
> schnepps at ethz.ch
> www.gfd.ethz.ch; www.saschaschnepp.net
> 
> +41 44 632 0244 phone
> 
> Consider encrypting your mail
> Public Key ID: 0x67AC24EF
> --------------------------------------
> 
> <Fix-to-KSPAllocateVectors_FCG.patch>




More information about the petsc-dev mailing list