Sample code for Prometheus
Barry Smith
bsmith at mcs.anl.gov
Thu Sep 13 21:45:43 CDT 2007
On Wed, 12 Sep 2007, Farshid Mossaiby wrote:
> Dear users / developers,
>
> Is there any sample code about Prometheus?
It can be used just like any preconditioner in PETSc
so does not need a particular example. You can also
use PCSetCoordinates() to provide the coordinates of the
grid points which Prometheus can use to generate
a better preconditioner.
>And is it
> just a preconditioner, or it can be used as a solver?
If you wish to use it "as a solver" that is, without a
Krylov method, you simply use -ksp_type richardson. It
is very unlikely this will do better in time then using it
with GMRES or Bi-CG-stab but it is trivial to experiment
to determine what is best for your problem.
Barry
> Or I am totally wrong?
>
> Regards,
> Farshid Mossaiby
>
>
>
> ____________________________________________________________________________________
> Yahoo! oneSearch: Finally, mobile search
> that gives answers, not web links.
> http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
>
>
More information about the petsc-users
mailing list