#include /*I "petsccharacteristic.h" I*/ PETSC_EXTERN PetscErrorCode CharacteristicCreate_DA(Characteristic); /* This is used by CharacteristicSetType() to make sure that at least one CharacteristicRegisterAll() is called. In general, if there is more than one DLL, then CharacteristicRegisterAll() may be called several times. */ extern PetscBool CharacteristicRegisterAllCalled; /*@C CharacteristicRegisterAll - Registers all of the Krylov subspace methods in the Characteristic package. Not Collective Level: advanced .keywords: Characteristic, register, all .seealso: CharacteristicRegisterDestroy() @*/ PetscErrorCode CharacteristicRegisterAll(void) { PetscErrorCode ierr; PetscFunctionBegin; if (CharacteristicRegisterAllCalled) PetscFunctionReturn(0); CharacteristicRegisterAllCalled = PETSC_TRUE; ierr = CharacteristicRegister(CHARACTERISTICDA, CharacteristicCreate_DA);CHKERRQ(ierr); PetscFunctionReturn(0); }