From ed38b90ffe9d93d216d6070936b7bf8e48db7103 Mon Sep 17 00:00:00 2001 From: wolf Date: Tue, 19 Sep 2000 12:22:45 +0000 Subject: [PATCH] Fix indentation. git-svn-id: https://svn.dealii.org/trunk@3338 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/deal.II/dof_test.cc | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/tests/deal.II/dof_test.cc b/tests/deal.II/dof_test.cc index 85431ed17a..63e85a2ceb 100644 --- a/tests/deal.II/dof_test.cc +++ b/tests/deal.II/dof_test.cc @@ -58,7 +58,7 @@ class Ball }; -virtual Point + virtual Point get_new_point_on_quad (const typename Triangulation::quad_iterator &quad) const { Point middle = StraightBoundary::get_new_point_on_quad(quad); @@ -118,7 +118,7 @@ CurvedLine::get_new_point_on_line (const typename Triangulation::line_ return middle; -double x=middle(0), + double x=middle(0), y=middle(1); if (y Point CurvedLine::get_new_point_on_quad (const typename Triangulation::quad_iterator &quad) const @@ -171,6 +172,7 @@ CurvedLine::get_new_point_on_quad (const typename Triangulation::quad_ }; + template class TestCases { @@ -189,11 +191,13 @@ class TestCases }; + template TestCases::TestCases () : tria(0), dof(0) {}; + template TestCases::~TestCases () { @@ -202,6 +206,7 @@ TestCases::~TestCases () }; + template void TestCases::create_new () { @@ -215,6 +220,7 @@ void TestCases::create_new () }; + template void TestCases::run (const unsigned int test_case) { @@ -288,7 +294,7 @@ void TestCases::run (const unsigned int test_case) }; -deallog << " Distributing degrees of freedom..." << endl; + deallog << " Distributing degrees of freedom..." << endl; FEQ1 fe; dof->distribute_dofs (fe); @@ -299,14 +305,14 @@ deallog << " Distributing degrees of freedom..." << endl; dof->max_couplings_between_dofs()); -DoFTools::make_sparsity_pattern (*dof, sparsity); + DoFTools::make_sparsity_pattern (*dof, sparsity); int unconstrained_bandwidth = sparsity.bandwidth(); deallog << " Writing sparsity pattern..." << endl; sparsity.print_gnuplot (logfile); -// computing constraints + // computing constraints deallog << " Computing constraints..." << endl; ConstraintMatrix constraints; DoFTools::make_hanging_node_constraints (*dof, constraints); @@ -317,14 +323,14 @@ DoFTools::make_sparsity_pattern (*dof, sparsity); sparsity.print_gnuplot (logfile); -deallog << endl - << " Total number of cells = " << tria->n_cells() << endl - << " Total number of active cells = " << tria->n_active_cells() << endl - << " Number of DoFs = " << dof->n_dofs() << endl - << " Number of constraints = " << constraints.n_constraints() << endl - << " Unconstrained matrix bandwidth= " << unconstrained_bandwidth << endl - << " Constrained matrix bandwidth = " << sparsity.bandwidth() - << endl << endl; + deallog << endl + << " Total number of cells = " << tria->n_cells() << endl + << " Total number of active cells = " << tria->n_active_cells() << endl + << " Number of DoFs = " << dof->n_dofs() << endl + << " Number of constraints = " << constraints.n_constraints() << endl + << " Unconstrained matrix bandwidth= " << unconstrained_bandwidth << endl + << " Constrained matrix bandwidth = " << sparsity.bandwidth() + << endl << endl; // release the lock that dof has to the // finite element object @@ -332,6 +338,7 @@ deallog << endl }; + int main () { deallog.attach(logfile); -- 2.39.5