]> https://gitweb.dealii.org/ - dealii.git/commit
Bugfix: Set a value to zero with correct number type 6067/head
authorMatthias Maier <tamiko@43-1.org>
Tue, 20 Mar 2018 00:29:33 +0000 (19:29 -0500)
committerMatthias Maier <tamiko@43-1.org>
Tue, 20 Mar 2018 02:09:15 +0000 (21:09 -0500)
commitdc893a8dcffd11171b0e887ce0520e4d64e69ef4
tree54c2a72dab986a910418af780905c86fcb12489b
parent9b1413e380a07fe85347848418cc9e6c794ebc39
Bugfix: Set a value to zero with correct number type

Otherwise deal.II fails to build with complex-valued PETSc scalar:

.../source/non_matching/coupling.cc:241:29: error: ambiguous overload for ‘operator=’
(operand types are ‘dealii::FullMatrix<std::complex<double> >’ and ‘int’)

                 cell_matrix = 0;
                 ~~~~~~~~~~~~^~~
source/non_matching/coupling.cc

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.