Dear Wolfgang, Thank you for your response. There is indeed not much of a need to keep the block structure in the code with a direct solver, but I was wondering still, as the script looks more compact this way.
Anyway, I rewrote several script parts to get rid of block matrices and vectors. The compiler does not complain anymore, while building CXX object, but it returns an error while linking CXX executable. It concerns the affine_constraints (as provided below). I wonder, whether there is a problem for using complex type constraints in terms of parallel computing? Could you please assist in understanding the issue? Thank you a lot! Kind regards, Mariia Bronzova /home/masianichik/dealii/include/deal.II/lac/affine_constraints.h:2475: error: undefined reference to 'void dealii::AffineConstraints<std::complex<double> >::distribute_local_to_global<dealii::PETScWrappers::MPI::SparseMatrix, dealii::PETScWrappers::MPI::Vector>(dealii::FullMatrix<std::complex<double> > const&, dealii::Vector<std::complex<double> > const&, std::vector<unsigned int, std::allocator<unsigned int> > const&, dealii::PETScWrappers::MPI::SparseMatrix&, dealii::PETScWrappers::MPI::Vector&, bool, std::integral_constant<bool, false>) const' /home/masianichik/dealii/examples/step-22/step-22.cc:601: error: undefined reference to 'void dealii::AffineConstraints<std::complex<double> >::distribute<dealii::PETScWrappers::MPI::Vector>(dealii::PETScWrappers::MPI::Vector&) > const' collect2: error: ld returned 1 exit status make[3]: *** [CMakeFiles/step-22.dir/build.make:137: step-22] Error 1 make[2]: *** [CMakeFiles/Makefile2:291: CMakeFiles/step-22.dir/all] Error 2 make[1]: *** [CMakeFiles/Makefile2:271: CMakeFiles/run.dir/rule] Error 2 make: *** [Makefile:215: run] Error 2 среда, 19 января 2022 г. в 17:42:10 UTC+1, Wolfgang Bangerth: > On 1/19/22 03:41, Мария Бронзова wrote: > > I checked the member function documentation for the solve() function of > > MUMPS and found only the solve() function that depends on the *const > > MatrixBase, *but I guess in my case *const* *BlockMatrixBase * would > > make more sense. > > > > Could you please tell me, whether there is a way to go about it? > > You just can't use a block matrix with the PETSc direct solver. But > since we use block matrices and vectors primarily for the construction > of solvers and preconditioners, there is also no real reason to use > block matrices if you use a direct solver. > > Best > W. > > > -- > ------------------------------------------------------------------------ > Wolfgang Bangerth email: [email protected] > www: http://www.math.colostate.edu/~bangerth/ > -- 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/9ea11c89-7bab-40b5-b658-9740eb22b5cbn%40googlegroups.com.
