FEAP User Forum

FEAP => Parallel FEAP => Topic started by: wklausler on July 17, 2020, 09:13:11 AM

Title: Debugging in ParFEAP
Post 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)

Code: [Select]
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
Title: Re: Debugging in ParFEAP
Post by: Prof. S. Govindjee on July 17, 2020, 08:22:16 PM
There are two options.

(1) If you want to start up normally and only enter gdb once an error occurs add
Code: [Select]
-on_error_attach_debugger
(2) If you want to start in the dubugger, say, to set up break points etc. then add
Code: [Select]
-start_in_debugger
See page 20 of the PETSc manual https://www.mcs.anl.gov/petsc/petsc-current/docs/manual.pdf for further options.
Title: Re: Debugging in ParFEAP
Post by: wklausler on July 22, 2020, 07:28:37 AM
Thank you, this is excellent