[petsc-dev] passing a function pointer?

Barry Smith bsmith at mcs.anl.gov
Thu May 3 21:44:30 CDT 2012


On May 3, 2012, at 9:33 PM, Cinstance wrote:

> I am using PETSC as the linear solver for a CFD project. It is part of an integrated frame work, and the project is developed under MS Windows. 
> 
> I use PETSC as prebuild libs in Visual Studio, so I cannot debug into PETSC code (at least for now I haven't figured out how to).

   You should be able to build the debug version of PETSc on WINDOWS then in visual studio you can just debug down to the PETSc routines.

> What make it worse is that the framework ignored all the PetscPrintf messages. This leaves me in total darkness.

  Hope this helps. 

http://www.mcs.anl.gov/petsc/documentation/faq.html#redirectstdout


> 
> The framework has its own printf derived method. Is there a way to pass it as a function pointer to petsc for it to use for printing stuff. Does it have a way to pass on this? 
> 
> Thanks,
> Lesong




More information about the petsc-dev mailing list