Skip to content

Some questions about in external_petsc_problem of calling FormIFunction and FormIJacobian? #29178

Discussion options

You must be logged in to vote

Haha, I find the answer. They are called by functions in /home/sjtu/mambaforge3/envs/moose/lib/libpetsc.so.3.019 in conda environment maybe generated by PETScDiffusionFDM.C which do not appear in \modules\external_petsc_solver\.

We can use gdb tool and backtrace to find this.

  1. Make the dbg file. In projects/moose/modules/external_petsc_solver directory:
conda activate moose
METHOD=dbg make -j8
  1. In projects/moose/modules/external_petsc_solver/test/tests/external_petsc_problem
gdb --args ../../../external_petsc_solver_dbg -i moose_as_parent.i
break FormIFunction
y
run
backtrace
c

It will return:

#0  FormIFunction (ts=0x555555caba00, U=0x555555fac860, Udot=0x555555fbd520, 
    F=0x55…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Wang-Yihu
Comment options

@GiudGiud
Comment options

GiudGiud Dec 2, 2024
Collaborator

@Wang-Yihu
Comment options

@Wang-Yihu
Comment options

Answer selected by Wang-Yihu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants