[petsc-users] When pull the petsc-dev for update:Connection timed out

Zhenglun (Alan) Wei zhenglun.wei at gmail.com
Mon Nov 26 14:37:30 CST 2012


Dear Dr. Brown,
      Yes, it changes to KSPSetComputeInitialGuess.

thanks,
Alan
> Check again whether ex45.c contains DMSetInitialGuess.
>
>
> On Mon, Nov 26, 2012 at 5:44 AM, Alan <zhenglun.wei at gmail.com 
> <mailto:zhenglun.wei at gmail.com>> wrote:
>
>     Thanks Dr. Brown,
>         What I did are:
>     hg pull -u: under /petsc-dev
>     hg update
>     make all test
>
>     what else should I do? how can I check the PETSc version in my
>     computer?
>
>     thanks,
>     Alan
>>     On Mon, Nov 26, 2012 at 2:16 AM, Zhenglun (Alan) Wei
>>     <zhenglun.wei at gmail.com <mailto:zhenglun.wei at gmail.com>> wrote:
>>
>>         Dear folks,
>>             Here are some problems when I'm using the new PETSc and
>>         tried to run src/ksp/ksp/example/tutorial/ex45.c
>>         1, when I compile it, it says that 'DMSetInitialGuess' can
>>         not be found. So, I commented it out; however, this command
>>         still appears in
>>         http://www.mcs.anl.gov/petsc/petsc-current/src/ksp/ksp/examples/tutorials/ex45.c.html.
>>         Therefore, I wonder if my PETSc has not been updated correctly.
>>
>>
>>     You still don't have a current clone of petsc-dev. The HTML file
>>     is from the release version, in which that function was
>>     deprecated but still present. Look at the petsc-dev docs if
>>     that's what you're using.
>>
>>         2, in old version code, I implemented a post-processing code
>>         using:
>>           ierr = DMDAGetCoordinateDA(da, &cda);
>>           ierr = DMDAGetGhostedCoordinates(da, &gc);
>>           ierr = DMDAVecGetArray(cda, gc, &coors);
>>             in order to get the locations of 'coors' stored in 'DM
>>         da'. However, the current version seems does not have
>>         'DMDAGetCoordinateDA' and 'DMDAGetGhostedCoordinates'. Then,
>>         what should I do to get the 'coors'? Specifically, what
>>         should I do to get 'Vec gc'.
>>
>>
>>     These routines were promoted.
>>
>>     http://www.mcs.anl.gov/petsc/documentation/changes/dev.html
>>
>>
>>         thanks,
>>         Alan
>>
>>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20121126/c9eb1d99/attachment.html>


More information about the petsc-users mailing list