Author Topic: Debugging in ParFEAP  (Read 4415 times)

wklausler

  • Jr. Member
  • **
  • Posts: 27
Debugging in ParFEAP
« 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

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1160
Re: Debugging in ParFEAP
« Reply #1 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.

wklausler

  • Jr. Member
  • **
  • Posts: 27
Re: Debugging in ParFEAP
« Reply #2 on: July 22, 2020, 07:28:37 AM »
Thank you, this is excellent