Dear Gabriel, There is a function to do this operation https://dealii.org/9.0.0/doxygen/deal.II/classBlockMatrixBase.html#a9ee9987ece33a052d2b7a44034a8a01a <https://dealii.org/9.0.0/doxygen/deal.II/classBlockMatrixBase.html#a9ee9987ece33a052d2b7a44034a8a01a> So you should write this as system_matrix.add(1.0, system_matrix_iterative);
I hope this helps. Best, Jean-Paul > On 06 May 2019, at 13:55, [email protected] wrote: > > Hey everyone, > > I got a problem regarding TrilnosWrappers::BlockSparseMatrix. > > In my program I have a TrilnosWrappers::BlockSparseMatrix system_matrix which > consists of two > parts, one permanent part, which is computed at the beginning at the > programm, not every iteration, to save time (called system_matrix_permanent) > and one iterative part, which is computed in every iteration (called > system_matrix_iterative). Hence system_matrix = system_matrix_permanent + > system_matrix_iterative > > Thus, after assembling those matrices, I want to call something like > > system_matrix.add(system_matrix_permanent,system_matrix_permanent); > > But I always get the error message > > error: no matching function for call to > ‘dealii::TrilinosWrappers::BlockSparseMatrix::add(dealii::TrilinosWrappers::BlockSparseMatrix&)’ > system_matrix.add(system_matrix_iterative); > > > Is there any function which adds up TrilinosWrappers::BlockSparseMatrix > objects? > > Thanks a lot and best regards > > Gabriel > > -- > The deal.II project is located at http://www.dealii.org/ > <http://www.dealii.org/> > For mailing list/forum options, see > https://groups.google.com/d/forum/dealii?hl=en > <https://groups.google.com/d/forum/dealii?hl=en> > --- > You received this message because you are subscribed to the Google Groups > "deal.II User Group" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
