[petsc-dev] passing a function pointer?

Cinstance cinstance at gmail.com
Fri May 4 12:46:44 CDT 2012


Never mind. I see, I do not need a visual studio project for petsc, but a
debug version build is enough. I can debug it now. Thanks again for the
help.

Lesong

On Fri, May 4, 2012 at 1:30 PM, Cinstance <cinstance at gmail.com> wrote:

> Thanks for the relies. I tried to generate VS projects via CMAKE, but got
> the following error:
>
> CMake Error: The source "C:/cygwin/home/Lesong/petsc-dev/CMakeLists.txt"
> does not match the source "/home/Lesong/petsc-dev/CMakeLists.txt" used to
> generate cache. Re-run cmake with a different source directory
>
> Do I need to use a cygwin remapped directory instead of the default one to
> build the cmake configuration?
>
> Thanks again,
> Lesong
>
>
> On Thu, May 3, 2012 at 10:44 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
>
>>
>> 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
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120504/89456553/attachment.html>


More information about the petsc-dev mailing list