You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Eunseo Choi edited this page Aug 11, 2024
·
1 revision
Develop with MFEM in a debug mode
An MFEM debug build provides numerous useful assertions that help us avoid bugs that we might easily overlook when working with the Release version only.
During the development process, please build mfem as
make pdebug -j 8 MFEM_USE_GSLIB=YES
or
make pcudebug -j 8 MFEM_USE_GSLIB=YES
Laghost build will just import the flags from MFEM. So, Laghost can be still built with just make -j 8.
Debugging the parallel build of Laghost
Using gdb
Start multiple gdb processes, each running laghost and communicating with the others: e.g., mpirun -np 2 xterm -e gdb ./laghost --input defaults.cfg
On one of the xterms, set one or more breakpoints or do any other necessary preparation.
Run run on ALL the xterms to start all the processes.