Actual source code: regressorregi.c

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

      3: PETSC_EXTERN PetscErrorCode PetscRegressorCreate_Linear(PetscRegressor);

      5: PetscErrorCode PetscRegressorRegisterAll(void)
      6: {
      7:   PetscFunctionBegin;
      8:   if (PetscRegressorRegisterAllCalled) PetscFunctionReturn(PETSC_SUCCESS);
      9:   PetscRegressorRegisterAllCalled = PETSC_TRUE;
     10:   // Register all of the types of PetscRegressor
     11: #if !PetscDefined(USE_COMPLEX)
     12:   PetscCall(PetscRegressorRegister(PETSCREGRESSORLINEAR, PetscRegressorCreate_Linear));
     13: #endif
     14:   PetscFunctionReturn(PETSC_SUCCESS);
     15: }