[petsc-users] Change SNES/TS setting from inside context
Matthew Knepley
knepley at gmail.com
Thu Oct 27 08:46:52 CDT 2011
On Thu, Oct 27, 2011 at 12:44 PM, behzad baghapour <
behzad.baghapour at gmail.com> wrote:
> Dear All,
>
> 1- Is there any way to change the setting of SNES within its iteration
> process? ( for example, changing PC type or fill level due to some reasons )
>
>
Yes,
SNESGetKSP()
KSPGetPC()
PC***()
I would probably put this code in a SNES monitor.
Matt
2- page 120 of PETSc manual (TS): "For location-dependent
> pseudo-timestepping, the interface function has not yet been created."
> Is there any way to control time-step locally? (This is due to variable
> time updating usually needed in PDE solution)
>
> Thanks a lot,
> B. B.
>
> --
> ==================================
> Behzad Baghapour
> Ph.D. Candidate, Mechecanical Engineering
> University of Tehran, Tehran, Iran
> https://sites.google.com/site/behzadbaghapour
> Fax: 0098-21-88020741
> ==================================
>
>
--
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/20111027/952e8ab4/attachment.htm>
More information about the petsc-users
mailing list