Lines Matching refs:ksp_coarse
112 PetscCall(KSPDestroy(&pcnn->ksp_coarse)); in PCDestroy_NN()
174 pcnn->ksp_coarse = NULL; in PCCreate_NN()
342 PetscCall(KSPCreate(PetscObjectComm((PetscObject)pc), &pcnn->ksp_coarse)); in PCNNCreateCoarseMatrix()
343 PetscCall(KSPSetNestLevel(pcnn->ksp_coarse, pc->kspnestlevel)); in PCNNCreateCoarseMatrix()
344 PetscCall(PetscObjectIncrementTabLevel((PetscObject)pcnn->ksp_coarse, (PetscObject)pc, 2)); in PCNNCreateCoarseMatrix()
345 PetscCall(KSPSetOperators(pcnn->ksp_coarse, pcnn->coarse_mat, pcnn->coarse_mat)); in PCNNCreateCoarseMatrix()
346 PetscCall(KSPGetPC(pcnn->ksp_coarse, &pc_ctx)); in PCNNCreateCoarseMatrix()
348 PetscCall(KSPSetType(pcnn->ksp_coarse, KSPPREONLY)); in PCNNCreateCoarseMatrix()
352 PetscCall(KSPSetOptionsPrefix(pcnn->ksp_coarse, "nn_coarse_")); in PCNNCreateCoarseMatrix()
353 PetscCall(KSPSetFromOptions(pcnn->ksp_coarse)); in PCNNCreateCoarseMatrix()
355 PetscCall(KSPSetUp(pcnn->ksp_coarse)); in PCNNCreateCoarseMatrix()
544 PetscCall(KSPSolve(pcnn->ksp_coarse, pcnn->coarse_b, pcnn->coarse_x)); in PCNNBalancing()