| Line 43... |
Line 43... |
|
|
.seealso: SlepcFinalize()
|
.seealso: SlepcFinalize()
|
@*/
|
@*/
|
PetscErrorCode EPSFinalizePackage(void)
|
PetscErrorCode EPSFinalizePackage(void)
|
{
|
{
|
|
PetscErrorCode ierr;
|
|
|
PetscFunctionBegin;
|
PetscFunctionBegin;
|
|
ierr = PetscFunctionListDestroy(&EPSList);CHKERRQ(ierr);
|
EPSPackageInitialized = PETSC_FALSE;
|
EPSPackageInitialized = PETSC_FALSE;
|
EPSList = 0;
|
|
EPSRegisterAllCalled = PETSC_FALSE;
|
EPSRegisterAllCalled = PETSC_FALSE;
|
PetscFunctionReturn(0);
|
PetscFunctionReturn(0);
|
}
|
}
|
|
|
#undef __FUNCT__
|
#undef __FUNCT__
|
| Line 608... |
Line 610... |
or at runtime via the option
|
or at runtime via the option
|
$ -eps_type my_solver
|
$ -eps_type my_solver
|
|
|
Level: advanced
|
Level: advanced
|
|
|
.seealso: EPSRegisterDestroy(), EPSRegisterAll()
|
.seealso: EPSRegisterAll()
|
@*/
|
@*/
|
PetscErrorCode EPSRegister(const char *name,PetscErrorCode (*function)(EPS))
|
PetscErrorCode EPSRegister(const char *name,PetscErrorCode (*function)(EPS))
|
{
|
{
|
PetscErrorCode ierr;
|
PetscErrorCode ierr;
|
|
|
PetscFunctionBegin;
|
PetscFunctionBegin;
|
ierr = PetscFunctionListAdd(&EPSList,name,function);CHKERRQ(ierr);
|
ierr = PetscFunctionListAdd(&EPSList,name,function);CHKERRQ(ierr);
|
PetscFunctionReturn(0);
|
|
}
|
|
|
|
#undef __FUNCT__
|
|
#define __FUNCT__ "EPSRegisterDestroy"
|
|
/*@
|
|
EPSRegisterDestroy - Frees the list of EPS methods that were
|
|
registered by EPSRegister().
|
|
|
|
Not Collective
|
|
|
|
Level: advanced
|
|
|
|
.seealso: EPSRegister(), EPSRegisterAll()
|
|
@*/
|
|
PetscErrorCode EPSRegisterDestroy(void)
|
|
{
|
|
PetscErrorCode ierr;
|
|
|
|
PetscFunctionBegin;
|
|
ierr = PetscFunctionListDestroy(&EPSList);CHKERRQ(ierr);
|
|
EPSRegisterAllCalled = PETSC_FALSE;
|
|
PetscFunctionReturn(0);
|
PetscFunctionReturn(0);
|
}
|
}
|
|
|
#undef __FUNCT__
|
#undef __FUNCT__
|
#define __FUNCT__ "EPSReset"
|
#define __FUNCT__ "EPSReset"
|