----------------------------------------------------------------------------- -----------------------------------------------------------------------------
| 639 | //----------------------------------------------------------------------------- |
| 640 | //----------------------------------------------------------------------------- |
| 641 | petsc::KrylovSolver::KrylovSolver(MPI_Comm comm) : _ksp(nullptr) |
| 642 | { |
| 643 | // Create PETSc KSP object |
| 644 | PetscErrorCode ierr = KSPCreate(comm, &_ksp); |
| 645 | if (ierr != 0) |
| 646 | petsc::error(ierr, __FILE__, "KSPCreate"); |
| 647 | } |
| 648 | //----------------------------------------------------------------------------- |
| 649 | petsc::KrylovSolver::KrylovSolver(KSP ksp, bool inc_ref_count) : _ksp(ksp) |
| 650 | { |
nothing calls this directly
no outgoing calls
no test coverage detected