Hello, I am a newer of Linux and deal.II.
Now I use Centos7. I have some questions.
Question1:
First question is about the step-35, which can be got from all the examples that
need other software packages.
Deal.II is installed on by default as the install introduction said. path=/usr/local
But I don't know why I got this problem. And even UMFPACK is installed, I
got this problem. As the documentation said, the UMFPACK interface will be enabled by default.
[francis@localhost examples]$ cd step-35
[francis@localhost step-35]$ cmake .
CMake Error at CMakeLists.txt:41 (MESSAGE):
Error! The deal.II library found at
/home/francis/bin/deal.II was not
configured with
DEAL_II_WITH_UMFPACK =
ON
One or all of these are OFF in your installation but are required for this
tutorial
step.
-- Configuring incomplete, errors occurred!
Question2: The second is about the step-34.
The old version 8.1 hasn't got this problem, but the version 8.2.1.
[100%] Run step-34 with Debug configuration
DEAL::
DEAL::Parsing parameter file
parameters.prm
DEAL::for a 2 dimensional simulation.
DEAL:GMRES::Starting value
2.21576
DEAL:GMRES::Convergence step 1 value 2.37635e-13
DEAL::Cycle 0:
DEAL::
Number of active cells: 20
DEAL:: Number of degrees of freedom: 20
--------------------------------------------------------
An error occurred in line <745>
of file </home/francis/Downloads/deal.II/source/numerics/data_out_dof_data.cc>
in function
void dealii::DataOut_DoFData<DH, patch_dim,
patch_space_dim>::add_data_vector(const VECTOR&, const
std::vector<std::basic_string<char> >&, dealii::DataOut_DoFData<DH, patch_dim,
patch_space_dim>::DataVectorType, const
std::vector<dealii::DataComponentInterpretation::DataComponentInterpretation>&
) [with VECTOR = dealii::Vector<double>; DH = dealii::DoFHandler<1, 2>; int
patch_dim = 1; int patch_space_dim = 2]
The violated condition was:
(dofs == 0) ||
(triangulation->n_active_cells() != dofs->n_dofs())
The name and call sequence of
the exception was:
ExcMessage("Unable to determine the type of vector
automatically because the number of DoFs " "is equal to the number of cells. Please
specify DataVectorType.")
Additional Information:
Unable to determine the type of
vector automatically because the number of DoFs is equal to the number of cells.
Please specify DataVectorType.
Stacktrace:
-----------
#0
/home/francis/bin/deal.II/lib/libdeal_II.g.so.8.2.1: void
dealii::DataOut_DoFData<dealii::DoFHandler<1, 2>, 1,
2>::add_data_vector<dealii::Vector<double> >(dealii::Vector<double> const&,
std::vector<std::string, std::allocator<std::string> > const&,
dealii::DataOut_DoFData<dealii::DoFHandler<1, 2>, 1, 2>::DataVectorType,
std::vector<dealii::DataComponentInterpretation::DataComponentInterpretation,
std::allocator<dealii::DataComponentInterpretation::DataComponentInterpretation
> > const&)
#1 /home/francis/bin/deal.II/lib/libdeal_II.g.so.8.2.1: void
dealii::DataOut_DoFData<dealii::DoFHandler<1, 2>, 1,
2>::add_data_vector<dealii::Vector<double> >(dealii::Vector<double> const&,
std::string const&, dealii::DataOut_DoFData<dealii::DoFHandler<1, 2>, 1,
2>::DataVectorType,
std::vector<dealii::DataComponentInterpretation::DataComponentInterpretation,
std::allocator<dealii::DataComponentInterpretation::DataComponentInterpretation
> > const&)
#2 ./step-34: Step34::BEMProblem<2>::output_results(unsigned int)
#3
./step-34: Step34::BEMProblem<2>::run()
#4 ./step-34: main
--------------------------------------------------------
make[3]: *** [CMakeFiles/run]
Aborted (core dumped)
make[2]: *** [CMakeFiles/run.dir/all] Error 2
make[1]: ***
[CMakeFiles/run.dir/rule] Error 2
make: *** [run] Error 2