[petsc-users] Question about Sequential & Parallel part
Matthew Knepley
knepley at gmail.com
Wed Oct 19 08:46:11 CDT 2022
On Wed, Oct 19, 2022 at 9:26 AM 김성익 <ksi2443 at 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: 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
https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20221019/30a4a621/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 64551 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20221019/30a4a621/attachment-0001.png>
More information about the petsc-users
mailing list