Commits

Matt Knepley  committed 25c470c

MatSchurComplement: Must initialize KSP package

(cherry picked from commit aec61823ab922ea128701e860263c03e2c8f2599)

  • Participants
  • Parent commits e79ed30

Comments (0)

Files changed (1)

File src/ksp/ksp/utils/schurm.c

   PetscErrorCode ierr;
 
   PetscFunctionBegin;
+#if !defined(PETSC_USE_DYNAMIC_LIBRARIES)
+  ierr = KSPInitializePackage();CHKERRQ(ierr);
+#endif
   ierr = MatCreate(((PetscObject)A00)->comm,N);CHKERRQ(ierr);
   ierr = MatSetType(*N,MATSCHURCOMPLEMENT);CHKERRQ(ierr);
   ierr = MatSchurComplementSet(*N,A00,Ap00,A01,A10,A11);CHKERRQ(ierr);