Re: [petsc-users] PCFieldSplit gives different results for direct and iterative solver

2019-03-19 Thread Mark Adams via petsc-users
> > > > -fieldsplit_velocity_ksp_type preonly -fieldsplit_velocity_pc_type gamg > -fieldsplit_pressure_ksp_type minres -fieldsplit_pressure_pc_type none > You should use cg for the ksp_type with gamg if you are symmetric and gmres if not (you can try cg even if it is mildly asymmetric).

Re: [petsc-users] PCFieldSplit gives different results for direct and iterative solver

2019-03-19 Thread Y. Shidi via petsc-users
Hello Barry, Thank you for your reply. I reduced the tolerances and get desired solution. I am solving a multiphase incompressible n-s problems and currently we are using augmented lagrangina technique with uzawa iteration. Because the problems are getting larger, we are also looking for some

Re: [petsc-users] PCFieldSplit gives different results for direct and iterative solver

2019-03-16 Thread Smith, Barry F. via petsc-users
> On Mar 16, 2019, at 6:50 PM, Y. Shidi via petsc-users > wrote: > > Hello, > > I am trying to solve the incompressible n-s equations by > PCFieldSplit. > > The large matrix and vectors are formed by MatCreateNest() > and VecCreateNest(). > The system is solved directly by the following

[petsc-users] PCFieldSplit gives different results for direct and iterative solver

2019-03-16 Thread Y. Shidi via petsc-users
Hello, I am trying to solve the incompressible n-s equations by PCFieldSplit. The large matrix and vectors are formed by MatCreateNest() and VecCreateNest(). The system is solved directly by the following command: -ksp_type fgmres \ -pc_type fieldsplit \ -pc_fieldsplit_type schur \