Subversion Repositories slepc-dev

Rev

Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2221 Rev 2242
Line 329... Line 329...
 
 
#undef __FUNCT__  
#undef __FUNCT__  
#define __FUNCT__ "EPSGDGetInitialSize"
#define __FUNCT__ "EPSGDGetInitialSize"
/*@
/*@
   EPSGDGetInitialSize - Gets the initial size of the searching space. In the
   EPSGDGetInitialSize - Gets the initial size of the searching space. In the
   case of EPSGetKrylovStart is PETSC_FALSE and the user provides vectors by
   case of EPSGDGetKrylovStart is PETSC_FALSE and the user provides vectors by
   EPSSetInitialSpace, up to initialsize vectors will be used; and if the
   EPSSetInitialSpace, up to initialsize vectors will be used; and if the
   provided vectors are not enough, the solver completes the subspace with
   provided vectors are not enough, the solver completes the subspace with
   random vectors. In the case of EPSGetKrylovStart is PETSC_TRUE, the solver
   random vectors. In the case of EPSGDGetKrylovStart is PETSC_TRUE, the solver
   gets the first vector provided by the user or, if not, a random vector,
   gets the first vector provided by the user or, if not, a random vector,
   and expands the Krylov basis up to initialsize vectors.
   and expands the Krylov basis up to initialsize vectors.
 
 
   Collective on EPS
   Collective on EPS
 
 
Line 347... Line 347...
.  initialsize - non-zero positive integer indicating the number of vectors of
.  initialsize - non-zero positive integer indicating the number of vectors of
   the initial searching subspace
   the initial searching subspace
 
 
   Level: advanced
   Level: advanced
 
 
.seealso: EPSGDSetInitialSize(), EPSGetKrylovStart()
.seealso: EPSGDSetInitialSize(), EPSGDGetKrylovStart()
@*/
@*/
PetscErrorCode EPSGDGetInitialSize(EPS eps,PetscInt *initialsize)
PetscErrorCode EPSGDGetInitialSize(EPS eps,PetscInt *initialsize)
{
{
  PetscErrorCode ierr;
  PetscErrorCode ierr;
 
 
Line 363... Line 363...
 
 
#undef __FUNCT__  
#undef __FUNCT__  
#define __FUNCT__ "EPSGDSetInitialSize"
#define __FUNCT__ "EPSGDSetInitialSize"
/*@
/*@
   EPSGDSetInitialSize - Sets the initial size of the searching space. In the
   EPSGDSetInitialSize - Sets the initial size of the searching space. In the
   case of EPSGetKrylovStart is PETSC_FALSE and the user provides vectors by
   case of EPSGDGetKrylovStart is PETSC_FALSE and the user provides vectors by
   EPSSetInitialSpace, up to initialsize vectors will be used; and if the
   EPSSetInitialSpace, up to initialsize vectors will be used; and if the
   provided vectors are not enough, the solver completes the subspace with
   provided vectors are not enough, the solver completes the subspace with
   random vectors. In the case of EPSGetKrylovStart is PETSC_TRUE, the solver
   random vectors. In the case of EPSGDGetKrylovStart is PETSC_TRUE, the solver
   gets the first vector provided by the user or, if not, a random vector,
   gets the first vector provided by the user or, if not, a random vector,
   and expands the Krylov basis up to initialsize vectors.
   and expands the Krylov basis up to initialsize vectors.
 
 
   Collective on EPS
   Collective on EPS
 
 
Line 383... Line 383...
.  -eps_gd_initial_size - non-zero positive integer indicating the number of
.  -eps_gd_initial_size - non-zero positive integer indicating the number of
    vectors of the initial searching subspace
    vectors of the initial searching subspace
   
   
   Level: advanced
   Level: advanced
 
 
.seealso: EPSGDGetInitialSize(), EPSGetKrylovStart()
.seealso: EPSGDGetInitialSize(), EPSGDGetKrylovStart()
@*/
@*/
PetscErrorCode EPSGDSetInitialSize(EPS eps,PetscInt initialsize)
PetscErrorCode EPSGDSetInitialSize(EPS eps,PetscInt initialsize)
{
{
  PetscErrorCode ierr;
  PetscErrorCode ierr;