1*34b254c5SRichard Tran Mills #include <petsc/private/regressorimpl.h> 2*34b254c5SRichard Tran Mills 3*34b254c5SRichard Tran Mills PETSC_EXTERN PetscErrorCode PetscRegressorCreate_Linear(PetscRegressor); 4*34b254c5SRichard Tran Mills PetscRegressorRegisterAll(void)5*34b254c5SRichard Tran MillsPetscErrorCode PetscRegressorRegisterAll(void) 6*34b254c5SRichard Tran Mills { 7*34b254c5SRichard Tran Mills PetscFunctionBegin; 8*34b254c5SRichard Tran Mills if (PetscRegressorRegisterAllCalled) PetscFunctionReturn(PETSC_SUCCESS); 9*34b254c5SRichard Tran Mills PetscRegressorRegisterAllCalled = PETSC_TRUE; 10*34b254c5SRichard Tran Mills // Register all of the types of PetscRegressor 11*34b254c5SRichard Tran Mills #if !PetscDefined(USE_COMPLEX) 12*34b254c5SRichard Tran Mills PetscCall(PetscRegressorRegister(PETSCREGRESSORLINEAR, PetscRegressorCreate_Linear)); 13*34b254c5SRichard Tran Mills #endif 14*34b254c5SRichard Tran Mills PetscFunctionReturn(PETSC_SUCCESS); 15*34b254c5SRichard Tran Mills } 16