1*292f8084SBarry Smith 2*292f8084SBarry Smith #include "petscpf.h" /*I "petscpf.h" I*/ 3*292f8084SBarry Smith 4*292f8084SBarry Smith EXTERN_C_BEGIN 5*292f8084SBarry Smith EXTERN PetscErrorCode PFCreate_Constant(PF,void*); 6*292f8084SBarry Smith EXTERN PetscErrorCode PFCreate_String(PF,void*); 7*292f8084SBarry Smith EXTERN PetscErrorCode PFCreate_Quick(PF,void*); 8*292f8084SBarry Smith EXTERN PetscErrorCode PFCreate_Identity(PF,void*); 9*292f8084SBarry Smith #if defined(PETSC_HAVE_MATLAB) && !defined(PETSC_USE_COMPLEX) && !defined(PETSC_USE_SINGLE) 10*292f8084SBarry Smith EXTERN PetscErrorCode PFCreate_Matlab(PF,void*); 11*292f8084SBarry Smith #endif 12*292f8084SBarry Smith EXTERN_C_END 13*292f8084SBarry Smith 14*292f8084SBarry Smith #undef __FUNCT__ 15*292f8084SBarry Smith #define __FUNCT__ "PFRegisterAll" 16*292f8084SBarry Smith /*@C 17*292f8084SBarry Smith PFRegisterAll - Registers all of the preconditioners in the PF package. 18*292f8084SBarry Smith 19*292f8084SBarry Smith Not Collective 20*292f8084SBarry Smith 21*292f8084SBarry Smith Input Parameter: 22*292f8084SBarry Smith . path - the library where the routines are to be found (optional) 23*292f8084SBarry Smith 24*292f8084SBarry Smith Level: advanced 25*292f8084SBarry Smith 26*292f8084SBarry Smith .keywords: PF, register, all 27*292f8084SBarry Smith 28*292f8084SBarry Smith .seealso: PFRegisterDynamic(), PFRegisterDestroy() 29*292f8084SBarry Smith @*/ 30*292f8084SBarry Smith PetscErrorCode PFRegisterAll(const char path[]) 31*292f8084SBarry Smith { 32*292f8084SBarry Smith PetscErrorCode ierr; 33*292f8084SBarry Smith 34*292f8084SBarry Smith PetscFunctionBegin; 35*292f8084SBarry Smith PFRegisterAllCalled = PETSC_TRUE; 36*292f8084SBarry Smith 37*292f8084SBarry Smith ierr = PFRegisterDynamic(PFCONSTANT ,path,"PFCreate_Constant",PFCreate_Constant);CHKERRQ(ierr); 38*292f8084SBarry Smith ierr = PFRegisterDynamic(PFSTRING ,path,"PFCreate_String",PFCreate_String);CHKERRQ(ierr); 39*292f8084SBarry Smith ierr = PFRegisterDynamic(PFQUICK ,path,"PFCreate_Quick",PFCreate_Quick);CHKERRQ(ierr); 40*292f8084SBarry Smith ierr = PFRegisterDynamic(PFIDENTITY ,path,"PFCreate_Identity",PFCreate_Identity);CHKERRQ(ierr); 41*292f8084SBarry Smith #if defined(PETSC_HAVE_MATLAB) && !defined(PETSC_USE_COMPLEX) && !defined(PETSC_USE_SINGLE) 42*292f8084SBarry Smith ierr = PFRegisterDynamic(PFMATLAB ,path,"PFCreate_Matlab",PFCreate_Matlab);CHKERRQ(ierr); 43*292f8084SBarry Smith #endif 44*292f8084SBarry Smith PetscFunctionReturn(0); 45*292f8084SBarry Smith } 46*292f8084SBarry Smith 47*292f8084SBarry Smith 48