Re: [petsc-dev] Patch to fix vector allocation in ksp-fcg
Fixed in master and next Thanks Barry
On Dec 19, 2014, at 8:18 AM, Sascha Schnepp <[email protected]> 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
[email protected] 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>
participants (1)
-
Barry Smith