Actual source code: mfnregis.c

slepc-3.16.1 2021-11-17
Report Typos and Errors
  1: /*
  2:    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  3:    SLEPc - Scalable Library for Eigenvalue Problem Computations
  4:    Copyright (c) 2002-2021, Universitat Politecnica de Valencia, Spain

  6:    This file is part of SLEPc.
  7:    SLEPc is distributed under a 2-clause BSD license (see LICENSE).
  8:    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  9: */

 11: #include <slepc/private/mfnimpl.h>

 13: SLEPC_EXTERN PetscErrorCode MFNCreate_Krylov(MFN);
 14: SLEPC_EXTERN PetscErrorCode MFNCreate_Expokit(MFN);

 16: /*@C
 17:   MFNRegisterAll - Registers all the matrix functions in the MFN package.

 19:   Not Collective

 21:   Level: advanced

 23: .seealso:  MFNRegister()
 24: @*/
 25: PetscErrorCode MFNRegisterAll(void)
 26: {

 30:   if (MFNRegisterAllCalled) return(0);
 31:   MFNRegisterAllCalled = PETSC_TRUE;
 32:   MFNRegister(MFNKRYLOV,MFNCreate_Krylov);
 33:   MFNRegister(MFNEXPOKIT,MFNCreate_Expokit);
 34:   return(0);
 35: }

 37: /*@C
 38:   MFNMonitorRegisterAll - Registers all the monitors in the MFN package.

 40:   Not Collective

 42:   Level: advanced
 43: @*/
 44: PetscErrorCode MFNMonitorRegisterAll(void)
 45: {

 49:   if (MFNMonitorRegisterAllCalled) return(0);
 50:   MFNMonitorRegisterAllCalled = PETSC_TRUE;

 52:   MFNMonitorRegister("error_estimate",PETSCVIEWERASCII,PETSC_VIEWER_DEFAULT,MFNMonitorDefault,NULL,NULL);
 53:   MFNMonitorRegister("error_estimate",PETSCVIEWERDRAW,PETSC_VIEWER_DRAW_LG,MFNMonitorDefaultDrawLG,MFNMonitorDefaultDrawLGCreate,NULL);
 54:   return(0);
 55: }