Skip to content

Commit

Permalink
simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhei committed Nov 19, 2024
1 parent 617fbb2 commit ea4450b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 26 deletions.
22 changes: 8 additions & 14 deletions tests/fe/assemble_q_iso_q1.cc
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void
Step4<dim>::make_grid()
{
GridGenerator::hyper_cube(triangulation, -1, 1);
triangulation.refine_global(2);
triangulation.refine_global(1);
}


Expand Down Expand Up @@ -224,19 +224,13 @@ void
Step4<dim>::run()
{
deallog.push("dim " + std::to_string(dim));
for (unsigned int cycle = 0; cycle < 2; ++cycle)
{
if (cycle == 0)
make_grid();
else
triangulation.refine_global(1);

setup_system();
assemble_preconditioner();
deallog << "nnz: " << preconditioner_matrix.n_nonzero_elements()
<< std::endl;
deallog << "OK" << std::endl;
}

make_grid();

setup_system();
assemble_preconditioner();
deallog << "nnz: " << preconditioner_matrix.n_nonzero_elements() << std::endl;

deallog.pop();
}

Expand Down
15 changes: 3 additions & 12 deletions tests/fe/assemble_q_iso_q1.output
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@

DEAL:dim 1::nnz: 35
DEAL:dim 1::OK
DEAL:dim 1::nnz: 71
DEAL:dim 1::OK
DEAL:dim 2::nnz: 1009
DEAL:dim 2::OK
DEAL:dim 2::nnz: 4585
DEAL:dim 2::OK
DEAL:dim 3::nnz: 30657
DEAL:dim 3::OK
DEAL:dim 3::nnz: 304221
DEAL:dim 3::OK
DEAL:dim 1::nnz: 17
DEAL:dim 2::nnz: 193
DEAL:dim 3::nnz: 2415

0 comments on commit ea4450b

Please sign in to comment.