[petsc-users] Problem running ex50 after compilation

Srinivas Kirthy K srinivas.kirthy at gmail.com
Sat Jan 31 01:48:23 CST 2026


Hi Satish,

I included this line in the makefile:

*mpiexec: "${PETSC_DIR}/${PETSC_ARCH}/bin/mpiexec" *

Was able to compile, still getting the same error when I run *mpiexec -n 1
./ex50  -da_grid_x 4 -da_grid_y 4 -mat_view*

Anything that I'm doing wrong?

Thanks.


On Sat, Jan 31, 2026 at 10:54 AM Satish Balay <balay.anl at fastmail.org>
wrote:

> >>>>
> Configure Options: --configModules=PETSc.Configure
> --optionsModule=config.compilerOptions --download-mpich
> --download-fblaslapack
> <<<<
>
> Ok - so you've installed MPI via --download-mpich - so you need to use:
>
> >>>
>   mpiexec: /home/skirthy/petsc/arch-linux-c-debug/bin/mpiexec
> <<<
>
> [likely mpiexec used below is a different one]
>
> Satish
>
> On Sat, 31 Jan 2026, Srinivas Kirthy K wrote:
>
> > Hi,
> >
> > I'm new to PETSc.
> >
> > I was able to compile ex50.c using:
> > *cd petsc/src/ksp/ksp/tutorials*
> > *make ex50*
> >
> > When I run: *mpiexec -n 1 ./ex50  -da_grid_x 4 -da_grid_y 4 -mat_view*
> >
> > I get the error message in *PETSC_mpiexec_error.txt *(attached)
> >
> > I've defined these in the ~/.bashrc:
> >
> > *export PETSC_DIR=$HOME/petsc # added on 31/01/2026 to define PETSC
> > locationexport PETSC_ARCH=arch-linux-c-debug*
> >
> > Can you help me fix this?
> >
> > I've attached the *configure.log* file as well.
> >
> > Thanks in advance.
> >
> >
>
>

-- 
Regards,

Srinivas Kirthy K
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20260131/9e6761e0/attachment.html>


More information about the petsc-users mailing list