Re: [petsc-users] Implementing TS routine

2019-07-09 Thread Manuel Valera via petsc-users
Ok thanks everyone for your replies, Matt thanks for suggesting TStep, it solved my problem for reusing the TS objects. The TS routine are working as intended, and i was able to implement the TS for the velocities as well, i dropped the use of the natural vector and i am using just the DM global

Re: [petsc-users] Implementing TS routine

2019-07-09 Thread Manuel Valera via petsc-users
On Tue, Jul 9, 2019 at 11:27 AM Smith, Barry F. wrote: > > > > On Jul 8, 2019, at 6:53 PM, Manuel Valera via petsc-users < > petsc-users@mcs.anl.gov> wrote: > > > > Hi Zhang, > > > > Thanks to your help i have implemented the TS routine for my temperature > DMDA array, and it works correctly

Re: [petsc-users] Implementing TS routine

2019-07-09 Thread Smith, Barry F. via petsc-users
> On Jul 8, 2019, at 6:53 PM, Manuel Valera via petsc-users > wrote: > > Hi Zhang, > > Thanks to your help i have implemented the TS routine for my temperature DMDA > array, and it works correctly including in MPI. > > The breakthrough for me was realizing that TS steps and max time steps

Re: [petsc-users] Implementing TS routine

2019-07-08 Thread Smith, Barry F. via petsc-users
> On Jul 8, 2019, at 6:53 PM, Manuel Valera via petsc-users > wrote: > > Hi Zhang, > > Thanks to your help i have implemented the TS routine for my temperature DMDA > array, and it works correctly including in MPI. > > The breakthrough for me was realizing that TS steps and max time steps

Re: [petsc-users] Implementing TS routine

2019-07-08 Thread Manuel Valera via petsc-users
Hi Zhang, Thanks to your help i have implemented the TS routine for my temperature DMDA array, and it works correctly including in MPI. The breakthrough for me was realizing that TS steps and max time steps are all set up once, and used/advanced all at once when invoked with TSSolution. So what

Re: [petsc-users] Implementing TS routine

2019-07-04 Thread Zhang, Hong via petsc-users
On Jul 3, 2019, at 3:10 PM, Manuel Valera mailto:mvaler...@sdsu.edu>> wrote: Thanks Zhang for your answer, I ended up getting a compiling and running TS routine... that does not give me the answers, and i am not sure what i am doing wrong, My TS code so far looks like this:

Re: [petsc-users] Implementing TS routine

2019-06-26 Thread Zhang, Hong via petsc-users
On Jun 26, 2019, at 4:17 PM, Manuel Valera via petsc-users mailto:petsc-users@mcs.anl.gov>> wrote: Hi PETSc, I am trying to implement the Time stepping routines in my model, i have a working runge-kutta time scheme that goes to the following steps: * Interpolate u,v,w to the time

[petsc-users] Implementing TS routine

2019-06-26 Thread Manuel Valera via petsc-users
Hi PETSc, I am trying to implement the Time stepping routines in my model, i have a working runge-kutta time scheme that goes to the following steps: - Interpolate u,v,w to the time advancing variable position. - Calculate nonlinear coefficients and advect velocities with a