[petsc-users] Solve the Poisson equation twice with /src/ksp/ksp/examples/tutorials/ex45.c

Matthew Knepley knepley at gmail.com
Thu May 17 13:11:36 CDT 2012


On Thu, May 17, 2012 at 1:47 PM, Zhenglun (Alan) Wei <zhenglun.wei at gmail.com
> wrote:

> Dear All,
>    I hope you're having a nice day.
>    I was trying to solve the Poisson equation with /src/ksp/ksp/exmaples/*
> *tutorial/ex45.c; however, it always give me the same result. I recalled
> the PetscLogStages and resolved this problem. However, the process of
> reconstructing DM costs a lot of computational time. I wonder do I have to
> use PetscLogStages to solve this problem, since, I thought, this function
> is only needed for using DMMG. Or as long as DM twice in one program, then
> I need to call PetscLogStages.
>

I cannot understand what you mean. PetscLog functions only affect logging.

   Matt


> thanks,
> Alan
>



-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120517/bbb077fc/attachment.htm>


More information about the petsc-users mailing list