Hi community I have a problem when trying to compile ngsolve with Hypre, I hope someone is able to help, thanks a lot ! :
In file included from /home/camicas/ngsuite/ngsolve-src/comp/bddc.cpp:4:
/home/camicas/ngsuite/ngsolve-src/comp/hypre_precond.hpp: In member function āvirtual int ngcomp::HyprePreconditioner::VHeight() constā:
/home/camicas/ngsuite/ngsolve-src/comp/hypre_precond.hpp:50:56: error: invalid use of incomplete type āusing element_type = class ngla::ParallelDofsā {aka āclass ngla::ParallelDofsā}
50 | virtual int VHeight() const override { return pardofs->GetNDofLocal();}
| ^~
In file included from /home/camicas/ngsuite/ngsolve-src/linalg/basematrix.hpp:12,
from /home/camicas/ngsuite/ngsolve-src/comp/preconditioner.hpp:11,
from /home/camicas/ngsuite/ngsolve-src/comp/bddc.cpp:3:
/home/camicas/ngsuite/ngsolve-src/linalg/basevector.hpp:22:9: note: forward declaration of āusing element_type = class ngla::ParallelDofsā {aka āclass ngla::ParallelDofsā}
22 | class ParallelDofs;
| ^~~~~~~~~~~~
In file included from /home/camicas/ngsuite/ngsolve-src/comp/bddc.cpp:4:
/home/camicas/ngsuite/ngsolve-src/comp/hypre_precond.hpp: In member function āvirtual int ngcomp::HyprePreconditioner::VWidth() constā:
/home/camicas/ngsuite/ngsolve-src/comp/hypre_precond.hpp:51:55: error: invalid use of incomplete type āusing element_type = class ngla::ParallelDofsā {aka āclass ngla::ParallelDofsā}
51 | virtual int VWidth() const override { return pardofs->GetNDofLocal();}
| ^~
In file included from /home/camicas/ngsuite/ngsolve-src/linalg/basematrix.hpp:12,
from /home/camicas/ngsuite/ngsolve-src/comp/preconditioner.hpp:11,
from /home/camicas/ngsuite/ngsolve-src/comp/bddc.cpp:3:
/home/camicas/ngsuite/ngsolve-src/linalg/basevector.hpp:22:9: note: forward declaration of āusing element_type = class ngla::ParallelDofsā {aka āclass ngla::ParallelDofsā}
22 | class ParallelDofs;
| ^~~~~~~~~~~~
/home/camicas/ngsuite/ngsolve-src/comp/hypre_precond.cpp: In member function āvoid ngcomp::HyprePreconditioner::Setup(const ngla::BaseMatrix&)ā:
/home/camicas/ngsuite/ngsolve-src/comp/hypre_precond.cpp:109:20: warning: āvoid ngla::ScatterDofData(ngcore::FlatArray, const std::shared_ptrngla::ParallelDofs&) [with T = int]ā is deprecated: use pardofs.ScatterDofData [-Wdeprecated-declarations]
109 | ScatterDofData (global_nums, pardofs);
| ~~~~~~~~^
In file included from /home/camicas/ngsuite/ngsolve-src/linalg/la.hpp:17,
from /home/camicas/ngsuite/ngsolve-src/comp/comp.hpp:12,
from /home/camicas/ngsuite/ngsolve-src/solve/solve.hpp:19,
from /home/camicas/ngsuite/ngsolve-src/comp/hypre_precond.cpp:10:
/home/camicas/ngsuite/ngsolve-src/linalg/paralleldofs.hpp:194:8: note: declared here
194 | void ScatterDofData (FlatArray data, const shared_ptr & pardofs)
| ^~~~~~~~~~~~~~
make[5]: *** [comp/CMakeFiles/ngcomp.dir/build.make:384: comp/CMakeFiles/ngcomp.dir/bddc.cpp.o] Error 1
make[5]: *** Waiting for unfinished jobsā¦
make[4]: *** [CMakeFiles/Makefile2:733: comp/CMakeFiles/ngcomp.dir/all] Error 2
make[3]: *** [Makefile:146: all] Error 2
make[2]: *** [CMakeFiles/ngsolve.dir/build.make:89: dependencies/src/ngsolve-stamp/ngsolve-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:312: CMakeFiles/ngsolve.dir/all] Error 2
make: *** [Makefile:156: all] Error 2