[petsc-users] TS prestep function
Hong Zhang
hongzhang at anl.gov
Wed Mar 30 13:40:11 CDT 2016
You might want to call TSGetApplicatonContext() in your prestep function.
Hong
> On Mar 30, 2016, at 12:54 PM, Christian Peco Regales, Ph.D. <cp226 at duke.edu> wrote:
>
> I have started to use the TS environment to solve a diffusion problem with XFEM in which, at the beginning of every step, a number of values have to be recomputed in order to properly fill the Jacobian (e.g. change some quadrature weights). However, I see that the the function is expected with the format func(TS ts), with no possibility of getting a user context to perform the computations I need.
>
> Is there a way to get around that? Thanks!
>
> Christian
>
> _______________________________
> Christian Peco Regales, Ph.D.
> Postdoctoral Research Associate
> Civil and Environmental Engineering
> Pratt School of Engineering
> Duke University
> 2407 CIEMAS (office)
> Durham, NC 27708, USA
> email: christian.peco at duke.edu <mailto:christian.peco at duke.edu>
> web: http://www.christianpeco.com <http://christianpeco.com/>
> _______________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160330/983c00b5/attachment.html>
More information about the petsc-users
mailing list