[petsc-users] using custom matrix vector multiplication

2024-03-28 Thread Raju Mandhapati
Hello, I want to use my own custom matrix vector multiplication routine (which will use finite difference method to calculate it). I will supply a matrix but that matrix should be used only for preconditioner and not for matrix vector multiplication. Is there a way to do it? thanks Raju.

Re: [petsc-users] AMG for block matrices

2020-09-23 Thread Raju Mandhapati via petsc-users
uct_type vanka > > > For coupled Navier stokes you might also consider using PCFIELDSPLIT > and GAMG just for the pressure solve inside it. > > Barry > > > On Sep 22, 2020, at 9:24 PM, Raju Mandhapati via petsc-users < > petsc-users@mcs.anl.gov> wrote: > &

[petsc-users] AMG for block matrices

2020-09-22 Thread Raju Mandhapati via petsc-users
Hello, Does Petsc have an option to solve block matrices using AMG solver/preconditioner. My block matrix is coming from solving u,v,w,p (coupled Navier stokes) at each cell. thanks Raju.

Re: [petsc-users] using fieldsplit for matrix assembled using aij

2020-07-31 Thread Raju Mandhapati via petsc-users
re located? thanks, Raju. On Fri, Jul 31, 2020 at 7:21 PM Barry Smith wrote: > > -pc_fieldsplit_block_size 3 (you may not need this if the code sets the > block size to 3). > > -pc_fieldsplit_0_fields 0,1 > -pc_fieldsplit_1_fields 2 > > > > > > > On Ju

[petsc-users] using fieldsplit for matrix assembled using aij

2020-07-31 Thread Raju Mandhapati via petsc-users
Hello, I have a matrix assembled in interlaced format. I am not able to follow how to use fieldsplit. Is there a good example to show how to do this. My variable are in this format [ {u1,v1,p1}, {u2,v2,p2}, ,{un,vn,pn}], where n is the number of grid points and u,v,p are the velocity and