stiffness_matrix.reinit (sparsity_pattern);
mass_matrix.reinit (sparsity_pattern);
- eigenfunctions
- .resize (5);
+ eigenfunctions.resize (8);
for (unsigned int i=0; i<eigenfunctions.size (); ++i)
eigenfunctions[i].reinit (dof_handler.n_dofs ());
std::sort(eigenvalues.begin(), eigenvalues.end(), my_compare);
- for (unsigned int i=0; i<eigenvalues.size(); ++i)
+ for (unsigned int i = 0; i < 5 && i < eigenvalues.size(); ++i)
deallog << " Eigenvalue " << i
<< " : " << eigenvalues[i]
<< std::endl;
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
+ deallog.depth_console (0);
- Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
- {
- deallog.depth_console (0);
-
- EigenvalueProblem<2> problem ("");
- problem.run ();
- }
+ EigenvalueProblem<2> problem ("");
+ problem.run ();
}
catch (std::exception &exc)
DEAL:: Eigenvalue 0 : (4.93877,0.00000)
DEAL:: Eigenvalue 1 : (12.3707,0.00000)
-DEAL:: Eigenvalue 2 : (19.8027,0.00000)
-DEAL:: Eigenvalue 3 : (24.8370,0.00000)
+DEAL:: Eigenvalue 2 : (12.3707,0.00000)
+DEAL:: Eigenvalue 3 : (19.8027,0.00000)
DEAL:: Eigenvalue 4 : (24.8370,0.00000)