From dc893a8dcffd11171b0e887ce0520e4d64e69ef4 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Mon, 19 Mar 2018 19:29:33 -0500 Subject: [PATCH] Bugfix: Set a value to zero with correct number type MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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; ~~~~~~~~~~~~^~~ --- source/non_matching/coupling.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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