From fda627e3bce69d63a3c619688af4487f22f46284 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 24 Jul 2000 08:37:11 +0000 Subject: [PATCH] Allow for simpler extensibility by using push_back. output mangled class names in order to make more transparent in the output which number belongs to which class. git-svn-id: https://svn.dealii.org/trunk@3202 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/base/quadrature_test.cc | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/tests/base/quadrature_test.cc b/tests/base/quadrature_test.cc index ea306fbe6b..71b347cf0c 100644 --- a/tests/base/quadrature_test.cc +++ b/tests/base/quadrature_test.cc @@ -24,27 +24,27 @@ int main(int,char) ofstream logfile("quadrature_test.output"); deallog.attach(logfile); deallog.depth_console(0); - vector *> quadratures(14); - quadratures[2]=new QGauss2<2>(); - quadratures[3]=new QGauss3<2>(); - quadratures[4]=new QGauss4<2>(); - quadratures[5]=new QGauss5<2>(); - quadratures[6]=new QGauss6<2>(); - quadratures[7]=new QGauss7<2>(); - quadratures[8]=new QGauss8<2>(); - quadratures[9] = new QMidpoint<2>(); - quadratures[10] = new QTrapez<2>(); - quadratures[11] = new QSimpson<2>(); - quadratures[12] = new QMilne<2>(); - quadratures[13] = new QWeddle<2>(); + vector *> quadratures; + quadratures.push_back (new QGauss2<2>()); + quadratures.push_back (new QGauss3<2>()); + quadratures.push_back (new QGauss4<2>()); + quadratures.push_back (new QGauss5<2>()); + quadratures.push_back (new QGauss6<2>()); + quadratures.push_back (new QGauss7<2>()); + quadratures.push_back (new QMidpoint<2>()); + quadratures.push_back (new QTrapez<2>()); + quadratures.push_back (new QSimpson<2>()); + quadratures.push_back (new QMilne<2>()); + quadratures.push_back (new QWeddle<2>()); - for (unsigned int n=2; n<14; ++n) + for (unsigned int n=0; n *quadrature=quadratures[n]; const vector > &points=quadrature->get_points(); const vector &weights=quadrature->get_weights(); - deallog << "Quadrature no." << n; + deallog << "Quadrature no." << n + << " (" << typeid(*quadrature).name() << ")"; unsigned int i=0; double quadrature_int=0; -- 2.39.5