PETScWrappers::SparseMatrix<double> stiffness_matrix, mass_matrix;
std::vector<PETScWrappers::Vector> eigenfunctions;
std::vector<double> eigenvalues;
You see, Eclipse can't even know this class, And the compilation error is:
‘dealii::PETScWrappers::SparseMatrix’ is not a template
PETScWrappers::SparseMatrix<double> stiffness_matrix, mass_matrix;
‘SLEPcWrappers’ has not been declared
SLEPcWrappers::SolverKrylovSchur eigensolver (solver_control);
error: expected ‘;’ before ‘eigensolver’
SLEPcWrappers::SolverKrylovSchur eigensolver (solver_control);
error: ‘eigensolver’ was not declared in this scope
eigensolver.set_which_eigenpairs (EPS_SMALLEST_REAL);
‘EPS_SMALLEST_REAL’ was not declared in this scope
eigensolver.set_which_eigenpairs (EPS_SMALLEST_REAL);
‘EPS_GHEP’ was not declared in this scope
eigensolver.set_problem_type (EPS_GHEP);
I have already include both the PETSc and SLEPc header files. And I am using dealii 8.3 on the virtual mechiane downloaded from dealii website.
So what's the problem here, could anyone please give some suggestions?
Best regards,
David.
--
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 dealii+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
ubuntu@dealvm ~/workspace/step-36 $ cmake .
CMake Error at CMakeLists.txt:41 (MESSAGE):
Error! The deal.II library found at /home/ubuntu/deal.II/installed was not
configured with
DEAL_II_WITH_PETSC = ON
DEAL_II_WITH_SLEPC = ON
One or all of these are OFF in your installation but are required for this
tutorial step.
-- Configuring incomplete, errors occurred!
cmake -DDEAL_II_WITH_PETSC = ON .
--
Well, I don't understand why PETSc is turned off on the virtual machine.