<div class="gmail_quote">On Tue, Mar 15, 2011 at 14:21, Zhang, Yifan <span dir="ltr"><<a href="mailto:yifan_zhang@brown.edu">yifan_zhang@brown.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div id=":10">I am trying to preconditioning spectral method with 2nd order finite difference.<br></div></blockquote><div><br></div><div>You might be interested in <a href="https://github.com/jedbrown/spectral-petsc">https://github.com/jedbrown/spectral-petsc</a> which does this for Chebyshev spectral methods where differentiation is implemented using FFTW. There are examples for a scalar elliptic problem and 3D Stokes. It may need updates to work with petsc-3.1 or petsc-dev.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div id=":10">So just writing to ask if anyone got a good Petsc examples of <br>using PCShell in fortran other than ex15.F .</div>
</blockquote></div><br><div>There is src/snes/examples/tutorials/ex33f.F, but that example can't be built because the common block definition is missing.</div>