Re: [petsc-users] petsc compiled without MPI

2023-02-27 Thread Matthew Knepley
On Mon, Feb 27, 2023 at 8:41 AM Long, Jianbo wrote: > Thanks for the explanations ! It turns out the issue of running > sequentially compiled petsc is PetscFinalize() function. Since my > subroutine involving petsc functions needs to be called multiple times in > the program, I have to comment

Re: [petsc-users] petsc compiled without MPI

2023-02-27 Thread Long, Jianbo
Thanks for the explanations ! It turns out the issue of running sequentially compiled petsc is PetscFinalize() function. Since my subroutine involving petsc functions needs to be called multiple times in the program, I have to comment out PetscFinalize() at the end of the subroutine, otherwise at

Re: [petsc-users] petsc compiled without MPI

2023-02-26 Thread Satish Balay via petsc-users
On Sun, 26 Feb 2023, Pierre Jolivet wrote: > > > > On 25 Feb 2023, at 11:44 PM, Long, Jianbo 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

Re: [petsc-users] petsc compiled without MPI

2023-02-25 Thread Pierre Jolivet
> On 25 Feb 2023, at 11:44 PM, Long, Jianbo 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

[petsc-users] petsc compiled without MPI

2023-02-25 Thread Long, Jianbo
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 ? Thanks very much, Jianbo Long