Commits

Matt Knepley  committed aec6182

MatSchurComplement: Must initialize KSP package

  • Participants
  • Parent commits 37d3b23

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);