xref: /petsc/src/ts/characteristic/interface/mocregis.c (revision 94ef8dde638caef1d0cd84a7dc8a2db65fcda8b6)
1 #include <petsc/private/characteristicimpl.h>  /*I "petsccharacteristic.h" I*/
2 
3 PETSC_EXTERN PetscErrorCode CharacteristicCreate_DA(Characteristic);
4 
5 /*@C
6   CharacteristicRegisterAll - Registers all of the Krylov subspace methods in the Characteristic package.
7 
8   Not Collective
9 
10   Level: advanced
11 
12 .keywords: Characteristic, register, all
13 
14 .seealso:  CharacteristicRegisterDestroy()
15 @*/
16 PetscErrorCode CharacteristicRegisterAll(void)
17 {
18   PetscErrorCode ierr;
19 
20   PetscFunctionBegin;
21   if (CharacteristicRegisterAllCalled) PetscFunctionReturn(0);
22   CharacteristicRegisterAllCalled = PETSC_TRUE;
23 
24   ierr = CharacteristicRegister(CHARACTERISTICDA,  CharacteristicCreate_DA);CHKERRQ(ierr);
25   PetscFunctionReturn(0);
26 }
27