Hi Shiraz,

Today when I tried to compile the code which is meant to solve the 
condition number of system matrix, I also got the compiling error:

"error: undefined reference to 'void 
dealii::SparseDirectUMFPACK::initialize<dealii::TrilinosWrappers::BlockSparseMatrix>(dealii::TrilinosWrappers::BlockSparseMatrix
 
const&, dealii::SparseDirectUMFPACK::AdditionalData)'"

I uses "LA::MPI::BlockSparseMatrix system_pde_matrix;" to declare my 
system_matrix instead what is used in step-36 "PETScWrappers::SparseMatrix 
stiffness_matrix, mass_matrix;"

Is this where the problem lies?

Have you solved this compiling error finally?

Best regards,
Fan Meng

在 2015年5月17日星期日 UTC+2下午6:19:10,Shiraz Farouq写道:
>
> Hi !
>
> I am following from step-36 for solving the eigenvalue problem:
>
> I have a block matrix
>
> A=[M  -aK
>      K     M]
>
> and preconditioner
>
> P=[M   -a*aK
>      K  M+aK]
>
> I solve for the eigenvalue problem :
>
> *A* x=*P* \lambda x
>
> I am using the Arpack solver using the following code from step-36
>
> solve_for_eigenvalues(){
>
>        SolverControl solver_control (system_dof_handler.n_dofs(), 1e-9);
>        SparseDirectUMFPACK inverse;
>        inverse.initialize (system_matrix);
>        const unsigned int num_arnoldi_vectors = 2*eigenvalues.size() + 2;
>        ArpackSolver::AdditionalData additional_data(num_arnoldi_vectors);
>        ArpackSolver eigensolver (solver_control, additional_data);
>        eigensolver.solve (system_matrix,
>        system_matrix,
>        inverse,
>        eigenvalues,
>        eigenfunctions,
>        eigenfunctions.size());
>        for (unsigned int i=0; i<eigenfunctions.size(); ++i)
>        eigenfunctions[i] /= eigenfunctions[i].linfty_norm ();
>        return solver_control.last_step ();
>
>     }
>
> However, its doesn't compile
>
> undefined reference to `void 
> dealii::SparseDirectUMFPACK::initialize<dealii::TrilinosWrappers::BlockSparseMatrix>(dealii::TrilinosWrappers::BlockSparseMatrix
>  
> const&, dealii::SparseDirectUMFPACK::AdditionalData)'
>
> How is the reference undefined !
>
> Thanks
>
> /S
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/32285cea-047d-49b0-a94f-7a9aeedee282%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to