Hi, I'm trying to run src/ts/tutorials/ex2.c <https://urldefense.us/v3/__https://petsc.org/release/tutorials/handson/*handson__;Iw!!G_uCfscf7eWS!ZPCw4pyB_fkaQNPaMbajMRdPOEQUxQ4FkkuynSiE6DZ18UHOg5qsEmgew5BiTm04qyouW1HqyaWvRQ-OxU8CFiIYKbuDFLY$ > using: */home/skirthy/petsc/arch-linux-c-debug/bin/mpiexec -n 1 ./ex2 -ts_max_steps 10 -ts_monitor*
Instead of the expected output <https://urldefense.us/v3/__https://petsc.org/release/tutorials/handson/*handson__;Iw!!G_uCfscf7eWS!ZPCw4pyB_fkaQNPaMbajMRdPOEQUxQ4FkkuynSiE6DZ18UHOg5qsEmgew5BiTm04qyouW1HqyaWvRQ-OxU8CFiIYKbuDFLY$ >, I get this: *Norm of error 0.000156044 iterations 6WARNING! There are options you set that were not used!WARNING! could be spelling mistake, etc!There are 2 unused database options. They are:Option left: name:-ts_max_steps value: 10 source: command lineOption left: name:-ts_monitor (no value) source: command line* Trying to troubleshoot this, can anyone help? Thanks. On Sat, Jan 31, 2026 at 1:34 PM Srinivas Kirthy K <[email protected]> wrote: > Works now. Thank you. > > On Sat, Jan 31, 2026 at 1:29 PM Satish Balay <[email protected]> > wrote: > >> On Sat, 31 Jan 2026, Srinivas Kirthy K wrote: >> >> > 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? >> >> Use: >> >> /home/skirthy/petsc/arch-linux-c-debug/bin/mpiexec -n 1 ./ex50 >> -da_grid_x 4 -da_grid_y 4 -mat_view >> >> Satish >> >> > >> > Thanks. >> > >> > >> > On Sat, Jan 31, 2026 at 10:54 AM Satish Balay <[email protected]> >> > 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 > -- Regards, Srinivas Kirthy K
