This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

How to form a block matrix of type petScMatrix !

+1 vote

Hello

To point you Fenics users right on the problem,
I want to solve nonlinear Navier-Stokes equations using Newton Rapshon and gmres solver.

I have my FE matrices already assembled in Petsc type for the linear terms .

Now the question is : how can I gather these matrices to form a saddle point problem where the large matrix still of the same type (Petsc)?

Any help would be appreciated.

asked Feb 8, 2017 by Amexsa FEniCS Novice (350 points)

1 Answer

+1 vote

Hi,

consider the CBC.block app which can be used on top of dolfin. I think this package contains some interesting features, serving your purpose.

answered Feb 8, 2017 by jmmal FEniCS User (5,890 points)
...