Yes, but I have to call constraints.distribute_local_to_global (...)
also when building the new linear system. But I observed that there is also
a
constraints.distribute_local_to_global () function which writes only into
the global matrix.
I also need the system matrix A for a second purpose, namely
to compute a matrix multiplication:
res = A^{-1} * B ,
where B is another matrix.
-To be more precise, I need the inverse of the 19x19 submatrix
corresponding to the unconstrained DoFs only -- not the inverse of the full system matrix..
I could not find a function which computes the inverse of a sparse matrix directly (without solving a linear system).
What I tried is,
LAPACKFullMatrix<double> new_matrix = my_system_matrix ,
thence calling the invert function.
But I am not sure if this is the right way to go.
-Also, after calling
constraints.distribute_local_to_global(),
does it make sense at all to compute an inverse matrix, given that some rows and columns were set to zero?
Thank you again!
Best
Simon