1: #include <petsc-private/characteristicimpl.h> /*I "petsccharacteristic.h" I*/ 3: EXTERN_C_BEGIN 4: extern PetscErrorCode CharacteristicCreate_DA(Characteristic); 5: EXTERN_C_END 6: 7: /* 8: This is used by CharacteristicSetType() to make sure that at least one 9: CharacteristicRegisterAll() is called. In general, if there is more than one 10: DLL, then CharacteristicRegisterAll() may be called several times. 11: */ 12: extern PetscBool CharacteristicRegisterAllCalled; 16: /*@C 17: CharacteristicRegisterAll - Registers all of the Krylov subspace methods in the Characteristic package. 19: Not Collective 21: Level: advanced 23: .keywords: Characteristic, register, all 25: .seealso: CharacteristicRegisterDestroy() 26: @*/ 27: PetscErrorCode CharacteristicRegisterAll(const char path[]) 28: { 32: CharacteristicRegisterAllCalled = PETSC_TRUE; 34: CharacteristicRegisterDynamic(CHARACTERISTICDA, path, "CharacteristicCreate_DA", CharacteristicCreate_DA); 35: return(0); 36: }