Date: 2024-12-02T08:58:03+00:00

Actual source code: bvregis.c
slepc-3.22.2 2024-12-02
Report Typos and Errors

      1: /*
      2:    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      3:    SLEPc - Scalable Library for Eigenvalue Problem Computations
      4:    Copyright (c) 2002-, 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/bvimpl.h>

     13: SLEPC_EXTERN PetscErrorCode BVCreate_Vecs(BV);
     14: SLEPC_EXTERN PetscErrorCode BVCreate_Contiguous(BV);
     15: SLEPC_EXTERN PetscErrorCode BVCreate_Svec(BV);
     16: SLEPC_EXTERN PetscErrorCode BVCreate_Mat(BV);
     17: SLEPC_EXTERN PetscErrorCode BVCreate_Tensor(BV);

     19: /*@C
     20:    BVRegisterAll - Registers all of the storage variants in the BV package.

     22:    Not Collective

     24:    Level: advanced

     26: .seealso: BVRegister()
     27: @*/
     28: PetscErrorCode BVRegisterAll(void)
     29: {
     30:   PetscFunctionBegin;
     31:   if (BVRegisterAllCalled) PetscFunctionReturn(PETSC_SUCCESS);
     32:   BVRegisterAllCalled = PETSC_TRUE;
     33:   PetscCall(BVRegister(BVVECS,BVCreate_Vecs));
     34:   PetscCall(BVRegister(BVCONTIGUOUS,BVCreate_Contiguous));
     35:   PetscCall(BVRegister(BVSVEC,BVCreate_Svec));
     36:   PetscCall(BVRegister(BVMAT,BVCreate_Mat));
     37:   PetscCall(BVRegister(BVTENSOR,BVCreate_Tensor));
     38:   PetscFunctionReturn(PETSC_SUCCESS);
     39: }