[petsc-users] A flag for FormFunction.

(Rebecca) Xuefei YUAN xy2102 at columbia.edu
Thu Jan 14 09:14:07 CST 2010

Dear all,

I would like to setup a flag for the FormFunction like:

if (FormFunction is called by SNESComputeFunction){
     flag = 1;
     flag = 0;

Is there any way I can know which function called FormFunction? I can  
tell very clear in debug mode, but I need this information in the code.

Thanks very much!


More information about the petsc-users mailing list