Actual source code: mocregis.c

  1: #include <petsc/private/characteristicimpl.h>

  3: PETSC_EXTERN PetscErrorCode CharacteristicCreate_DA(Characteristic);

  5: /*@C
  6:   CharacteristicRegisterAll - Registers all of the methods in the `Characteristic` package.

  8:   Not Collective

 10:   Level: advanced

 12: .seealso: [](ch_ts), `CharacteristicRegisterDestroy()`
 13: @*/
 14: PetscErrorCode CharacteristicRegisterAll(void)
 15: {
 16:   PetscFunctionBegin;
 17:   if (CharacteristicRegisterAllCalled) PetscFunctionReturn(PETSC_SUCCESS);
 18:   CharacteristicRegisterAllCalled = PETSC_TRUE;

 20:   PetscCall(CharacteristicRegister(CHARACTERISTICDA, CharacteristicCreate_DA));
 21:   PetscFunctionReturn(PETSC_SUCCESS);
 22: }