File tree Expand file tree Collapse file tree 2 files changed +11
-26
lines changed Expand file tree Collapse file tree 2 files changed +11
-26
lines changed Original file line number Diff line number Diff line change 135135Step4<dim>::make_grid()
136136{
137137 GridGenerator::hyper_cube (triangulation, -1 , 1 );
138- triangulation.refine_global (2 );
138+ triangulation.refine_global (1 );
139139}
140140
141141
@@ -224,19 +224,13 @@ void
224224Step4<dim>::run()
225225{
226226 deallog.push (" dim " + std::to_string (dim));
227- for (unsigned int cycle = 0 ; cycle < 2 ; ++cycle)
228- {
229- if (cycle == 0 )
230- make_grid ();
231- else
232- triangulation.refine_global (1 );
233-
234- setup_system ();
235- assemble_preconditioner ();
236- deallog << " nnz: " << preconditioner_matrix.n_nonzero_elements ()
237- << std::endl;
238- deallog << " OK" << std::endl;
239- }
227+
228+ make_grid ();
229+
230+ setup_system ();
231+ assemble_preconditioner ();
232+ deallog << " nnz: " << preconditioner_matrix.n_nonzero_elements () << std::endl;
233+
240234 deallog.pop ();
241235}
242236
Original file line number Diff line number Diff line change 11
2- DEAL:dim 1::nnz: 35
3- DEAL:dim 1::OK
4- DEAL:dim 1::nnz: 71
5- DEAL:dim 1::OK
6- DEAL:dim 2::nnz: 1009
7- DEAL:dim 2::OK
8- DEAL:dim 2::nnz: 4585
9- DEAL:dim 2::OK
10- DEAL:dim 3::nnz: 30657
11- DEAL:dim 3::OK
12- DEAL:dim 3::nnz: 304221
13- DEAL:dim 3::OK
2+ DEAL:dim 1::nnz: 17
3+ DEAL:dim 2::nnz: 193
4+ DEAL:dim 3::nnz: 2415
You can’t perform that action at this time.
0 commit comments