Actual source code: gmpre.c

petsc-3.8.3 2017-12-09
Report Typos and Errors

  2:  #include <../src/ksp/ksp/impls/gmres/gmresimpl.h>

  4: /*@
  5:     KSPGMRESSetPreAllocateVectors - Causes GMRES and FGMRES to preallocate all its
  6:     needed work vectors at initial setup rather than the default, which
  7:     is to allocate them in chunks when needed.

  9:     Logically Collective on KSP

 11:     Input Parameter:
 12: .   ksp   - iterative context obtained from KSPCreate

 14:     Options Database Key:
 15: .   -ksp_gmres_preallocate - Activates KSPGmresSetPreAllocateVectors()

 17:     Level: intermediate

 19: .keywords: GMRES, preallocate, vectors

 21: .seealso: KSPGMRESSetRestart(), KSPGMRESSetOrthogonalization(), KSPGMRESGetOrthogonalization()
 22: @*/
 23: PetscErrorCode  KSPGMRESSetPreAllocateVectors(KSP ksp)
 24: {

 28:   PetscTryMethod(ksp,"KSPGMRESSetPreAllocateVectors_C",(KSP),(ksp));
 29:   return(0);
 30: }