{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaParallel/PETSc.jl/issues/60","repository_url":"https://api.github.com/repos/JuliaParallel/PETSc.jl","labels_url":"https://api.github.com/repos/JuliaParallel/PETSc.jl/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/JuliaParallel/PETSc.jl/issues/60/comments","events_url":"https://api.github.com/repos/JuliaParallel/PETSc.jl/issues/60/events","html_url":"https://github.com/JuliaParallel/PETSc.jl/issues/60","id":133756042,"number":60,"title":"TS?","user":{"login":"mauro3","id":4098145,"avatar_url":"https://avatars.githubusercontent.com/u/4098145?v=3","gravatar_id":"","url":"https://api.github.com/users/mauro3","html_url":"https://github.com/mauro3","followers_url":"https://api.github.com/users/mauro3/followers","following_url":"https://api.github.com/users/mauro3/following{/other_user}","gists_url":"https://api.github.com/users/mauro3/gists{/gist_id}","starred_url":"https://api.github.com/users/mauro3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauro3/subscriptions","organizations_url":"https://api.github.com/users/mauro3/orgs","repos_url":"https://api.github.com/users/mauro3/repos","events_url":"https://api.github.com/users/mauro3/events{/privacy}","received_events_url":"https://api.github.com/users/mauro3/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-02-15T16:25:33Z","updated_at":"2016-09-24T01:13:58Z","closed_at":"2016-05-23T14:16:12Z","body":"I might do some work on ODE/DAE time steppers coming spring or summer.  I was wondering whether it is planned to wrap TS and, if so, any idea when?  (BTW, thanks for all the good work so far!)"},"comment":{"url":"https://api.github.com/repos/JuliaParallel/PETSc.jl/issues/comments/249335790","html_url":"https://github.com/JuliaParallel/PETSc.jl/issues/60#issuecomment-249335790","issue_url":"https://api.github.com/repos/JuliaParallel/PETSc.jl/issues/60","id":249335790,"user":{"login":"JaredCrean2","id":10292902,"avatar_url":"https://avatars.githubusercontent.com/u/10292902?v=3","gravatar_id":"","url":"https://api.github.com/users/JaredCrean2","html_url":"https://github.com/JaredCrean2","followers_url":"https://api.github.com/users/JaredCrean2/followers","following_url":"https://api.github.com/users/JaredCrean2/following{/other_user}","gists_url":"https://api.github.com/users/JaredCrean2/gists{/gist_id}","starred_url":"https://api.github.com/users/JaredCrean2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JaredCrean2/subscriptions","organizations_url":"https://api.github.com/users/JaredCrean2/orgs","repos_url":"https://api.github.com/users/JaredCrean2/repos","events_url":"https://api.github.com/users/JaredCrean2/events{/privacy}","received_events_url":"https://api.github.com/users/JaredCrean2/received_events","type":"User","site_admin":false},"created_at":"2016-09-24T01:13:58Z","updated_at":"2016-09-24T01:13:58Z","body":"That's right.  The interface is all in [ts.jl](https://github.com/JuliaParallel/PETSc.jl/blob/master/src/ts.jl).  You have to cast your equation in a particular form described in the TS chapter of the Petsc manual, but the main idea is you have to supply Petsc with functions to evaluate the right hand side and left hand side functions, and possibly their jacobians (depending on what method you use).  This is done with the functions `set_rhs_function`, `set_rhs_jac`, `set_lhs_function`, `set_lhs_jac`.  You will need to create a TS object, set the time-stepping parameters (using `set_times`), and call `solve!` to execute the time-stepping.  The tests contain examples of solving the 1D heat equation using forward and backward Euler [here](https://github.com/JuliaParallel/PETSc.jl/blob/master/test/ts.jl).  You can use the Petsc options database to set the type of problem (linear of nonlinear) and method (forward Euler, backward Euler, etc), or you can pass them into the TS constructor."}}
{"actor":{"display_login":"JaredCrean2"}}