An update:
I saw the following forum posts:
and changed my CMake code to:
cmake \
-DUSE_GUI=OFF \
-DUSE_PYTHON=ON \
-DUSE_MUMPS=ON \
-DUSE_PARDISO=ON \
-DUSE_UMFPACK=ON \
-DUSE_MPI=ON \
-DMKL_ROOT=${MKLROOT} \
-DUSE_MKL=ON \
-DCMAKE_INSTALL_PREFIX=${BASEDIR}/ngsolve-install ${BASEDIR}/ngsolve-src
Prior to all this, I load:
module load gcc/8.2.1
module load cmake/3.11.2
module load icc_18
module load contrib/python/3.6.3
module load anaconda3_5.3
but cannot install other dependencies due to lack of permissions.
I also used a pre-contained Docker image of NGSolve (Docker) using Singularity, but really could not figure out how to set the path in such a way to call my Python code in a way like: netgen testngsolve.py
.
Any help would be appreciated.
A sample error message is:
[code]/opt/rh/devtoolset-8/root/usr/include/c++/8/bits/stl_pair.h(218): note: this candidate was rejected because mismatch in count of arguments
_GLIBCXX_CONSTEXPR pair()
^
detected during:
instantiation of “std::pair<_T1, _T2>::pair(std::piecewise_construct_t, std::tuple<_Args1…>, std::tuple<_Args2…>) [with _T1=const std::string, _T2=ngcore::detail::ClassArchiveInfo, _Args1=<const std::string &>, _Args2=<>]” at line 136 of “/opt/rh/devtoolset-8/root/usr/include/c++/8/ext/new_allocator.h”
instantiation of “void __gnu_cxx::new_allocator<_Tp>::construct(_Up *, _Args &&…) [with _Tp=std::_Rb_tree_node<std::pair<const std::string, ngcore::detail::ClassArchiveInfo>>, _Up=std::pair<const std::string, ngcore::detail::ClassArchiveInfo>, _Args=<const std::piecewise_construct_t &, std::tuple<const std::string &>, std::tuple<>>]” at line 475 of “/opt/rh/devtoolset-8/root/usr/include/c++/8/bits/alloc_traits.h”
instantiation of “void std::allocator_traits<std::allocator<_Tp>>::construct(std::allocator_traits<std::allocator<_Tp>>::allocator_type &, _Up *, _Args &&…) [with _Tp=std::_Rb_tree_node<std::pair<const std::string, ngcore::detail::ClassArchiveInfo>>, _Up=std::pair<const std::string, ngcore::detail::ClassArchiveInfo>, _Args=<const std::piecewise_construct_t &, std::tuple<const std::string &>, std::tuple<>>]” at line 639 of
“/opt/rh/devtoolset-8/root/usr/include/c++/8/bits/stl_tree.h”
instantiation of “void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_construct_node(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type, _Args &&…) [with _Key=std::string, _Val=std::pair<const std::string, ngcore::detail::ClassArchiveInfo>, _KeyOfValue=std::_Select1st<std::pair<const std::string, ngcore::detail::ClassArchiveInfo>>, _Compare=std::lessstd::string, _Alloc=std::allocator<std::pair<const std::string, ngcore::detail::ClassArchiveInfo>>,
_Args=<const std::piecewise_construct_t &, std::tuple<const std::string &>, std::tuple<>>]” at line 654 of “/opt/rh/devtoolset-8/root/usr/include/c++/8/bits/stl_tree.h”
instantiation of “std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_create_node(_Args &&…) [with _Key=std::string, _Val=std::pair<const std::string, ngcore::detail::ClassArchiveInfo>, _KeyOfValue=std::_Select1st<std::pair<const std::string, ngcore::detail::ClassArchiveInfo>>, _Compare=std::lessstd::string, _Alloc=std::allocator<std::pair<const std::string, ngcore::detail::ClassArchiveInfo>>,
_Args=<const std::piecewise_construct_t &, std::tuple<const std::string &>, std::tuple<>>]” at line 2414 of “/opt/rh/devtoolset-8/root/usr/include/c++/8/bits/stl_tree.h”
instantiation of “std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Args &&…) [with _Key=std::string, _Val=std::pair<const std::string, ngcore::detail::ClassArchiveInfo>, _KeyOfValue=std::_Select1st<std::pair<const std::string, ngcore::detail::ClassArchiveInfo>>, _Compare=std::lessstd::string,
_Alloc=std::allocator<std::pair<const std::string, ngcore::detail::ClassArchiveInfo>>, _Args=<const std::piecewise_construct_t &, std::tuple<const std::string &>, std::tuple<>>]” at line 501 of “/opt/rh/devtoolset-8/root/usr/include/c++/8/bits/stl_map.h”
instantiation of “std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type &std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const std::map<_Key, _Tp, _Compare, _Alloc>::key_type &) [with _Key=std::string, _Tp=ngcore::detail::ClassArchiveInfo, _Compare=std::lessstd::string, _Alloc=std::allocator<std::pair<const std::string, ngcore::detail::ClassArchiveInfo>>]” at line 28 of “/usr/lusers/tharindu/ngsuite/ngsolve-src/external_dependencies/netgen/libsrc/core/archive.cpp”
compilation aborted for /usr/lusers/tharindu/ngsuite/ngsolve-src/external_dependencies/netgen/libsrc/core/archive.cpp (code 2)
make[8]: *** [libsrc/core/CMakeFiles/ngcore.dir/build.make:63: libsrc/core/CMakeFiles/ngcore.dir/archive.cpp.o] Error 2
make[7]: *** [CMakeFiles/Makefile2:1097: libsrc/core/CMakeFiles/ngcore.dir/all] Error 2
make[6]: *** [Makefile:163: all] Error 2
make[5]: *** [CMakeFiles/netgen.dir/build.make:116: dependencies/src/netgen-stamp/netgen-build] Error 2
make[4]: *** [CMakeFiles/Makefile2:132: CMakeFiles/netgen.dir/all] Error 2
make[3]: *** [Makefile:130: all] Error 2
make[2]: *** [CMakeFiles/netgen_project.dir/build.make:111: dependencies/Stamp/netgen_project/netgen_project-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:142: CMakeFiles/netgen_project.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
[/code]