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
Dear Gabriel,
 
There is a function to do this operation
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 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/
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.

Reply via email to