<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Works now. Thank you.</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sat, Jan 31, 2026 at 1:29 PM Satish Balay <<a href="mailto:balay.anl@fastmail.org">balay.anl@fastmail.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sat, 31 Jan 2026, Srinivas Kirthy K wrote:<br>
<br>
> Hi Satish,<br>
> <br>
> I included this line in the makefile:<br>
> <br>
> *mpiexec: "${PETSC_DIR}/${PETSC_ARCH}/bin/mpiexec" *<br>
> <br>
> Was able to compile, still getting the same error when I run *mpiexec -n 1<br>
> ./ex50  -da_grid_x 4 -da_grid_y 4 -mat_view*<br>
> <br>
> Anything that I'm doing wrong?<br>
<br>
Use:<br>
<br>
/home/skirthy/petsc/arch-linux-c-debug/bin/mpiexec -n 1 ./ex50  -da_grid_x 4 -da_grid_y 4 -mat_view<br>
<br>
Satish<br>
<br>
> <br>
> Thanks.<br>
> <br>
> <br>
> On Sat, Jan 31, 2026 at 10:54 AM Satish Balay <<a href="mailto:balay.anl@fastmail.org" target="_blank">balay.anl@fastmail.org</a>><br>
> wrote:<br>
> <br>
> > >>>><br>
> > Configure Options: --configModules=PETSc.Configure<br>
> > --optionsModule=config.compilerOptions --download-mpich<br>
> > --download-fblaslapack<br>
> > <<<<<br>
> ><br>
> > Ok - so you've installed MPI via --download-mpich - so you need to use:<br>
> ><br>
> > >>><br>
> >   mpiexec: /home/skirthy/petsc/arch-linux-c-debug/bin/mpiexec<br>
> > <<<<br>
> ><br>
> > [likely mpiexec used below is a different one]<br>
> ><br>
> > Satish<br>
> ><br>
> > On Sat, 31 Jan 2026, Srinivas Kirthy K wrote:<br>
> ><br>
> > > Hi,<br>
> > ><br>
> > > I'm new to PETSc.<br>
> > ><br>
> > > I was able to compile ex50.c using:<br>
> > > *cd petsc/src/ksp/ksp/tutorials*<br>
> > > *make ex50*<br>
> > ><br>
> > > When I run: *mpiexec -n 1 ./ex50  -da_grid_x 4 -da_grid_y 4 -mat_view*<br>
> > ><br>
> > > I get the error message in *PETSC_mpiexec_error.txt *(attached)<br>
> > ><br>
> > > I've defined these in the ~/.bashrc:<br>
> > ><br>
> > > *export PETSC_DIR=$HOME/petsc # added on 31/01/2026 to define PETSC<br>
> > > locationexport PETSC_ARCH=arch-linux-c-debug*<br>
> > ><br>
> > > Can you help me fix this?<br>
> > ><br>
> > > I've attached the *configure.log* file as well.<br>
> > ><br>
> > > Thanks in advance.<br>
> > ><br>
> > ><br>
> ><br>
> ><br>
> <br>
> </blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><span style="font-family:verdana,sans-serif">Regards,</span></div><div><span style="font-family:verdana,sans-serif"><br></span></div><div><span style="font-family:verdana,sans-serif">Srinivas Kirthy K<br></span></div></div></div></div></div></div></div>