--- /dev/null
+//---------------------------- hp_line_dof_identities_q.cc ---------------------------
+// $Id: hp_line_dof_identities_q.cc 12464 2006-02-23 01:13:17Z wolf $
+// Version: $Name$
+//
+// Copyright (C) 2005, 2006 by the deal.II authors
+//
+// This file is subject to QPL and may not be distributed
+// without copyright and license information. Please refer
+// to the file deal.II/doc/license.html for the text and
+// further information on this license.
+//
+//---------------------------- hp_line_dof_identities_q.cc ---------------------------
+
+
+// check FE_Q::hp_line_dof_identities
+
+
+#include <base/logstream.h>
+#include <fe/fe_collection.h>
+#include <fe/fe_q.h>
+
+#include <fstream>
+
+
+template <int dim>
+void test ()
+{
+ hp::FECollection<dim> fe_collection;
+ for (unsigned int i=1; i<8-dim; ++i)
+ fe_collection.push_back (FE_Q<dim>(i));
+
+ for (unsigned int i=0; i<fe_collection.size(); ++i)
+ for (unsigned int j=0; j<fe_collection.size(); ++j)
+ {
+ const std::vector<std::pair<unsigned int, unsigned int> >
+ identities = fe_collection[i].hp_line_dof_identities (fe_collection[j]);
+
+ deallog << "Identities for "
+ << fe_collection[i].get_name() << " and "
+ << fe_collection[j].get_name() << ": "
+ << identities.size()
+ << std::endl;
+
+ for (unsigned int k=0; k<identities.size(); ++k)
+ {
+ Assert (identities[k].first < fe_collection[i].dofs_per_line,
+ ExcInternalError());
+ Assert (identities[k].second < fe_collection[j].dofs_per_line,
+ ExcInternalError());
+
+ deallog << identities[k].first << ' '
+ << identities[k].second
+ << std::endl;
+ }
+ }
+}
+
+
+
+int main ()
+{
+ std::ofstream logfile("hp_line_dof_identities_q/output");
+ logfile.precision(2);
+
+ deallog.attach(logfile);
+ deallog.depth_console(0);
+ deallog.threshold_double(1.e-10);
+
+ test<1> ();
+ test<2> ();
+ test<3> ();
+
+ deallog << "OK" << std::endl;
+}
--- /dev/null
+
+DEAL::Identities for FE_Q<1>(1) and FE_Q<1>(1): 0
+DEAL::Identities for FE_Q<1>(1) and FE_Q<1>(2): 0
+DEAL::Identities for FE_Q<1>(1) and FE_Q<1>(3): 0
+DEAL::Identities for FE_Q<1>(1) and FE_Q<1>(4): 0
+DEAL::Identities for FE_Q<1>(1) and FE_Q<1>(5): 0
+DEAL::Identities for FE_Q<1>(1) and FE_Q<1>(6): 0
+DEAL::Identities for FE_Q<1>(2) and FE_Q<1>(1): 0
+DEAL::Identities for FE_Q<1>(2) and FE_Q<1>(2): 1
+DEAL::0 0
+DEAL::Identities for FE_Q<1>(2) and FE_Q<1>(3): 0
+DEAL::Identities for FE_Q<1>(2) and FE_Q<1>(4): 1
+DEAL::0 1
+DEAL::Identities for FE_Q<1>(2) and FE_Q<1>(5): 0
+DEAL::Identities for FE_Q<1>(2) and FE_Q<1>(6): 1
+DEAL::0 2
+DEAL::Identities for FE_Q<1>(3) and FE_Q<1>(1): 0
+DEAL::Identities for FE_Q<1>(3) and FE_Q<1>(2): 0
+DEAL::Identities for FE_Q<1>(3) and FE_Q<1>(3): 2
+DEAL::0 0
+DEAL::1 1
+DEAL::Identities for FE_Q<1>(3) and FE_Q<1>(4): 0
+DEAL::Identities for FE_Q<1>(3) and FE_Q<1>(5): 0
+DEAL::Identities for FE_Q<1>(3) and FE_Q<1>(6): 2
+DEAL::0 1
+DEAL::1 3
+DEAL::Identities for FE_Q<1>(4) and FE_Q<1>(1): 0
+DEAL::Identities for FE_Q<1>(4) and FE_Q<1>(2): 1
+DEAL::1 0
+DEAL::Identities for FE_Q<1>(4) and FE_Q<1>(3): 0
+DEAL::Identities for FE_Q<1>(4) and FE_Q<1>(4): 3
+DEAL::0 0
+DEAL::1 1
+DEAL::2 2
+DEAL::Identities for FE_Q<1>(4) and FE_Q<1>(5): 0
+DEAL::Identities for FE_Q<1>(4) and FE_Q<1>(6): 1
+DEAL::1 2
+DEAL::Identities for FE_Q<1>(5) and FE_Q<1>(1): 0
+DEAL::Identities for FE_Q<1>(5) and FE_Q<1>(2): 0
+DEAL::Identities for FE_Q<1>(5) and FE_Q<1>(3): 0
+DEAL::Identities for FE_Q<1>(5) and FE_Q<1>(4): 0
+DEAL::Identities for FE_Q<1>(5) and FE_Q<1>(5): 4
+DEAL::0 0
+DEAL::1 1
+DEAL::2 2
+DEAL::3 3
+DEAL::Identities for FE_Q<1>(5) and FE_Q<1>(6): 0
+DEAL::Identities for FE_Q<1>(6) and FE_Q<1>(1): 0
+DEAL::Identities for FE_Q<1>(6) and FE_Q<1>(2): 1
+DEAL::2 0
+DEAL::Identities for FE_Q<1>(6) and FE_Q<1>(3): 2
+DEAL::1 0
+DEAL::3 1
+DEAL::Identities for FE_Q<1>(6) and FE_Q<1>(4): 1
+DEAL::2 1
+DEAL::Identities for FE_Q<1>(6) and FE_Q<1>(5): 0
+DEAL::Identities for FE_Q<1>(6) and FE_Q<1>(6): 5
+DEAL::0 0
+DEAL::1 1
+DEAL::2 2
+DEAL::3 3
+DEAL::4 4
+DEAL::Identities for FE_Q<2>(1) and FE_Q<2>(1): 0
+DEAL::Identities for FE_Q<2>(1) and FE_Q<2>(2): 0
+DEAL::Identities for FE_Q<2>(1) and FE_Q<2>(3): 0
+DEAL::Identities for FE_Q<2>(1) and FE_Q<2>(4): 0
+DEAL::Identities for FE_Q<2>(1) and FE_Q<2>(5): 0
+DEAL::Identities for FE_Q<2>(2) and FE_Q<2>(1): 0
+DEAL::Identities for FE_Q<2>(2) and FE_Q<2>(2): 1
+DEAL::0 0
+DEAL::Identities for FE_Q<2>(2) and FE_Q<2>(3): 0
+DEAL::Identities for FE_Q<2>(2) and FE_Q<2>(4): 1
+DEAL::0 1
+DEAL::Identities for FE_Q<2>(2) and FE_Q<2>(5): 0
+DEAL::Identities for FE_Q<2>(3) and FE_Q<2>(1): 0
+DEAL::Identities for FE_Q<2>(3) and FE_Q<2>(2): 0
+DEAL::Identities for FE_Q<2>(3) and FE_Q<2>(3): 2
+DEAL::0 0
+DEAL::1 1
+DEAL::Identities for FE_Q<2>(3) and FE_Q<2>(4): 0
+DEAL::Identities for FE_Q<2>(3) and FE_Q<2>(5): 0
+DEAL::Identities for FE_Q<2>(4) and FE_Q<2>(1): 0
+DEAL::Identities for FE_Q<2>(4) and FE_Q<2>(2): 1
+DEAL::1 0
+DEAL::Identities for FE_Q<2>(4) and FE_Q<2>(3): 0
+DEAL::Identities for FE_Q<2>(4) and FE_Q<2>(4): 3
+DEAL::0 0
+DEAL::1 1
+DEAL::2 2
+DEAL::Identities for FE_Q<2>(4) and FE_Q<2>(5): 0
+DEAL::Identities for FE_Q<2>(5) and FE_Q<2>(1): 0
+DEAL::Identities for FE_Q<2>(5) and FE_Q<2>(2): 0
+DEAL::Identities for FE_Q<2>(5) and FE_Q<2>(3): 0
+DEAL::Identities for FE_Q<2>(5) and FE_Q<2>(4): 0
+DEAL::Identities for FE_Q<2>(5) and FE_Q<2>(5): 4
+DEAL::0 0
+DEAL::1 1
+DEAL::2 2
+DEAL::3 3
+DEAL::Identities for FE_Q<3>(1) and FE_Q<3>(1): 0
+DEAL::Identities for FE_Q<3>(1) and FE_Q<3>(2): 0
+DEAL::Identities for FE_Q<3>(1) and FE_Q<3>(3): 0
+DEAL::Identities for FE_Q<3>(1) and FE_Q<3>(4): 0
+DEAL::Identities for FE_Q<3>(2) and FE_Q<3>(1): 0
+DEAL::Identities for FE_Q<3>(2) and FE_Q<3>(2): 1
+DEAL::0 0
+DEAL::Identities for FE_Q<3>(2) and FE_Q<3>(3): 0
+DEAL::Identities for FE_Q<3>(2) and FE_Q<3>(4): 1
+DEAL::0 1
+DEAL::Identities for FE_Q<3>(3) and FE_Q<3>(1): 0
+DEAL::Identities for FE_Q<3>(3) and FE_Q<3>(2): 0
+DEAL::Identities for FE_Q<3>(3) and FE_Q<3>(3): 2
+DEAL::0 0
+DEAL::1 1
+DEAL::Identities for FE_Q<3>(3) and FE_Q<3>(4): 0
+DEAL::Identities for FE_Q<3>(4) and FE_Q<3>(1): 0
+DEAL::Identities for FE_Q<3>(4) and FE_Q<3>(2): 1
+DEAL::1 0
+DEAL::Identities for FE_Q<3>(4) and FE_Q<3>(3): 0
+DEAL::Identities for FE_Q<3>(4) and FE_Q<3>(4): 3
+DEAL::0 0
+DEAL::1 1
+DEAL::2 2
+DEAL::OK