Re: [petsc-users] DIVERGED_LINEAR_SOLVE in SNES

2019-09-26 Thread Smith, Barry F. via petsc-users
Li, It is possible, but as Hong said probably never appropriate. Especially if KSP has iterated for 10,000 iterations. If you want SNES to "try" the direction given by a failed solve you should use a much smaller maximum number of iterations for KSP. Anways, to do what you desire #

Re: [petsc-users] Clarification of INSERT_VALUES for vec with ghost nodes

2019-09-26 Thread Aulisa, Eugenio via petsc-users
Yes it worked. I get exactly the same vector as reported in the output file I will test it now with my problem and if I see anything strange I will let you know. Thank you so much Eugenio Eugenio Aulisa Department of Mathematics and Statistics, Texas Tech University Lubbock TX, 79409-1042 r

Re: [petsc-users] TS scheme with different DAs

2019-09-26 Thread Manuel Valera via petsc-users
Hi all, Just retouching in case my mail was lost, does my problem make enough sense? I could try to be clearer if you like. I tried using TSGetStages() in the middle of the RHS function but that didn't work. Maybe we can find a different approach for this ? Thanks, On Tue, Sep 24, 2019 at 12:58

Re: [petsc-users] Clarification of INSERT_VALUES for vec with ghost nodes

2019-09-26 Thread Zhang, Junchao via petsc-users
With VecGhostUpdateBegin(v, INSERT_VALUES, SCATTER_REVERSE), the owner will get updated by ghost values. So in your case 1, proc0 gets either value1 or value2 from proc1/2; in case 2; proc0 gets either value0 or value2 from proc1/2. In short, you could not achieve your goal with INSERT_VALUES. T

Re: [petsc-users] DIVERGED_LINEAR_SOLVE in SNES

2019-09-26 Thread Zhang, Hong via petsc-users
Li : You can use '-ksp_max_it 2' to change maximum iteration count. However, it does not make sense to continue after it fails at 1 iterations. You should figure out why linear solver diverges. Run your code with '-ksp_monitor' or '-ksp_monitor_true_residual'. Hong Dear developer, I am

[petsc-users] DIVERGED_LINEAR_SOLVE in SNES

2019-09-26 Thread Li Luo via petsc-users
Dear developer, I am using SNES for solving a nonlinear system. For some cases, SNES diverged -3 with "DIVERGED_LINEAR_SOLVE" when the linear solver reached its maximum iteration count (i.e -ksp_max_it 1). Is that possible to let SNES continue even though the linear solver reaches the maximum

Re: [petsc-users] Clarification of INSERT_VALUES for vec with ghost nodes

2019-09-26 Thread Aulisa, Eugenio via petsc-users
On Wed, Sep 25, 2019 at 9:11 AM Aulisa, Eugenio via petsc-users mailto:petsc-users@mcs.anl.gov>> wrote: Hi, I have a vector with ghost nodes where each process may or may not change the value of a specific ghost node (using INSERT_VALUES). At the end I would like for each process, that see