Hey Jean-Paul
Thanks a lot, that's what I was looking for, and now it works finely.
Best
Gabriel
Gesendet: Montag, 06. Mai 2019 um 14:27 Uhr
Von: "Jean-Paul Pelteret" <jppelte...@gmail.com>
An: dealii@googlegroups.com
Betreff: Re: [deal.II] Adding TrilinosWrapper::BlockSparseMatrix
Von: "Jean-Paul Pelteret" <jppelte...@gmail.com>
An: dealii@googlegroups.com
Betreff: Re: [deal.II] Adding TrilinosWrapper::BlockSparseMatrix
Dear Gabriel,
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 dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
There is a function to do this operation
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, gabriel.pet...@koeln.de wrote:Hey everyone,I got a problem regarding TrilnosWrappers::BlockSparseMatrix.In my program I have a TrilnosWrappers::BlockSparseMatrix system_matrix which consists of twoparts, 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_iterativeThus, after assembling those matrices, I want to call something likesystem_matrix.add(system_matrix_permanent,system_matrix_permanent);But I always get the error messageerror: 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 regardsGabriel--
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 dealii+unsubscr...@googlegroups.com.
For more options, visit 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 dealii+unsubscr...@googlegroups.com.
For more options, visit 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 dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.