FEAP User Forum
FEAP => Parallel FEAP => Topic started by: wklausler on July 17, 2020, 09:13:11 AM
-
Dear parFEAP users,
I'm looking to modify the parFEAP stiffness assembly process for my user package, and using a debugger would be very helpful. Can this be done? Based on the order of the terms in the input command (taken from parmanual84)
mpirun -n $NPROC $FEAPHOME8_4/parfeap/feap -ksp_type cg -pc_type jacobi
it seems that putting 'gdb' before it all loads MPI into gdb to be debugged. Is there a way to debug parFEAP itself in gdb, or some other debugger? Any tips are appreciated.
Best regards,
wklausler
-
There are two options.
(1) If you want to start up normally and only enter gdb once an error occurs add -on_error_attach_debugger
(2) If you want to start in the dubugger, say, to set up break points etc. then add -start_in_debugger
See page 20 of the PETSc manual https://www.mcs.anl.gov/petsc/petsc-current/docs/manual.pdf for further options.
-
Thank you, this is excellent