xref: /petsc/src/ts/characteristic/interface/mocregis.c (revision df4cd43f92eaa320656440c40edb1046daee8f75)
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 methods in the `Characteristic` package.
7 
8   Not Collective
9 
10   Level: advanced
11 
12 .seealso: [](chapter_ts), `CharacteristicRegisterDestroy()`
13 @*/
14 PetscErrorCode CharacteristicRegisterAll(void)
15 {
16   PetscFunctionBegin;
17   if (CharacteristicRegisterAllCalled) PetscFunctionReturn(PETSC_SUCCESS);
18   CharacteristicRegisterAllCalled = PETSC_TRUE;
19 
20   PetscCall(CharacteristicRegister(CHARACTERISTICDA, CharacteristicCreate_DA));
21   PetscFunctionReturn(PETSC_SUCCESS);
22 }
23