From: guido Date: Tue, 16 Apr 2002 14:24:09 +0000 (+0000) Subject: Exception for missing prolongation matrices X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebd11be4de77df1aee13bc84c140962c4c17140d;p=dealii-svn.git Exception for missing prolongation matrices git-svn-id: https://svn.dealii.org/trunk@5668 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/multigrid/mg_transfer.h b/deal.II/deal.II/include/multigrid/mg_transfer.h index 527d04b8a7..f76a4e8d65 100644 --- a/deal.II/deal.II/include/multigrid/mg_transfer.h +++ b/deal.II/deal.II/include/multigrid/mg_transfer.h @@ -136,6 +136,12 @@ class MGTransferPrebuilt : public Subscriptor // MGTransferBase > OutVector &dst, const MGLevelObject > &src) const; + /** + * Finite element does not + * provide prolongation matrices. + */ + DeclException0(ExcNoProlongation); + private: /** diff --git a/deal.II/deal.II/source/multigrid/multigrid.cc b/deal.II/deal.II/source/multigrid/multigrid.cc index cc65bc9e1c..f7781ad870 100644 --- a/deal.II/deal.II/source/multigrid/multigrid.cc +++ b/deal.II/deal.II/source/multigrid/multigrid.cc @@ -83,7 +83,9 @@ void MGTransferPrebuilt::build_matrices (const MGDoFHandler &mg_dof) // this child const FullMatrix &prolongation = mg_dof.get_fe().prolongate(child); - + + Assert (prolongation.n() != 0, ExcNoProlongation()); + cell->child(child)->get_mg_dof_indices (dof_indices_child); // now tag the entries in the