On Wed, Oct 19, 2022 at 9:26 AM 김성익 <ksi2443@gmail.com> wrote:
Dear PETSc users,


I have a question about structure of programming.

My blueprint of Finite Element programming with PETSc solver is below.
image.png
The blue box is whole loop for my FE program.
There is a loop B that performs a convergence iteration (KU=F) inside the loop A in which the load increment increases.
I want to proceed in rank=0 sequentially except for the kspsolve part that solves KU=F.

How can I do this??

I think you want this:

  https://petsc.org/main/docs/manual/ksp/#using-a-mpi-parallel-linear-solver-from-a-non-mpi-program

  Thanks,

    Matt
 
Best regards,
Hyung Kim


--
What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.
-- Norbert Wiener