Home
last modified time | relevance | path

Searched refs:ksp_coarse (Results 1 – 3 of 3) sorted by relevance

/petsc/src/ksp/pc/impls/is/nn/
H A Dnn.c112 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()
[all …]
H A Dnn.h16 KSP ksp_coarse; member
/petsc/src/ksp/ksp/tests/
H A Dex19.c39 KSP ksp_coarse; member
120 PetscCall(PCMGGetCoarseSolve(pc, &user.ksp_coarse)); in main()
121 PetscCall(KSPSetOptionsPrefix(user.ksp_coarse, "coarse_")); in main()
122 PetscCall(KSPSetFromOptions(user.ksp_coarse)); in main()
123 PetscCall(KSPSetOperators(user.ksp_coarse, user.coarse.J, user.coarse.J)); in main()