From: Matthias Maier Date: Tue, 20 Mar 2018 00:29:33 +0000 (-0500) Subject: Bugfix: Set a value to zero with correct number type X-Git-Tag: v9.0.0-rc1~307^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc893a8dcffd11171b0e887ce0520e4d64e69ef4;p=dealii.git 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 >’ and ‘int’) cell_matrix = 0; ~~~~~~~~~~~~^~~ --- diff --git a/source/non_matching/coupling.cc b/source/non_matching/coupling.cc index 2951c44e56..bd4ae01cc6 100644 --- a/source/non_matching/coupling.cc +++ b/source/non_matching/coupling.cc @@ -238,7 +238,7 @@ namespace NonMatching ocell->get_dof_indices(odofs); // Reset the matrices. - cell_matrix = 0; + cell_matrix = typename Matrix::value_type(); for (unsigned int i=0; i