From 37f9483f08275886fcb7293eeb72987e2a5b94c3 Mon Sep 17 00:00:00 2001 From: hartmann Date: Thu, 13 Jun 2002 15:38:41 +0000 Subject: [PATCH] Clarify output of ExcHangingNodesNotAllowed. git-svn-id: https://svn.dealii.org/trunk@6108 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/fe/fe_tools.h | 6 +++++- deal.II/deal.II/source/fe/fe_tools.cc | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/deal.II/deal.II/include/fe/fe_tools.h b/deal.II/deal.II/include/fe/fe_tools.h index 94a6a8c14e..c1be69fad0 100644 --- a/deal.II/deal.II/include/fe/fe_tools.h +++ b/deal.II/deal.II/include/fe/fe_tools.h @@ -433,7 +433,11 @@ class FETools /** * Exception */ - DeclException0 (ExcHangingNodesNotAllowed); + DeclException1 (ExcHangingNodesNotAllowed, + int, + << "You are using continuous elements on a grid with hanging " + << "nodes without providing hanging node constraints. Use this" + << "function with additional ConstraintMatrix argument, instead."); /** * Exception diff --git a/deal.II/deal.II/source/fe/fe_tools.cc b/deal.II/deal.II/source/fe/fe_tools.cc index 0dc33b60e4..5ad56f1cdb 100644 --- a/deal.II/deal.II/source/fe/fe_tools.cc +++ b/deal.II/deal.II/source/fe/fe_tools.cc @@ -184,7 +184,7 @@ void FETools::interpolate(const DoFHandler &dof1, for (unsigned int face=0; face::faces_per_cell; ++face) Assert (cell1->at_boundary(face) || cell1->neighbor(face)->level() == cell1->level(), - ExcHangingNodesNotAllowed()); + ExcHangingNodesNotAllowed(0)); cell1->get_dof_values(u1, u1_local); interpolation_matrix.vmult(u2_local, u1_local); @@ -249,7 +249,7 @@ void FETools::back_interpolate(const DoFHandler &dof1, for (unsigned int face=0; face::faces_per_cell; ++face) Assert (cell->at_boundary(face) || cell->neighbor(face)->level() == cell->level(), - ExcHangingNodesNotAllowed()); + ExcHangingNodesNotAllowed(0)); cell->get_dof_values(u1, u1_local); interpolation_matrix.vmult(u1_int_local, u1_local); @@ -337,7 +337,7 @@ void FETools::interpolation_difference(const DoFHandler &dof1, for (unsigned int face=0; face::faces_per_cell; ++face) Assert (cell->at_boundary(face) || cell->neighbor(face)->level() == cell->level(), - ExcHangingNodesNotAllowed()); + ExcHangingNodesNotAllowed(0)); cell->get_dof_values(u1, u1_local); difference_matrix.vmult(u1_diff_local, u1_local); -- 2.39.5