From: David Wells Date: Sat, 18 Aug 2018 18:52:04 +0000 (-0400) Subject: Fix some duplicated branch warnings. X-Git-Tag: v9.1.0-rc1~807^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7079%2Fhead;p=dealii.git Fix some duplicated branch warnings. --- diff --git a/include/deal.II/base/symmetric_tensor.templates.h b/include/deal.II/base/symmetric_tensor.templates.h index 0ae1530fe5..490eddff1c 100644 --- a/include/deal.II/base/symmetric_tensor.templates.h +++ b/include/deal.II/base/symmetric_tensor.templates.h @@ -882,7 +882,7 @@ eigenvectors(const SymmetricTensor<2, dim, Number> &T, // Adol-C taped if (method == SymmetricTensorEigenvectorMethod::ql_implicit_shifts) - sf = (dim == 2 ? 2e11 : 2e11); + sf = 2e11; else if (method == SymmetricTensorEigenvectorMethod::jacobi) sf = (dim == 2 ? 1e6 : 1e9); else diff --git a/include/deal.II/fe/fe_tools.h b/include/deal.II/fe/fe_tools.h index 4a439ea93f..b5082f69bd 100644 --- a/include/deal.II/fe/fe_tools.h +++ b/include/deal.II/fe/fe_tools.h @@ -1406,13 +1406,11 @@ namespace FETools * * @ingroup Exceptions */ - DeclException1(ExcHangingNodesNotAllowed, - int, - << "You are using continuous elements on a grid with " - << "hanging nodes but without providing hanging node " - << "constraints. Use the respective function with " - << "additional AffineConstraints argument(s), instead." - << (arg1 ? "" : "")); + DeclExceptionMsg(ExcHangingNodesNotAllowed, + "You are using continuous elements on a grid with " + "hanging nodes but without providing hanging node " + "constraints. Use the respective function with " + "additional AffineConstraints argument(s), instead."); /** * You need at least two grid levels. * diff --git a/include/deal.II/fe/fe_tools_interpolate.templates.h b/include/deal.II/fe/fe_tools_interpolate.templates.h index 715cc6ce69..82460f14bb 100644 --- a/include/deal.II/fe/fe_tools_interpolate.templates.h +++ b/include/deal.II/fe/fe_tools_interpolate.templates.h @@ -178,7 +178,7 @@ namespace FETools ++face) Assert(cell1->at_boundary(face) || cell1->neighbor(face)->level() == cell1->level(), - ExcHangingNodesNotAllowed(0)); + ExcHangingNodesNotAllowed()); const unsigned int dofs_per_cell1 = cell1->get_fe().dofs_per_cell; @@ -336,7 +336,7 @@ namespace FETools ++face) Assert(cell->at_boundary(face) || cell->neighbor(face)->level() == cell->level(), - ExcHangingNodesNotAllowed(0)); + ExcHangingNodesNotAllowed()); const unsigned int dofs_per_cell1 = cell->get_fe().dofs_per_cell; @@ -656,7 +656,7 @@ namespace FETools ++face) Assert(cell->at_boundary(face) || cell->neighbor(face)->level() == cell->level(), - ExcHangingNodesNotAllowed(0)); + ExcHangingNodesNotAllowed()); cell->get_dof_values(u1, u1_local); difference_matrix.vmult(u1_diff_local, u1_local);