deal.II Installation Error

118 views
Skip to first unread message

pushkar...@gmail.com

unread,
Apr 2, 2021, 6:29:45 AM4/2/21
to deal.II User Group

Dear deal.II community,

In my attempt to install deal.II with p4est and mpi which I need to run PRISMS-PF I reinstalled the library but faced an error while installation at 50% described as :

/home/pushkar/dealii-9.0.0/source/lac/trilinos_precondition_muelu.cc: fatal error: MueLu_EpetraOperator.hpp: No such file or directory
   34 | #  include <MueLu_EpetraOperator.hpp>
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [source/lac/CMakeFiles/obj_lac_release.dir/build.make:776: source/lac/CMakeFiles/obj_lac_release.dir/trilinos_precondition_muelu.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:3445: source/lac/CMakeFiles/obj_lac_release.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

In this regard any help will be beneficial as in one of the github closed I found that by commenting out this header file one can surpass this issue but when I did that I got another error at 50%  in the same file as:

/home/pushkar/dealii-9.0.0/source/lac/trilinos_precondition_muelu.cc: In member function ‘void dealii::TrilinosWrappers::PreconditionAMGMueLu::initialize(const Epetra_CrsMatrix&, Teuchos::ParameterList&)’:
/home/pushkar/dealii-9.0.0/source/lac/trilinos_precondition_muelu.cc:219:24: error: expected type-specifier
  219 |       Teuchos::rcp(new Xpetra::EpetraCrsMatrix (rcp_matrix));
      |                        ^~~~~~
/home/pushkar/dealii-9.0.0/source/lac/trilinos_precondition_muelu.cc:233:46: error: ‘EpetraOperator’ is not a member of ‘MueLu’
  233 |     preconditioner = std::make_shared<MueLu::EpetraOperator>(hierarchy);
      |                                              ^~~~~~~~~~~~~~
/home/pushkar/dealii-9.0.0/source/lac/trilinos_precondition_muelu.cc:233:71: error: no matching function for call to ‘make_shared<<expression error> >(Teuchos::RCP<MueLu::Hierarchy<double, int, int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> > >&)’
  233 |     preconditioner = std::make_shared<MueLu::EpetraOperator>(hierarchy);
      |                                                                       ^
In file included from /usr/include/c++/9/memory:81,
                 from /usr/lib/Trilinos/include/Sacado_Fad_Exp_ViewStorage.hpp:35,
                 from /usr/lib/Trilinos/include/Sacado_Fad_Exp_ViewFad.hpp:34,
                 from /usr/lib/Trilinos/include/Sacado.hpp:85,
                 from /home/pushkar/dealii-9.0.0/include/deal.II/base/numbers.h:53,
                 from /home/pushkar/dealii-9.0.0/build/include/deal.II/base/config.h:412,
                 from /home/pushkar/dealii-9.0.0/include/deal.II/lac/trilinos_index_access.h:19,
                 from /home/pushkar/dealii-9.0.0/source/lac/trilinos_precondition_muelu.cc:16:
/usr/include/c++/9/bits/shared_ptr.h:714:5: note: candidate: ‘template<class _Tp, class ... _Args> std::shared_ptr<_Tp> std::make_shared(_Args&& ...)’
  714 |     make_shared(_Args&&... __args)
      |     ^~~~~~~~~~~
/usr/include/c++/9/bits/shared_ptr.h:714:5: note:   template argument deduction/substitution failed:
/home/pushkar/dealii-9.0.0/source/lac/trilinos_precondition_muelu.cc:233:71: error: template argument 1 is invalid
  233 |     preconditioner = std::make_shared<MueLu::EpetraOperator>(hierarchy);
      |                                                                       ^
make[2]: *** [source/lac/CMakeFiles/obj_lac_release.dir/build.make:776: source/lac/CMakeFiles/obj_lac_release.dir/trilinos_precondition_muelu.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:3445: source/lac/CMakeFiles/obj_lac_release.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

pushkar...@gmail.com

unread,
Apr 2, 2021, 6:31:13 AM4/2/21
to deal.II User Group
Any help in this regard will be helpful .

Regards
Pushkar

Wolfgang Bangerth

unread,
Apr 2, 2021, 6:50:48 PM4/2/21
to dea...@googlegroups.com
On 4/2/21 4:29 AM, pushkar...@gmail.com wrote:
>
> /home/pushkar/dealii-9.0.0/source/lac/trilinos_precondition_muelu.cc: fatal
> error: MueLu_EpetraOperator.hpp: No such file or directory
>    34 | #  include <MueLu_EpetraOperator.hpp>

Pushkar -- the questions to ask are (i) does this file exist, (ii) if it does,
why is the compiler not finding it, (iii) if it does not exist, why not?

MueLu is a part of the Trilinos software. It is conceivable that it was part
of previous Trilinos versions, but is no longer. The current deal.II version
no longer #includes this file, which suggests that indeed that file has gone
away. So we would have fixed this in newer deal.II versions, and one of the
possibilities is that you happen to have an old deal.II but new Trilinos
version and that these are just no longer compatible. If that is so, you will
have to either upgrade to a newer deal.II version or downgrade Trilinos to an
older version.

Best
W.

--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

Pushkar Pandit

unread,
Apr 2, 2021, 11:51:49 PM4/2/21
to dea...@googlegroups.com
Dear Dr. Wolgang Bangerth

Certainly that is the case as you illustrated since I am installing deal.II 9.0.0 in order to run PRISMS-PF and my Trilinos is not built with MueLu which was creating an issue so I excluded the installation with trilinos during the installation of deal.II and managed to successfully install in with an error in one of the mpi.cc file where in " MPI_Type_struct(2, lengths, displacements, types, &type); " line has deprecated MPI function which I replaced with a newer alternative of this function that transitioned the successful installation process 

Moreover,I am thankful for the quick reply on my query and I would be glad if my above observations prove to be of any relevance in the development of library.

Thankfully
Pushkar Anirudha Pandit

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/4381f89c-e873-57d2-9a65-58ec634aee5a%40colostate.edu.
Reply all
Reply to author
Forward
0 new messages