#include <deal.II/fe/fe_dgp.h>
#include <deal.II/fe/fe_raviart_thomas.h>
#include <deal.II/fe/fe_system.h>
+#include <deal.II/base/quadrature_lib.h>
#include <deal.II/fe/fe_tools.h>
FE_DGQ<dim> q0(0);
FE_DGQ<dim> q1(1);
FE_DGQ<dim> q2(2);
- FE_DGQ<dim> q3(3);
- FE_DGQ<dim> q4(4);
+ FE_DGQArbitraryNodes<dim> q3(QIterated<1>(QTrapez<1>(),3));
+ FE_DGQArbitraryNodes<dim> q4(QIterated<1>(QTrapez<1>(),4));
FE_DGP<dim> p0(0);
FE_DGP<dim> p1(1);
Triangulation<dim> tria;
make_mesh (tria);
- FE_Q<dim> element(3);
+ FE_Q<dim> element(QIterated<1>(QTrapez<1>(),3));
DoFHandler<dim> dof(tria);
dof.distribute_dofs(element);
Triangulation<dim> tria;
make_mesh (tria);
- FE_Q<dim> element(3);
+ FE_Q<dim> element(QIterated<1>(QTrapez<1>(),3));
DoFHandler<dim> dof(tria);
dof.distribute_dofs(element);
const unsigned int spacedim = 1;
Triangulation<dim, spacedim> tria;
GridGenerator::hyper_cube(tria, 0, 1);
- FE_Q<dim, spacedim> fe(degree);
+ FE_Q<dim, spacedim> fe(QIterated<1>(QTrapez<1>(),degree));
DoFHandler<dim, spacedim> shift_dh(tria);
test(3);
return 0;
}
-
Triangulation<dim> tria;
make_mesh (tria);
- FE_Q<dim> element(3);
+ FE_Q<dim> element(QIterated<1>(QTrapez<1>(),3));
DoFHandler<dim> dof(tria);
dof.distribute_dofs(element);
Triangulation<dim> tria;
make_mesh (tria);
- FE_Q<dim> element(3);
+ FE_Q<dim> element(QIterated<1>(QTrapez<1>(),3));
DoFHandler<dim> dof(tria);
dof.distribute_dofs(element);
Triangulation<dim> tria;
make_mesh (tria);
- FE_Q<dim> element(3);
+ FE_Q<dim> element(QIterated<1>(QTrapez<1>(),3));
DoFHandler<dim> dof(tria);
dof.distribute_dofs(element);
Triangulation<dim> tria;
make_mesh (tria);
- FE_Q<dim> element(3);
+ FE_Q<dim> element(QIterated<1>(QTrapez<1>(),3));
DoFHandler<dim> dof(tria);
MappingQGeneric<dim> mapping(1);
dof.distribute_dofs(element);
make_mesh (tria);
hp::FECollection<dim> fe;
- fe.push_back (FE_Q<dim>(3));
- fe.push_back (FE_Q<dim>(4));
- fe.push_back (FE_Q<dim>(5));
+ fe.push_back (FE_Q<dim>(QIterated<1>(QTrapez<1>(),3)));
+ fe.push_back (FE_Q<dim>(QIterated<1>(QTrapez<1>(),4)));
+ fe.push_back (FE_Q<dim>(QIterated<1>(QTrapez<1>(),5)));
hp::DoFHandler<dim> dof_handler (tria);
make_mesh (tria);
hp::FECollection<dim> fe;
- fe.push_back (FE_Q<dim>(3));
- fe.push_back (FE_Q<dim>(4));
- fe.push_back (FE_Q<dim>(5));
+ fe.push_back (FE_Q<dim>(QIterated<1>(QTrapez<1>(),3)));
+ fe.push_back (FE_Q<dim>(QIterated<1>(QTrapez<1>(),4)));
+ fe.push_back (FE_Q<dim>(QIterated<1>(QTrapez<1>(),5)));
hp::MappingCollection<dim> mapping_1;
mapping_1.push_back(MappingQGeneric<dim>(1));
Triangulation<dim> tria;
make_mesh (tria);
- FE_Q<dim> element(3);
+ FE_Q<dim> element(QIterated<1>(QTrapez<1>(),3));
DoFHandler<dim> dof(tria);
dof.distribute_dofs(element);
Triangulation<dim> tria;
make_mesh (tria);
- FE_Q<dim> element(3);
+ FE_Q<dim> element(QIterated<1>(QTrapez<1>(),3));
DoFHandler<dim> dof(tria);
MappingQGeneric<dim> mapping(1);
dof.distribute_dofs(element);
Triangulation<dim,spacedim> tria;
make_mesh (tria);
- FE_Q<dim,spacedim> element(3);
+ FE_Q<dim,spacedim> element(QIterated<1>(QTrapez<1>(),3));
DoFHandler<dim,spacedim> dof(tria);
dof.distribute_dofs(element);
int main ()
{
std::ofstream logfile ("output");
- deallog << std::setprecision (4);
+ deallog << std::setprecision (2);
deallog << std::fixed;
deallog.attach(logfile);
// finite elements used for the
// projection
- const FE_Q<dim,spacedim> fe (degree);
+ const FE_Q<dim,spacedim> fe (QIterated<1>(QTrapez<1>(),degree));
const MappingQ<dim, spacedim> mapping(degree);
DoFHandler<dim,spacedim> dof_handler (triangulation);
return 0;
}
-
FE_Q<dim> q2(2);
plot_derivatives(m, q2, "Q2");
// plot_face_shape_functions(m, q2, "Q2");
- FE_Q<dim> q3(3);
+ FE_Q<dim> q3(QIterated<1>(QTrapez<1>(),3));
plot_derivatives(m, q3, "Q3");
// plot_face_shape_functions(m, q3, "Q3");
- FE_Q<dim> q4(4);
+ FE_Q<dim> q4(QIterated<1>(QTrapez<1>(),4));
plot_derivatives(m, q4, "Q4");
// plot_face_shape_functions(m, q4, "Q4");
// FE_Q<dim> q5(5);
FE_DGQ<dim> q2(2);
plot_derivatives(m, q2, "DGQ2");
// plot_face_shape_functions(m, q2, "DGQ2");
- FE_DGQ<dim> q3(3);
+ FE_DGQArbitraryNodes<dim> q3(QIterated<1>(QTrapez<1>(),3));
plot_derivatives(m, q3, "DGQ3");
// plot_face_shape_functions(m, q3, "DGQ3");
- FE_DGQ<dim> q4(4);
+ FE_DGQArbitraryNodes<dim> q4(QIterated<1>(QTrapez<1>(),4));
plot_derivatives(m, q4, "DGQ4");
// plot_face_shape_functions(m, q4, "DGQ4");
// FE_DGQ<dim> q5(5);
// FESystem test.
MappingQGeneric<2> m(1);
FESystem<2> q2_q3(FE_Q<2>(2), 1,
- FE_Q<2>(3), 1);
+ FE_Q<2>(QIterated<1>(QTrapez<1>(),3)), 1);
// plot_derivatives(m, q2_q3, "Q2_Q3");
return 0;
initlog();
deallog.threshold_double(1.e-10);
- CHECK_SYS3(FE_DGQ<2>(2),2,FE_DGQ<2>(2),2,FE_Q<2>(3),3,2);
+ CHECK_SYS3(FE_DGQ<2>(2),2,FE_DGQ<2>(2),2,FE_Q<2>(QIterated<1>(QTrapez<1>(),3)),3,2);
}
deallog.threshold_double(1.e-10);
CHECK_SYS3((FESystem<2>(FE_Q<2>(1),3)), 3,
- FE_DGQ<2>(3), 1,
+ FE_DGQArbitraryNodes<2>(QIterated<1>(QTrapez<1>(),3)), 1,
FE_Q<2>(1), 3,
2);
}
initlog();
deallog.threshold_double(1.e-10);
- CHECK_SYS3(FE_DGQ<2>(3), 1,
- FESystem<2>(FE_DGQ<2>(3),3), 1,
+ CHECK_SYS3(FE_DGQArbitraryNodes<2>(QIterated<1>(QTrapez<1>(),3)), 1,
+ FESystem<2>(FE_DGQArbitraryNodes<2>(QIterated<1>(QTrapez<1>(),3)),3), 1,
FESystem<2>(FE_Q<2>(2),3,
FE_DGQ<2>(0),1),2,
2);
deallog.threshold_double(1.e-10);
CHECK_SYS3(FE_Nedelec<2>(0), 1,
- FESystem<2>(FE_DGQ<2>(3),3), 1,
+ FESystem<2>(FE_DGQArbitraryNodes<2>(QIterated<1>(QTrapez<1>(),3)),3), 1,
FESystem<2>(FE_Q<2>(2),3,
FE_Nedelec<2>(0),2),2,
2);
initlog();
deallog.threshold_double(1.e-10);
- CHECK_SYS2 (FE_DGQ<2>(3), 1,
+ CHECK_SYS2 (FE_DGQArbitraryNodes<2>(QIterated<1>(QTrapez<1>(),3)), 1,
FE_Nedelec<2>(1), 2,
2);
}
initlog();
deallog.threshold_double(1.e-10);
- CHECK_SYS3(FE_DGQ<2>(2),2,FE_DGQ<2>(2),2,FE_Q<2>(3),3,2);
+ CHECK_SYS3(FE_DGQ<2>(2),2,FE_DGQ<2>(2),2,FE_Q<2>(QIterated<1>(QTrapez<1>(),3)),3,2);
}
deallog.threshold_double(1.e-10);
CHECK_SYS3((FESystem<2>(FE_Q<2>(1),3)), 3,
- FE_DGQ<2>(3), 1,
+ FE_DGQArbitraryNodes<2>(QIterated<1>(QTrapez<1>(),3)), 1,
FE_Q<2>(1), 3,
2);
}
initlog();
deallog.threshold_double(1.e-10);
- CHECK_SYS3(FE_DGQ<2>(3), 1,
- FESystem<2>(FE_DGQ<2>(3),3), 1,
+ CHECK_SYS3(FE_DGQArbitraryNodes<2>(QIterated<1>(QTrapez<1>(),3)), 1,
+ FESystem<2>(FE_DGQArbitraryNodes<2>(QIterated<1>(QTrapez<1>(),3)),3), 1,
FESystem<2>(FE_Q<2>(2),3,
FE_DGQ<2>(0),1),2,
2);
initlog();
deallog.threshold_double(1.e-10);
- CHECK_SYS2 (FE_DGQ<2>(3), 1,
+ CHECK_SYS2 (FE_DGQArbitraryNodes<2>(QIterated<1>(QTrapez<1>(),3)), 1,
FE_Nedelec<2>(0), 2,
2);
}
deallog.threshold_double(1.e-10);
CHECK_SYS3(FE_Nedelec<2>(0), 1,
- FESystem<2>(FE_DGQ<2>(3),3), 1,
+ FESystem<2>(FE_DGQArbitraryNodes<2>(QIterated<1>(QTrapez<1>(),3)),3), 1,
FESystem<2>(FE_Q<2>(2),3,
FE_Nedelec<2>(0),2),2,
2);
initlog();
deallog.threshold_double(1.e-10);
- CHECK_SYS2 (FE_DGQ<2>(3), 1,
+ CHECK_SYS2 (FE_DGQArbitraryNodes<2>(QIterated<1>(QTrapez<1>(),3)), 1,
FE_Nedelec<2>(1), 2,
2);
}
deallog.threshold_double(1.e-10);
CHECK_SYS3(FE_Nedelec<2>(1), 1,
- FESystem<2>(FE_DGQ<2>(3),3), 1,
+ FESystem<2>(FE_DGQArbitraryNodes<2>(QIterated<1>(QTrapez<1>(),3)),3), 1,
FESystem<2>(FE_Q<2>(2),3,
FE_Nedelec<2>(1),2),2,
2);
initlog();
deallog.threshold_double(1.e-10);
- CHECK_SYS3(FE_DGQ<2>(2),2,FE_DGQ<2>(2),2,FE_Q<2>(3),3,2);
+ CHECK_SYS3(FE_DGQ<2>(2),2,FE_DGQ<2>(2),2,FE_Q<2>(QIterated<1>(QTrapez<1>(),3)),3,2);
}
deallog.threshold_double(1.e-10);
CHECK_SYS3((FESystem<2>(FE_Q<2>(1),3)), 3,
- FE_DGQ<2>(3), 1,
+ FE_DGQArbitraryNodes<2>(QIterated<1>(QTrapez<1>(),3)), 1,
FE_Q<2>(1), 3,
2);
}
initlog();
deallog.threshold_double(1.e-10);
- CHECK_SYS3(FE_DGQ<2>(3), 1,
- FESystem<2>(FE_DGQ<2>(3),3), 1,
- FESystem<2>(FE_Q<2>(2),3,
+ CHECK_SYS3(FE_DGQArbitraryNodes<2>(QIterated<1>(QTrapez<1>(),3)), 1,
+ FESystem<2>(FE_DGQArbitraryNodes<2>(QIterated<1>(QTrapez<1>(),3)),3), 1,
+ FESystem<2>(FE_Q<2>(QIterated<1>(QTrapez<1>(),2)),3,
FE_DGQ<2>(0),1),2,
2);
}
FESystem<dim> fe (FE_Q<dim>(1), 1,
FE_Q<dim>(2), 2,
- FE_DGQ<dim>(3), dim);
+ FE_DGQArbitraryNodes<dim>(QIterated<1>(QTrapez<1>(),3)), dim);
test(tr, fe);
}
FESystem<dim> fe (FE_Q<dim>(1), 1,
FE_Q<dim>(2), 2,
- FE_DGQ<dim>(3), dim);
+ FE_DGQArbitraryNodes<dim>(QIterated<1>(QTrapez<1>(),3)), dim);
test(tr, fe);
}
FESystem<dim> fe (FE_Q<dim>(1), 1,
FE_Q<dim>(2), 2,
- FE_DGQ<dim>(3), dim);
+ FE_DGQArbitraryNodes<dim>(QIterated<1>(QTrapez<1>(),3)), dim);
test(tr, fe);
}
FESystem<dim> fe (FE_Q<dim>(1), 1,
FE_Q<dim>(2), 2,
- FE_DGQ<dim>(3), dim);
+ FE_DGQArbitraryNodes<dim>(QIterated<1>(QTrapez<1>(),3)), dim);
test(tr, fe);
}
FESystem<dim> fe (FE_Q<dim>(1), 1,
FE_Q<dim>(2), 2,
- FE_DGQ<dim>(3), dim);
+ FE_DGQArbitraryNodes<dim>(QIterated<1>(QTrapez<1>(),3)), dim);
test(tr, fe);
}
FESystem<dim> fe (FE_Q<dim>(1), 1,
FE_Q<dim>(2), 2,
- FE_DGQ<dim>(3), dim);
+ FE_DGQArbitraryNodes<dim>(QIterated<1>(QTrapez<1>(),3)), dim);
test(tr, fe);
}
const unsigned int order = 3;
- test(tr, FESystem<dim> (FE_Q<dim>(order), dim) );
+ test(tr, FESystem<dim> (FE_Q<dim>(QIterated<1>(QTrapez<1>(),order)), dim) );
}
char logname[] = "output";
+#include <deal.II/base/quadrature_lib.h>
#include "injection_common.h"
for (unsigned int i=0; i<4; ++i)
for (unsigned int j=i; j<4; ++j)
- do_check (FE_DGQ<dim>(i), FE_DGQ<dim>(j));
+ if (i > 0 && j > 0)
+ do_check (FE_DGQArbitraryNodes<dim>(QIterated<1>(QTrapez<1>(),i)),
+ FE_DGQArbitraryNodes<dim>(QIterated<1>(QTrapez<1>(),j)));
+ else if (j > 0)
+ do_check (FE_DGQ<dim>(0),
+ FE_DGQArbitraryNodes<dim>(QIterated<1>(QTrapez<1>(),j)));
+ else
+ do_check (FE_DGQ<dim>(0),
+ FE_DGQ<dim>(0));
}
char logname[] = "output";
+#include <deal.II/base/quadrature_lib.h>
#include "injection_common.h"
deallog << std::setprecision (10);
for (unsigned int i=1; i<4; ++i)
for (unsigned int j=i; j<4; ++j)
- do_check (FE_Q<dim>(i), FE_Q<dim>(j));
+ do_check (FE_Q<dim>(QIterated<1>(QTrapez<1>(),i)),
+ FE_Q<dim>(QIterated<1>(QTrapez<1>(),j)));
}
char logname[] = "output";
+#include <deal.II/base/quadrature_lib.h>
#include "injection_common.h"
+
template <int dim>
void test ()
{
for (unsigned int j=i; j<4; ++j)
{
deallog << "inj " << i << " " << j << ":" << std::endl;
- do_check (FE_Q_DG0<dim>(i), FE_Q_DG0<dim>(j));
+ do_check (FE_Q_DG0<dim>(QIterated<1>(QTrapez<1>(),i)),
+ FE_Q_DG0<dim>(QIterated<1>(QTrapez<1>(),j)));
}
}
char logname[] = "output";
+#include <deal.II/base/quadrature_lib.h>
#include "injection_common.h"
for (unsigned int i=1; i<4; ++i)
for (unsigned int j=i; j<4; ++j)
- do_check (FESystem<dim>(FE_Q<dim>(i), 1,
+ do_check (FESystem<dim>(FE_Q<dim>(QIterated<1>(QTrapez<1>(),i)), 1,
FE_DGQ<dim>(i-1), 1),
- FESystem<dim>(FE_Q<dim>(j), 1,
+ FESystem<dim>(FE_Q<dim>(QIterated<1>(QTrapez<1>(),j)), 1,
FE_DGQ<dim>(j-1), 1));
}
deallog.attach(logfile);
deallog.threshold_double(1.e-10);
-
- // Test the non-equidistant version as
- // well
- const QGaussLobatto<1> quad(5);
-
- // no constraints in 1d, but we had
- // the matrices precomputed up to
- // Q4 for 2d and Q2 for 3d
+ // no constraints in 1d, but we had the matrices precomputed up to Q4 for 2d
+ // and Q2 for 3d
for (unsigned int degree=1; degree<=4; ++degree)
- test<2>(FE_Q<2>(degree));
+ test<2>(FE_Q<2>(QIterated<1>(QTrapez<1>(),degree)));
- test<2>(FE_Q<2>(quad));
+ // test the standard version (non-equidistant) as well
+ test<2>(FE_Q<2>(4));
for (unsigned int degree=1; degree<=2; ++degree)
test<3>(FE_Q<3>(degree));
- test<3>(FE_Q<3>(quad));
+ test<3>(FE_Q<3>(4));
return 0;
}
-
-
-
deallog.attach(logfile);
deallog.threshold_double(1.e-10);
- // Test the non-equidistant version as
- // well
- const QGaussLobatto<1> quad(5);
-
- // we had the matrices precomputed
- // up to Q4 for 1d, Q3 for 2d and
- // Q2 for 3d
+ // we had the matrices precomputed up to Q4 for 1d, Q3 for 2d and Q2 for 3d
for (unsigned int degree=1; degree<=4; ++degree)
- test<1>(FE_Q<1>(degree));
+ test<1>(FE_Q<1>(QIterated<1>(QTrapez<1>(),degree)));
- test<1>(FE_Q<1>(quad));
+ // test the standard version (non-equidistant) as well
+ test<1>(FE_Q<1>(4));
for (unsigned int degree=1; degree<=3; ++degree)
- test<2>(FE_Q<2>(degree));
+ test<2>(FE_Q<2>(QIterated<1>(QTrapez<1>(),degree)));
- test<2>(FE_Q<2>(quad));
+ test<2>(FE_Q<2>(4));
for (unsigned int degree=1; degree<=2; ++degree)
test<3>(FE_Q<3>(degree));
- test<3>(FE_Q<3>(quad));
+ test<3>(FE_Q<3>(4));
return 0;
}
-
-
-
deallog.attach(logfile);
deallog.threshold_double(1.e-10);
- // Test the non-equidistant version as
- // well
- const QGaussLobatto<1> quad(5);
-
- // we had the matrices precomputed
- // up to Q4 for 1d, 2d and 3d
+ // we had the matrices precomputed up to Q4 for 1d, 2d and 3d
for (unsigned int degree=1; degree<=4; ++degree)
- test<1>(FE_Q<1>(degree));
+ test<1>(FE_Q<1>(QIterated<1>(QTrapez<1>(),degree)));
- test<1>(FE_Q<1>(quad));
+ // test the standard version (non-equidistant) as well
+ test<1>(FE_Q<1>(4));
for (unsigned int degree=1; degree<=4; ++degree)
- test<2>(FE_Q<2>(degree));
+ test<2>(FE_Q<2>(QIterated<1>(QTrapez<1>(),degree)));
- test<2>(FE_Q<2>(quad));
+ test<2>(FE_Q<2>(4));
for (unsigned int degree=1; degree<=4; ++degree)
- test<3>(FE_Q<3>(degree));
+ test<3>(FE_Q<3>(QIterated<1>(QTrapez<1>(),degree)));
- test<3>(FE_Q<3>(quad));
+ test<3>(FE_Q<3>(4));
return 0;
}
-
-
-
for (unsigned int degree1=1; degree1<=4; ++degree1)
for (unsigned int degree2=1; degree2<=4; ++degree2)
- test<1>(FE_Q<1>(degree1), FE_Q<1>(degree2));
+ test<1>(FE_Q<1>(QIterated<1>(QTrapez<1>(),degree1)),
+ FE_Q<1>(QIterated<1>(QTrapez<1>(),degree2)));
for (unsigned int degree1=2; degree1<=5; ++degree1)
for (unsigned int degree2=2; degree2<=5; ++degree2)
test<1>(FE_Q<1>(QGaussLobatto<1>(degree1)),
for (unsigned int degree1=1; degree1<=3; ++degree1)
for (unsigned int degree2=1; degree2<=3; ++degree2)
- test<2>(FE_Q<2>(degree1), FE_Q<2>(degree2));
+ test<2>(FE_Q<2>(QIterated<1>(QTrapez<1>(),degree1)),
+ FE_Q<2>(QIterated<1>(QTrapez<1>(),degree2)));
for (unsigned int degree1=2; degree1<=4; ++degree1)
for (unsigned int degree2=2; degree2<=4; ++degree2)
test<2>(FE_Q<2>(QGaussLobatto<1>(degree1)),
for (unsigned int degree1=1; degree1<=2; ++degree1)
for (unsigned int degree2=1; degree2<=2; ++degree2)
- test<3>(FE_Q<3>(degree1), FE_Q<3>(degree2));
+ test<3>(FE_Q<3>(QIterated<1>(QTrapez<1>(),degree1)),
+ FE_Q<3>(QIterated<1>(QTrapez<1>(),degree2)));
for (unsigned int degree1=2; degree1<=4; ++degree1)
for (unsigned int degree2=2; degree2<=4; ++degree2)
test<3>(FE_Q<3>(QGaussLobatto<1>(degree1)),
return 0;
}
-
-
-
void test ()
{
- FESystem<2> fe (FE_Q_Bubbles<2>(3), 2);
+ FESystem<2> fe (FE_Q_Bubbles<2>(QIterated<1>(QTrapez<1>(),3)), 2);
check (fe);
}
plot_face_shape_functions(m, q2, "DGQ2");
test_compute_functions(m, q2, "DGQ2");
- FE_DGQ<dim> q3(3);
+ FE_DGQArbitraryNodes<dim> q3(QIterated<1>(QTrapez<1>(),3));
plot_shape_functions(m, q3, "DGQ3");
plot_face_shape_functions(m, q3, "DGQ3");
test_compute_functions(m, q3, "DGQ3");
- QGaussLobatto<1> quadrature_gl(5);
- FE_DGQArbitraryNodes<dim> qgl(quadrature_gl);
+ FE_DGQ<dim> qgl(4);
plot_shape_functions(m, qgl, "DGQGL");
plot_face_shape_functions(m, qgl, "DGQGL");
test_compute_functions(m, qgl, "DGQGL");
// reduce run-time
if (dim < 3)
{
- FE_Q<dim> q3(3);
+ FE_Q<dim> q3(QIterated<1>(QTrapez<1>(),3));
plot_shape_functions(m, q3, "Q3");
plot_face_shape_functions(m, q3, "Q3");
test_compute_functions(m, q3, "Q3");
- FE_Q<dim> q4(4);
+ FE_Q<dim> q4(QIterated<1>(QTrapez<1>(),4));
plot_shape_functions(m, q4, "Q4");
plot_face_shape_functions(m, q4, "Q4");
test_compute_functions(m, q4, "Q4");
// reduce run-time
if (dim < 3)
{
- FE_Q_Bubbles<dim> q3(3);
+ FE_Q_Bubbles<dim> q3(QIterated<1>(QTrapez<1>(),3));
plot_shape_functions(m, q3, "Q3_Bubbles");
plot_face_shape_functions(m, q3, "Q3_Bubbles");
test_compute_functions(m, q3, "Q3_Bubbles");
- FE_Q_Bubbles<dim> q4(4);
+ FE_Q_Bubbles<dim> q4(QIterated<1>(QTrapez<1>(),4));
plot_shape_functions(m, q4, "Q4_Bubbles");
plot_face_shape_functions(m, q4, "Q4_Bubbles");
test_compute_functions(m, q4, "Q4_Bubbles");
// reduce run-time
if (dim < 3)
{
- FE_Q_DG0<dim> q3(3);
+ FE_Q_DG0<dim> q3(QIterated<1>(QTrapez<1>(),3));
plot_shape_functions(m, q3, "Q3_DG0");
plot_face_shape_functions(m, q3, "Q3_DG0");
test_compute_functions(m, q3, "Q3_DG0");
- FE_Q_DG0<dim> q4(4);
+ FE_Q_DG0<dim> q4(QIterated<1>(QTrapez<1>(),4));
plot_shape_functions(m, q4, "Q4_DG0");
plot_face_shape_functions(m, q4, "Q4_DG0");
test_compute_functions(m, q4, "Q4_DG0");
create_two_cubes_rotation(triangulation,1);
test<3>(triangulation);
}
-
triangulation.refine_global(1);
test<3>(triangulation);
}
-
hp::FECollection<2> fe;
fe.push_back (FE_Q<2>(1));
fe.push_back (FE_Q<2>(2));
- fe.push_back (FE_Q<2>(3));
+ fe.push_back (FE_Q<2>(QIterated<1>(QTrapez<1>(),3)));
hp::DoFHandler<2> dof_handler(triangulation);
constraints.print (deallog.get_file_stream());
}
-
hp::FECollection<3> fe;
fe.push_back (FE_Q<3>(1));
fe.push_back (FE_Q<3>(2));
- fe.push_back (FE_Q<3>(3));
+ fe.push_back (FE_Q<3>(QIterated<1>(QTrapez<1>(),3)));
hp::DoFHandler<3> dof_handler(triangulation);
constraints.print (deallog.get_file_stream());
}
-
#include <deal.II/dofs/dof_accessor.h>
#include <deal.II/fe/fe_q.h>
+#include <deal.II/base/quadrature_lib.h>
#include <deal.II/dofs/dof_tools.h>
hp::DoFHandler<dim> dof_handler(triangulation);
ConstraintMatrix hanging_node_constraints;
- FE_Q<dim> fe_1 (1), fe_2 (2), fe_3 (3), fe_4 (4);
+ FE_Q<dim> fe_1 (1), fe_2 (2), fe_3 (QIterated<1>(QTrapez<1>(),3)), fe_4 (QIterated<1>(QTrapez<1>(),4));
fe.push_back (fe_1);
fe.push_back (fe_2);
hp::FECollection<3> fe;
fe.push_back (FE_Q<3>(1));
fe.push_back (FE_Q<3>(2));
- fe.push_back (FE_Q<3>(3));
- fe.push_back (FE_Q<3>(4));
+ fe.push_back (FE_Q<3>(QIterated<1>(QTrapez<1>(),3)));
+ fe.push_back (FE_Q<3>(QIterated<1>(QTrapez<1>(),4)));
hp::DoFHandler<3> dof_handler(triangulation);
constraints.print (deallog.get_file_stream());
}
-
hp::FECollection<dim> fe;
fe.push_back (FE_Q<dim>(1));
fe.push_back (FE_Q<dim>(2));
- fe.push_back (FE_Q<dim>(3));
- fe.push_back (FE_Q<dim>(4));
- fe.push_back (FE_Q<dim>(5));
+ fe.push_back (FE_Q<dim>(QIterated<1>(QTrapez<1>(),3)));
+ fe.push_back (FE_Q<dim>(QIterated<1>(QTrapez<1>(),4)));
+ fe.push_back (FE_Q<dim>(QIterated<1>(QTrapez<1>(),5)));
hp::DoFHandler<dim> dof_handler(triangulation);
test<2> ();
test<3> ();
}
-
{
for (unsigned int degree=2; degree<5; ++degree)
{
- fe_collection.push_back (FE_Q<dim>(degree));
+ fe_collection.push_back (FE_Q<dim>(QIterated<1>(QTrapez<1>(),degree)));
quadrature_collection.push_back (QGauss<dim>(degree+2));
face_quadrature_collection.push_back (QGauss<dim-1>(degree+2));
}
{
for (unsigned int degree=2; degree<5; ++degree)
{
- fe_collection.push_back (FE_Q<dim>(degree));
+ fe_collection.push_back (FE_Q<dim>(QIterated<1>(QTrapez<1>(),degree)));
quadrature_collection.push_back (QGauss<dim>(degree+2));
face_quadrature_collection.push_back (QGauss<dim-1>(degree+2));
}
{
for (unsigned int degree=2; degree<5; ++degree)
{
- fe_collection.push_back (FE_Q<dim>(degree));
+ fe_collection.push_back (FE_Q<dim>(QIterated<1>(QTrapez<1>(),degree)));
quadrature_collection.push_back (QGauss<dim>(degree+2));
face_quadrature_collection.push_back (QGauss<dim-1>(degree+2));
}
{
for (unsigned int degree=2; degree<5; ++degree)
{
- fe_collection.push_back (FE_Q<dim>(degree));
+ fe_collection.push_back (FE_Q<dim>(QIterated<1>(QTrapez<1>(),degree)));
quadrature_collection.push_back (QGauss<dim>(degree+2));
face_quadrature_collection.push_back (QGauss<dim-1>(degree+2));
}
hp::FECollection<dim> element;
element.push_back (FE_Q<dim>(1));
element.push_back (FE_Q<dim>(2));
- element.push_back (FE_Q<dim>(3));
+ element.push_back (FE_Q<dim>(QIterated<1>(QTrapez<1>(),3)));
hp::DoFHandler<dim> dof(tr);
hp::FECollection<dim> element;
element.push_back (FE_Q<dim>(1));
element.push_back (FE_Q<dim>(2));
- element.push_back (FE_Q<dim>(3));
+ element.push_back (FE_Q<dim>(QIterated<1>(QTrapez<1>(),3)));
hp::DoFHandler<dim> dof(tr);
element.push_back (FESystem<dim> (FE_Q<dim>(1), 1,
FE_Q<dim>(2), 1));
element.push_back (FESystem<dim> (FE_Q<dim>(2), 1,
- FE_Q<dim>(3), 1));
- element.push_back (FESystem<dim> (FE_Q<dim>(3), 1,
- FE_Q<dim>(4), 1));
+ FE_Q<dim>(QIterated<1>(QTrapez<1>(),3)), 1));
+ element.push_back (FESystem<dim> (FE_Q<dim>(QIterated<1>(QTrapez<1>(),3)), 1,
+ FE_Q<dim>(QIterated<1>(QTrapez<1>(),4)), 1));
hp::DoFHandler<dim> dof(tr);
element.push_back (FESystem<dim> (FE_Q<dim>(1), 1,
FE_Q<dim>(2), 1));
element.push_back (FESystem<dim> (FE_Q<dim>(2), 1,
- FE_Q<dim>(3), 1));
- element.push_back (FESystem<dim> (FE_Q<dim>(3), 1,
- FE_Q<dim>(4), 1));
+ FE_Q<dim>(QIterated<1>(QTrapez<1>(),3)), 1));
+ element.push_back (FESystem<dim> (FE_Q<dim>(QIterated<1>(QTrapez<1>(),3)), 1,
+ FE_Q<dim>(QIterated<1>(QTrapez<1>(),4)), 1));
hp::DoFHandler<dim> dof(tr);
hp::FECollection<dim> element;
element.push_back (FE_Q<dim>(1));
element.push_back (FE_Q<dim>(2));
- element.push_back (FE_Q<dim>(3));
+ element.push_back (FE_Q<dim>(QIterated<1>(QTrapez<1>(),3)));
hp::DoFHandler<dim> dof(tr);
hp::FECollection<dim> element;
element.push_back (FE_Q<dim>(1));
element.push_back (FE_Q<dim>(2));
- element.push_back (FE_Q<dim>(3));
+ element.push_back (FE_Q<dim>(QIterated<1>(QTrapez<1>(),3)));
hp::DoFHandler<dim> dof(tr);
element.push_back (FESystem<dim> (FE_Q<dim>(1), 1,
FE_Q<dim>(2), 1));
element.push_back (FESystem<dim> (FE_Q<dim>(2), 1,
- FE_Q<dim>(3), 1));
- element.push_back (FESystem<dim> (FE_Q<dim>(3), 1,
- FE_Q<dim>(4), 1));
+ FE_Q<dim>(QIterated<1>(QTrapez<1>(),3)), 1));
+ element.push_back (FESystem<dim> (FE_Q<dim>(QIterated<1>(QTrapez<1>(),3)), 1,
+ FE_Q<dim>(QIterated<1>(QTrapez<1>(),4)), 1));
hp::DoFHandler<dim> dof(tr);
element.push_back (FESystem<dim> (FE_Q<dim>(1), 1,
FE_Q<dim>(2), 1));
element.push_back (FESystem<dim> (FE_Q<dim>(2), 1,
- FE_Q<dim>(3), 1));
- element.push_back (FESystem<dim> (FE_Q<dim>(3), 1,
- FE_Q<dim>(4), 1));
+ FE_Q<dim>(QIterated<1>(QTrapez<1>(),3)), 1));
+ element.push_back (FESystem<dim> (FE_Q<dim>(QIterated<1>(QTrapez<1>(),3)), 1,
+ FE_Q<dim>(QIterated<1>(QTrapez<1>(),4)), 1));
hp::DoFHandler<dim> dof(tr);
hp::FECollection<dim> element;
element.push_back (FE_Q<dim>(1));
element.push_back (FE_Q<dim>(2));
- element.push_back (FE_Q<dim>(3));
+ element.push_back (FE_Q<dim>(QIterated<1>(QTrapez<1>(),3)));
hp::DoFHandler<dim> dof(tr);
hp::FECollection<dim> element;
element.push_back (FE_Q<dim>(1));
element.push_back (FE_Q<dim>(2));
- element.push_back (FE_Q<dim>(3));
+ element.push_back (FE_Q<dim>(QIterated<1>(QTrapez<1>(),3)));
hp::DoFHandler<dim> dof(tr);
element.push_back (FESystem<dim> (FE_Q<dim>(1), 1,
FE_Q<dim>(2), 1));
element.push_back (FESystem<dim> (FE_Q<dim>(2), 1,
- FE_Q<dim>(3), 1));
- element.push_back (FESystem<dim> (FE_Q<dim>(3), 1,
- FE_Q<dim>(4), 1));
+ FE_Q<dim>(QIterated<1>(QTrapez<1>(),3)), 1));
+ element.push_back (FESystem<dim> (FE_Q<dim>(QIterated<1>(QTrapez<1>(),3)), 1,
+ FE_Q<dim>(QIterated<1>(QTrapez<1>(),4)), 1));
hp::DoFHandler<dim> dof(tr);
element.push_back (FESystem<dim> (FE_Q<dim>(1), 1,
FE_Q<dim>(2), 1));
element.push_back (FESystem<dim> (FE_Q<dim>(2), 1,
- FE_Q<dim>(3), 1));
- element.push_back (FESystem<dim> (FE_Q<dim>(3), 1,
- FE_Q<dim>(4), 1));
+ FE_Q<dim>(QIterated<1>(QTrapez<1>(),3)), 1));
+ element.push_back (FESystem<dim> (FE_Q<dim>(QIterated<1>(QTrapez<1>(),3)), 1,
+ FE_Q<dim>(QIterated<1>(QTrapez<1>(),4)), 1));
hp::DoFHandler<dim> dof(tr);
hp::FECollection<dim> element;
element.push_back (FE_Q<dim>(1));
element.push_back (FE_Q<dim>(2));
- element.push_back (FE_Q<dim>(3));
+ element.push_back (FE_Q<dim>(QIterated<1>(QTrapez<1>(),3)));
hp::DoFHandler<dim> dof(tr);
hp::FECollection<dim> element;
element.push_back (FE_Q<dim>(1));
element.push_back (FE_Q<dim>(2));
- element.push_back (FE_Q<dim>(3));
+ element.push_back (FE_Q<dim>(QIterated<1>(QTrapez<1>(),3)));
hp::DoFHandler<dim> dof(tr);
element.push_back (FESystem<dim> (FE_Q<dim>(1), 1,
FE_Q<dim>(2), 1));
element.push_back (FESystem<dim> (FE_Q<dim>(2), 1,
- FE_Q<dim>(3), 1));
- element.push_back (FESystem<dim> (FE_Q<dim>(3), 1,
- FE_Q<dim>(4), 1));
+ FE_Q<dim>(QIterated<1>(QTrapez<1>(),3)), 1));
+ element.push_back (FESystem<dim> (FE_Q<dim>(QIterated<1>(QTrapez<1>(),3)), 1,
+ FE_Q<dim>(QIterated<1>(QTrapez<1>(),4)), 1));
hp::DoFHandler<dim> dof(tr);
element.push_back (FESystem<dim> (FE_Q<dim>(1), 1,
FE_Q<dim>(2), 1));
element.push_back (FESystem<dim> (FE_Q<dim>(2), 1,
- FE_Q<dim>(3), 1));
- element.push_back (FESystem<dim> (FE_Q<dim>(3), 1,
- FE_Q<dim>(4), 1));
+ FE_Q<dim>(QIterated<1>(QTrapez<1>(),3)), 1));
+ element.push_back (FESystem<dim> (FE_Q<dim>(QIterated<1>(QTrapez<1>(),3)), 1,
+ FE_Q<dim>(QIterated<1>(QTrapez<1>(),4)), 1));
hp::DoFHandler<dim> dof(tr);
triangulation.refine_global(1);
//define DoFhandler and FEs
- FE_Q<2> u(2),u2(3);
+ FE_Q<2> u(2),u2(QIterated<1>(QTrapez<1>(),3));
hp::FECollection<2> fe_collection;
fe_collection.push_back(u);
std::vector<unsigned int> degrees;
for (unsigned int i=1; i<4; ++i)
{
- fe.push_back (FE_Q<dim>(i));
+ fe.push_back (FE_Q<dim>(QIterated<1>(QTrapez<1>(),i)));
degrees.push_back (i);
}
std::vector<unsigned int> degrees;
for (unsigned int i=1; i<4; ++i)
{
- fe.push_back (FESystem<dim>(FE_Q<dim>(i), 1,
+ fe.push_back (FESystem<dim>(FE_Q<dim>(QIterated<1>(QTrapez<1>(),i)), 1,
FE_DGQ<dim>(i+1), 1));
degrees.push_back (i);
}
hp::FECollection<dim> fe;
for (unsigned int i=1; i<4; ++i)
for (unsigned int j=0; j<4; ++j)
- fe.push_back (FESystem<dim>(FE_Q<dim>(i), 1,
+ fe.push_back (FESystem<dim>(FE_Q<dim>(QIterated<1>(QTrapez<1>(),i)), 1,
FE_DGQ<dim>(j), 1));
deallog << "No hanging nodes test" << std::endl;
FE_Q<2> fe_1 (1);
FE_Q<2> fe_2 (2);
- FE_Q<2> fe_3 (3);
+ FE_Q<2> fe_3 (QIterated<1>(QTrapez<1>(),3));
hp::FECollection<2> fe_coll2;
fe_coll2.push_back (fe_3);
hp::DoFHandler<dim> dof_handler(triangulation);
ConstraintMatrix hanging_node_constraints;
- FE_Q<dim> fe_1 (indx[0]),
- fe_2 (indx[1]),
- fe_3 (indx[2]),
- fe_4 (indx[3]);
+ FE_Q<dim> fe_1 (QIterated<1>(QTrapez<1>(),indx[0])),
+ fe_2 (QIterated<1>(QTrapez<1>(),indx[1])),
+ fe_3 (QIterated<1>(QTrapez<1>(),indx[2])),
+ fe_4 (QIterated<1>(QTrapez<1>(),indx[3]));
fe.push_back (fe_1);
fe.push_back (fe_2);
#include <deal.II/base/logstream.h>
#include <deal.II/hp/fe_collection.h>
#include <deal.II/fe/fe_q.h>
+#include <deal.II/base/quadrature_lib.h>
#include <fstream>
{
hp::FECollection<dim> fe_collection;
for (unsigned int i=1; i<8-dim; ++i)
- fe_collection.push_back (FE_Q<dim>(i));
+ fe_collection.push_back (FE_Q<dim>(QIterated<1>(QTrapez<1>(),i)));
for (unsigned int i=0; i<fe_collection.size(); ++i)
for (unsigned int j=0; j<fe_collection.size(); ++j)
#include <deal.II/hp/fe_collection.h>
#include <deal.II/fe/fe_q.h>
#include <deal.II/fe/fe_system.h>
+#include <deal.II/base/quadrature_lib.h>
#include <fstream>
{
hp::FECollection<dim> fe_collection;
for (unsigned int i=1; i<8-dim; ++i)
- fe_collection.push_back (FESystem<dim>(FE_Q<dim>(i),3));
+ fe_collection.push_back (FESystem<dim>(FE_Q<dim>(QIterated<1>(QTrapez<1>(),i)),3));
for (unsigned int i=0; i<fe_collection.size(); ++i)
for (unsigned int j=0; j<fe_collection.size(); ++j)
#include <deal.II/hp/fe_collection.h>
#include <deal.II/fe/fe_q.h>
#include <deal.II/fe/fe_system.h>
+#include <deal.II/base/quadrature_lib.h>
#include <fstream>
// add the system three times, with
// different numbers of base elements
// and multiplicities
- fe_collection.push_back (FESystem<dim>(FE_Q<dim>(i),3));
- fe_collection.push_back (FESystem<dim>(FE_Q<dim>(i),2,
- FE_Q<dim>(i),1));
- fe_collection.push_back (FESystem<dim>(FE_Q<dim>(i),1,
- FE_Q<dim>(i),2));
+ fe_collection.push_back (FESystem<dim>(FE_Q<dim>(QIterated<1>(QTrapez<1>(),i)),3));
+ fe_collection.push_back (FESystem<dim>(FE_Q<dim>(QIterated<1>(QTrapez<1>(),i)),2,
+ FE_Q<dim>(QIterated<1>(QTrapez<1>(),i)),1));
+ fe_collection.push_back (FESystem<dim>(FE_Q<dim>(QIterated<1>(QTrapez<1>(),i)),1,
+ FE_Q<dim>(QIterated<1>(QTrapez<1>(),i)),2));
}
for (unsigned int i=0; i<fe_collection.size(); ++i)
hp::QCollection<dim> q_collection;
for (unsigned int i=1; i<=4; ++i)
{
- fe_collection.push_back(FE_Q<dim> (i));
+ fe_collection.push_back(FE_Q<dim> (QIterated<1>(QTrapez<1>(),i)));
q_collection.push_back (QGauss<dim> (i+2));
}
// of one Q1 and one Q2 element
hp::FECollection<dim> element;
for (unsigned int i=1; i<7-dim; ++i)
- element.push_back (FESystem<dim> (FE_Q<dim>(i), 1,
- FE_Q<dim>(i+1), 1));
+ element.push_back (FESystem<dim> (FE_Q<dim>(QIterated<1>(QTrapez<1>(),i)), 1,
+ FE_Q<dim>(QIterated<1>(QTrapez<1>(),i+1)), 1));
hp::DoFHandler<dim> dof(tr);
for (typename hp::DoFHandler<dim>::active_cell_iterator
cell = dof.begin_active(); cell!=dof.end(); ++cell)
hp::FECollection<dim> fe;
for (unsigned int i=1; i<5; ++i)
- fe.push_back (FE_Q<dim>(i));
+ fe.push_back (FE_Q<dim>(QIterated<1>(QTrapez<1>(),i)));
hp::DoFHandler<dim> dof_handler(tr);
for (typename hp::DoFHandler<dim>::cell_iterator cell=dof_handler.begin();
return 0;
}
-
-
-
{
FE_Q<2> fe_1 (1),
fe_2 (2),
- fe_3 (3),
- fe_4 (4),
- fe_5 (5),
- fe_6 (6);
+ fe_3 (QIterated<1>(QTrapez<1>(),3)),
+ fe_4 (QIterated<1>(QTrapez<1>(),4)),
+ fe_5 (QIterated<1>(QTrapez<1>(),5)),
+ fe_6 (QIterated<1>(QTrapez<1>(),6));
fe.push_back (fe_1);
fe.push_back (fe_2);
{
FE_Q<2> fe_1 (1),
fe_2 (2),
- fe_3 (3),
- fe_4 (4),
- fe_5 (5),
- fe_6 (6);
+ fe_3 (QIterated<1>(QTrapez<1>(),3)),
+ fe_4 (QIterated<1>(QTrapez<1>(),4)),
+ fe_5 (QIterated<1>(QTrapez<1>(),5)),
+ fe_6 (QIterated<1>(QTrapez<1>(),6));
fe.push_back (fe_1);
fe.push_back (fe_2);
// of one Q1 and one Q2 element
hp::FECollection<dim> element;
for (unsigned int i=1; i<7-dim; ++i)
- element.push_back (FESystem<dim> (FE_Q<dim>(i), 1,
- FE_Q<dim>(i+1), 1));
+ element.push_back (FESystem<dim> (FE_Q<dim>(QIterated<1>(QTrapez<1>(),i)), 1,
+ FE_Q<dim>(QIterated<1>(QTrapez<1>(),i+1)), 1));
hp::DoFHandler<dim> dof(tr);
for (typename hp::DoFHandler<dim>::active_cell_iterator
cell = dof.begin_active(); cell!=dof.end(); ++cell)
// of one Q1 and one Q2 element
hp::FECollection<dim> element;
for (unsigned int i=1; i<7-dim; ++i)
- element.push_back (FE_Q<dim>(i));
+ element.push_back (FE_Q<dim>(QIterated<1>(QTrapez<1>(),i)));
hp::DoFHandler<dim> dof(tr);
for (typename hp::DoFHandler<dim>::active_cell_iterator
cell = dof.begin_active(); cell!=dof.end(); ++cell)
// of one Q1 and one Q2 element
hp::FECollection<dim> element;
for (unsigned int i=1; i<7-dim; ++i)
- element.push_back (FESystem<dim> (FE_Q<dim>(i), 1,
- FE_Q<dim>(i+1), 1));
+ element.push_back (FESystem<dim> (FE_Q<dim>(QIterated<1>(QTrapez<1>(),i)), 1,
+ FE_Q<dim>(QIterated<1>(QTrapez<1>(),i+1)), 1));
hp::DoFHandler<dim> dof(tr);
for (typename hp::DoFHandler<dim>::active_cell_iterator
cell = dof.begin_active(); cell!=dof.end(); ++cell)
// of one Q1 and one Q2 element
hp::FECollection<dim> element;
for (unsigned int i=1; i<7-dim; ++i)
- element.push_back (FE_Q<dim>(i));
+ element.push_back (FE_Q<dim>(QIterated<1>(QTrapez<1>(),i)));
hp::DoFHandler<dim> dof(tr);
for (typename hp::DoFHandler<dim>::active_cell_iterator
cell = dof.begin_active(); cell!=dof.end(); ++cell)
#include <deal.II/dofs/dof_tools.h>
#include <deal.II/lac/constraint_matrix.h>
#include <deal.II/fe/fe_q.h>
+#include <deal.II/base/quadrature_lib.h>
#include <fstream>
hp::FECollection<dim> fe_collection;
fe_collection.push_back(FE_Q<dim> (1));
fe_collection.push_back(FE_Q<dim> (2));
- fe_collection.push_back(FE_Q<dim> (3));
- fe_collection.push_back(FE_Q<dim> (4));
+ fe_collection.push_back(FE_Q<dim> (QIterated<1>(QTrapez<1>(),3)));
+ fe_collection.push_back(FE_Q<dim> (QIterated<1>(QTrapez<1>(),4)));
hp::DoFHandler<dim> dof_handler(tria);
if (dim==1)
tr.refine_global(2);
- FE_Q<dim> element(3);
+ FE_Q<dim> element(QIterated<1>(QTrapez<1>(),3));
DoFHandler<dim> dof(tr);
dof.distribute_dofs(element);
if (dim==1)
tr.refine_global(2);
- FE_Q<dim> element(3);
+ FE_Q<dim> element(QIterated<1>(QTrapez<1>(),3));
DoFHandler<dim> dof(tr);
dof.distribute_dofs(element);
tr.execute_coarsening_and_refinement ();
- FE_Q<dim,spacedim> element(3);
+ FE_Q<dim,spacedim> element(QIterated<1>(QTrapez<1>(),3));
DoFHandler<dim,spacedim> dof(tr);
dof.distribute_dofs(element);
const unsigned int p = 3;
- fe_collection.push_back(dealii::FE_Q<dim>(p));
+ fe_collection.push_back(dealii::FE_Q<dim>(QIterated<1>(QTrapez<1>(),p)));
quadrature_formula.push_back(dealii::QGauss<dim>(p+5));
face_quadrature_formula.push_back(dealii::QGauss<dim-1>(p+5));
for (unsigned int i=0; i<p_degree.size(); i++)
{
const unsigned int &p = p_degree[i];
- fe_collection.push_back(dealii::FE_Q<dim>(p));
+ fe_collection.push_back(dealii::FE_Q<dim>(QIterated<1>(QTrapez<1>(),p)));
quadrature_formula.push_back(dealii::QGauss<dim>(p+5));
face_quadrature_formula.push_back(dealii::QGauss<dim-1>(p+5));
}
for (unsigned int i=0; i<p_degree.size(); i++)
{
const unsigned int &p = p_degree[i];
- fe_collection.push_back(dealii::FE_Q<dim>(p));
+ fe_collection.push_back(dealii::FE_Q<dim>(QIterated<1>(QTrapez<1>(),p)));
quadrature_formula.push_back(dealii::QGauss<dim>(p+5));
face_quadrature_formula.push_back(dealii::QGauss<dim-1>(p+5));
}
dealii::ConstraintMatrix constraints;
for (unsigned int p = 1; p <=3; p++)
{
- fe_collection.push_back(dealii::FE_Q<dim>(p));
+ fe_collection.push_back(dealii::FE_Q<dim>(QIterated<1>(QTrapez<1>(),p)));
quadrature_formula.push_back(dealii::QGauss<dim>(p+1));
face_quadrature_formula.push_back(dealii::QGauss<dim-1>(p+1));
}
for (unsigned int degree=1; degree<4; ++degree)
{
- FESystem<dim> fe (FE_Q<dim>(degree), dim);
+ FESystem<dim> fe (FE_Q<dim>(QIterated<1>(QTrapez<1>(),degree)), dim);
test(tr, fe);
}
}
for (unsigned int degree=1; degree<6-dim; ++degree)
{
- FESystem<dim> fe (FE_Q<dim>(degree), dim);
+ FESystem<dim> fe (FE_Q<dim>(QIterated<1>(QTrapez<1>(),degree)), dim);
test(tr, fe);
}
}
for (unsigned int degree=1; degree<4; ++degree)
{
- FESystem<dim> fe (FE_Q<dim>(degree), dim,
+ FESystem<dim> fe (FE_Q<dim>(QIterated<1>(QTrapez<1>(),degree)), dim,
FE_DGP<dim>(degree+1), 1);
test(tr, fe);
}
for (unsigned int degree=1; degree<4; ++degree)
{
- hp::FECollection<dim> fe (FESystem<dim> (FE_Q<dim>(degree), dim));
+ hp::FECollection<dim> fe (FESystem<dim> (FE_Q<dim>(QIterated<1>(QTrapez<1>(),degree)), dim));
test(tr, fe);
}
}
for (unsigned int degree=1; degree<6-dim; ++degree)
{
- hp::FECollection<dim> fe (FESystem<dim> (FE_Q<dim>(degree), dim));
+ hp::FECollection<dim> fe (FESystem<dim> (FE_Q<dim>(QIterated<1>(QTrapez<1>(),degree)), dim));
test(tr, fe);
}
}
for (unsigned int degree=1; degree<4; ++degree)
{
- hp::FECollection<dim> fe (FESystem<dim> (FE_Q<dim>(degree), dim,
+ hp::FECollection<dim> fe (FESystem<dim> (FE_Q<dim>(QIterated<1>(QTrapez<1>(),degree)), dim,
FE_DGP<dim>(degree+1), 1));
test(tr, fe);
}
for (unsigned int degree=1; degree<4; ++degree)
{
- FESystem<dim> fe (FE_Q<dim>(degree), dim);
+ FESystem<dim> fe (FE_Q<dim>(QIterated<1>(QTrapez<1>(),degree)), dim);
test(tr, fe);
}
}