[petsc-users] petsc compiled without MPI
Pierre Jolivet
pierre at joliv.et
Sun Feb 26 00:28:31 CST 2023
> On 25 Feb 2023, at 11:44 PM, Long, Jianbo <jl7037 at mun.ca> wrote:
>
> Hello,
>
> For some of my applications, I need to use petsc without mpi, or use it sequentially. I wonder where I can find examples/tutorials for this ?
You can run sequentially with just a single MPI process (-n 1).
If you need to run without MPI whatsoever, you’ll need to have a separate PETSc installation which was configured --with-mpi=0
In both cases, the same user-code will run, i.e., all PETSc examples available with the sources will work (though some are designed purely for parallel experiments and may error out early on purpose).
Thanks,
Pierre
> Thanks very much,
> Jianbo Long
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230226/9cee4e1a/attachment.html>
More information about the petsc-users
mailing list