[petsc-dev] Patch to fix vector allocation in ksp-fcg
Sascha Schnepp
mail at saschaschnepp.net
Fri Dec 19 08:18:49 CST 2014
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Fix-to-KSPAllocateVectors_FCG.patch
Type: application/octet-stream
Size: 1394 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20141219/a7d0416a/attachment.obj>
-------------- next part --------------
--------------------------------------
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
--------------------------------------
More information about the petsc-dev
mailing list