[petsc-users] Problem running ex50 after compilation
Srinivas Kirthy K
srinivas.kirthy at gmail.com
Fri Jan 30 23:13:56 CST 2026
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/a90f29c9/attachment-0001.html>
-------------- next part --------------
[unset]: launcher not compatible with PMI1 client
Fatal error in internal_Init_thread: Other MPI error, error stack:
internal_Init_thread(71): MPI_Init_thread(argc=0x7fff90afe3dc, argv=0x7fff90afe3d0, required=1, provided=0x7fff90afdf7c) failed
MPII_Init_thread(203)...:
MPIR_pmi_init(150)......:
pmi1_init(14)...........: PMI_Init returned -1
[unset]: PMIU_write error; fd=-1 buf=:cmd=abort exitcode=807004687 message=abort
:
system msg for write_line failure : Bad file descriptor
--------------------------------------------------------------------------
Primary job terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpiexec detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:
Process name: [[29885,1],0]
Exit code: 15
--------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log
Type: text/x-log
Size: 3074401 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20260131/a90f29c9/attachment-0001.bin>
More information about the petsc-users
mailing list