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

Jed Brown jedbrown at mcs.anl.gov
Sun Nov 25 19:20:38 CST 2012


On Mon, Nov 26, 2012 at 2:16 AM, Zhenglun (Alan) Wei <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<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/ac9877fd/attachment.html>


More information about the petsc-users mailing list