make all make[1]: Entering directory '/home/ngsolve19/Documents/HDGCode' g++ -O0 -g -I. -I/home/ngsolve19/ngsuite2/ngsolve-install/include -DNG=5 -fPIC -c mynumproc.cpp In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/core/ngcore.hpp:4:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/ngstd.hpp:130, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:16, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/core/archive.hpp: In instantiation of ‘ngcore::Archive& ngcore::Archive::operator&(std::shared_ptr<_Tp>&) [with T = netgen::Mesh]’: /home/ngsolve19/ngsuite2/ngsolve-install/include/core/archive.hpp:138:15: required from ‘ngcore::Archive& ngcore::Archive::Shallow(T&) [with T = std::shared_ptr]’ /home/ngsolve19/ngsuite2/ngsolve-install/include/meshaccess.hpp:1093:24: required from here /home/ngsolve19/ngsuite2/ngsolve-install/include/core/archive.hpp:316:79: error: invalid use of incomplete type ‘class netgen::Mesh’ logger->debug("Store shared ptr of type {}", Demangle(typeid(T).name())); ~~~~~~~~~~~~~~^~ In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/meshaccess.hpp:12:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/comp.hpp:52, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:19, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/nginterface_v2.hpp:251:9: note: forward declaration of ‘class netgen::Mesh’ class Mesh; ^~~~ In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/core/ngcore.hpp:4:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/ngstd.hpp:130, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:16, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/core/archive.hpp:327:24: error: invalid use of incomplete type ‘class netgen::Mesh’ if(typeid(T) != typeid(*ptr)) In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/meshaccess.hpp:12:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/comp.hpp:52, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:19, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/nginterface_v2.hpp:251:9: note: forward declaration of ‘class netgen::Mesh’ class Mesh; ^~~~ In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/core/ngcore.hpp:4:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/ngstd.hpp:130, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:16, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/core/archive.hpp:327:24: error: invalid use of incomplete type ‘class netgen::Mesh’ if(typeid(T) != typeid(*ptr)) In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/meshaccess.hpp:12:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/comp.hpp:52, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:19, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/nginterface_v2.hpp:251:9: note: forward declaration of ‘class netgen::Mesh’ class Mesh; ^~~~ In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/core/ngcore.hpp:4:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/ngstd.hpp:130, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:16, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/core/archive.hpp:330:52: error: invalid use of incomplete type ‘class netgen::Mesh’ Demangle(typeid(T).name()), ~~~~~~~~~~~~~~^~ In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/meshaccess.hpp:12:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/comp.hpp:52, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:19, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/nginterface_v2.hpp:251:9: note: forward declaration of ‘class netgen::Mesh’ class Mesh; ^~~~ In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/core/ngcore.hpp:4:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/ngstd.hpp:130, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:16, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/core/archive.hpp:331:55: error: invalid use of incomplete type ‘class netgen::Mesh’ Demangle(typeid(*ptr).name())); ~~~~~~~~~~~~~~~~~^~ In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/meshaccess.hpp:12:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/comp.hpp:52, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:19, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/nginterface_v2.hpp:251:9: note: forward declaration of ‘class netgen::Mesh’ class Mesh; ^~~~ In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/core/ngcore.hpp:4:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/ngstd.hpp:130, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:16, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/core/archive.hpp:332:58: error: invalid use of incomplete type ‘class netgen::Mesh’ if(!IsRegistered(Demangle(typeid(*ptr).name()))) ~~~~~~~~~~~~~~~~~^~ In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/meshaccess.hpp:12:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/comp.hpp:52, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:19, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/nginterface_v2.hpp:251:9: note: forward declaration of ‘class netgen::Mesh’ class Mesh; ^~~~ In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/core/ngcore.hpp:4:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/ngstd.hpp:130, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:16, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/core/archive.hpp:334:63: error: invalid use of incomplete type ‘class netgen::Mesh’ + Demangle(typeid(*ptr).name()) ~~~~~~~~~~~~~~~~~^~ In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/meshaccess.hpp:12:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/comp.hpp:52, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:19, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/nginterface_v2.hpp:251:9: note: forward declaration of ‘class netgen::Mesh’ class Mesh; ^~~~ In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/core/ngcore.hpp:4:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/ngstd.hpp:130, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:16, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/core/archive.hpp:336:70: error: invalid use of incomplete type ‘class netgen::Mesh’ reg_ptr = GetArchiveRegister(Demangle(typeid(*ptr).name())).downcaster(typeid(T), ptr.get()); ~~~~~~~~~~~~~~~~~^~ In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/meshaccess.hpp:12:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/comp.hpp:52, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:19, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/nginterface_v2.hpp:251:9: note: forward declaration of ‘class netgen::Mesh’ class Mesh; ^~~~ In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/core/ngcore.hpp:4:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/ngstd.hpp:130, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:16, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/core/archive.hpp:336:23: error: invalid use of incomplete type ‘class netgen::Mesh’ reg_ptr = GetArchiveRegister(Demangle(typeid(*ptr).name())).downcaster(typeid(T), ptr.get()); In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/meshaccess.hpp:12:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/comp.hpp:52, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:19, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/nginterface_v2.hpp:251:9: note: forward declaration of ‘class netgen::Mesh’ class Mesh; ^~~~ In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/core/ngcore.hpp:4:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/ngstd.hpp:130, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:16, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/core/archive.hpp:355:54: error: invalid use of incomplete type ‘class netgen::Mesh’ (*this) << Demangle(typeid(*ptr).name()); ~~~~~~~~~~~~~~~~~^~ In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/meshaccess.hpp:12:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/comp.hpp:52, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:19, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/nginterface_v2.hpp:251:9: note: forward declaration of ‘class netgen::Mesh’ class Mesh; ^~~~ In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/core/ngcore.hpp:4:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/ngstd.hpp:130, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:16, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/core/archive.hpp:363:50: error: invalid use of incomplete type ‘class netgen::Mesh’ (*this) << Demangle(typeid(*ptr).name()); ~~~~~~~~~~~~~~~~~^~ In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/meshaccess.hpp:12:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/comp.hpp:52, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:19, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/nginterface_v2.hpp:251:9: note: forward declaration of ‘class netgen::Mesh’ class Mesh; ^~~~ In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/core/ngcore.hpp:4:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/ngstd.hpp:130, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:16, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/core/archive.hpp:367:81: error: invalid use of incomplete type ‘class netgen::Mesh’ logger->debug("Reading shared_ptr of type {}", Demangle(typeid(T).name())); ~~~~~~~~~~~~~~^~ In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/meshaccess.hpp:12:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/comp.hpp:52, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:19, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/nginterface_v2.hpp:251:9: note: forward declaration of ‘class netgen::Mesh’ class Mesh; ^~~~ In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/core/ngcore.hpp:4:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/ngstd.hpp:130, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:16, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/core/archive.hpp:394:48: error: invalid use of incomplete type ‘class netgen::Mesh’ nr2shared_ptr.push_back(std::shared_ptr(std::static_pointer_cast(ptr), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ info.downcaster(typeid(T), ~~~~~~~~~~~~~~~~~~~~~~~~~~ ptr.get()))); ~~~~~~~~~~~ In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/meshaccess.hpp:12:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/comp.hpp:52, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:19, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/nginterface_v2.hpp:251:9: note: forward declaration of ‘class netgen::Mesh’ class Mesh; ^~~~ In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/core/ngcore.hpp:4:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/ngstd.hpp:130, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:16, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/core/archive.hpp:420:58: error: invalid use of incomplete type ‘class netgen::Mesh’ ptr = std::static_pointer_cast(std::shared_ptr(other, ^~~~~~~~~~~~~~~~~~~~~~~ info.upcaster(typeid(T), ~~~~~~~~~~~~~~~~~~~~~~~~ other.get()))); ~~~~~~~~~~~~~ In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/meshaccess.hpp:12:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/comp.hpp:52, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:19, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/nginterface_v2.hpp:251:9: note: forward declaration of ‘class netgen::Mesh’ class Mesh; ^~~~ In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33:0, from /usr/include/c++/7/bits/allocator.h:46, from /usr/include/c++/7/string:41, from /usr/include/c++/7/bits/locale_classes.h:40, from /usr/include/c++/7/bits/ios_base.h:41, from /usr/include/c++/7/ios:42, from /usr/include/c++/7/ostream:38, from /usr/include/c++/7/iostream:39, from /home/ngsolve19/ngsuite2/ngsolve-install/include/ngs_stdcpp_include.hpp:55, from /home/ngsolve19/ngsuite2/ngsolve-install/include/ngstd.hpp:14, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:16, from mynumproc.cpp:1: /usr/include/c++/7/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = mynumproc::MyNumProc<2, 4, mynumproc::EulerFlux2d, mynumproc::DummyViscFlux<2, 4>, mynumproc::DummySource<2, 4> >; _Args = {std::shared_ptr&, const ngstd::Flags&}; _Tp = mynumproc::MyNumProc<2, 4, mynumproc::EulerFlux2d, mynumproc::DummyViscFlux<2, 4>, mynumproc::DummySource<2, 4> >]’: /usr/include/c++/7/bits/alloc_traits.h:475:4: required from ‘static void std::allocator_traits >::construct(std::allocator_traits >::allocator_type&, _Up*, _Args&& ...) [with _Up = mynumproc::MyNumProc<2, 4, mynumproc::EulerFlux2d, mynumproc::DummyViscFlux<2, 4>, mynumproc::DummySource<2, 4> >; _Args = {std::shared_ptr&, const ngstd::Flags&}; _Tp = mynumproc::MyNumProc<2, 4, mynumproc::EulerFlux2d, mynumproc::DummyViscFlux<2, 4>, mynumproc::DummySource<2, 4> >; std::allocator_traits >::allocator_type = std::allocator, mynumproc::DummySource<2, 4> > >]’ /usr/include/c++/7/bits/shared_ptr_base.h:526:39: required from ‘std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_Sp_counted_ptr_inplace(_Alloc, _Args&& ...) [with _Args = {std::shared_ptr&, const ngstd::Flags&}; _Tp = mynumproc::MyNumProc<2, 4, mynumproc::EulerFlux2d, mynumproc::DummyViscFlux<2, 4>, mynumproc::DummySource<2, 4> >; _Alloc = std::allocator, mynumproc::DummySource<2, 4> > >; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2]’ /usr/include/c++/7/bits/shared_ptr_base.h:637:4: required from ‘std::__shared_count<_Lp>::__shared_count(std::_Sp_make_shared_tag, _Tp*, const _Alloc&, _Args&& ...) [with _Tp = mynumproc::MyNumProc<2, 4, mynumproc::EulerFlux2d, mynumproc::DummyViscFlux<2, 4>, mynumproc::DummySource<2, 4> >; _Alloc = std::allocator, mynumproc::DummySource<2, 4> > >; _Args = {std::shared_ptr&, const ngstd::Flags&}; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2]’ /usr/include/c++/7/bits/shared_ptr_base.h:1295:35: required from ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator, mynumproc::DummySource<2, 4> > >; _Args = {std::shared_ptr&, const ngstd::Flags&}; _Tp = mynumproc::MyNumProc<2, 4, mynumproc::EulerFlux2d, mynumproc::DummyViscFlux<2, 4>, mynumproc::DummySource<2, 4> >; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2]’ /usr/include/c++/7/bits/shared_ptr.h:344:64: required from ‘std::shared_ptr<_Tp>::shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator, mynumproc::DummySource<2, 4> > >; _Args = {std::shared_ptr&, const ngstd::Flags&}; _Tp = mynumproc::MyNumProc<2, 4, mynumproc::EulerFlux2d, mynumproc::DummyViscFlux<2, 4>, mynumproc::DummySource<2, 4> >]’ /usr/include/c++/7/bits/shared_ptr.h:690:14: required from ‘std::shared_ptr<_Tp> std::allocate_shared(const _Alloc&, _Args&& ...) [with _Tp = mynumproc::MyNumProc<2, 4, mynumproc::EulerFlux2d, mynumproc::DummyViscFlux<2, 4>, mynumproc::DummySource<2, 4> >; _Alloc = std::allocator, mynumproc::DummySource<2, 4> > >; _Args = {std::shared_ptr&, const ngstd::Flags&}]’ /usr/include/c++/7/bits/shared_ptr.h:706:39: required from ‘std::shared_ptr<_Tp> std::make_shared(_Args&& ...) [with _Tp = mynumproc::MyNumProc<2, 4, mynumproc::EulerFlux2d, mynumproc::DummyViscFlux<2, 4>, mynumproc::DummySource<2, 4> >; _Args = {std::shared_ptr&, const ngstd::Flags&}]’ /home/ngsolve19/ngsuite2/ngsolve-install/include/numproc.hpp:117:28: required from ‘static std::shared_ptr ngcomp::RegisterNumProc::Create(std::shared_ptr, const ngstd::Flags&) [with NP = mynumproc::MyNumProc<2, 4, mynumproc::EulerFlux2d, mynumproc::DummyViscFlux<2, 4>, mynumproc::DummySource<2, 4> >]’ /home/ngsolve19/ngsuite2/ngsolve-install/include/numproc.hpp:112:5: required from ‘ngcomp::RegisterNumProc::RegisterNumProc(std::__cxx11::string, int) [with NP = mynumproc::MyNumProc<2, 4, mynumproc::EulerFlux2d, mynumproc::DummyViscFlux<2, 4>, mynumproc::DummySource<2, 4> >; std::__cxx11::string = std::__cxx11::basic_string]’ mynumproc.cpp:415:113: required from here /usr/include/c++/7/ext/new_allocator.h:136:4: error: no matching function for call to ‘mynumproc::MyNumProc<2, 4, mynumproc::EulerFlux2d, mynumproc::DummyViscFlux<2, 4>, mynumproc::DummySource<2, 4> >::MyNumProc(std::shared_ptr&, const ngstd::Flags&)’ { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mynumproc.cpp:286:3: note: candidate: mynumproc::MyNumProc::MyNumProc(ngcomp::PDE&, const ngstd::Flags&) [with int D = 2; int COMP = 4; convflux = mynumproc::EulerFlux2d; viscflux = mynumproc::DummyViscFlux<2, 4>; sourcefunc = mynumproc::DummySource<2, 4>] MyNumProc(PDE & apde, const Flags & flags); ^~~~~~~~~ mynumproc.cpp:286:3: note: no known conversion for argument 1 from ‘std::shared_ptr’ to ‘ngcomp::PDE&’ mynumproc.cpp:148:7: note: candidate: mynumproc::MyNumProc<2, 4, mynumproc::EulerFlux2d, mynumproc::DummyViscFlux<2, 4>, mynumproc::DummySource<2, 4> >::MyNumProc(const mynumproc::MyNumProc<2, 4, mynumproc::EulerFlux2d, mynumproc::DummyViscFlux<2, 4>, mynumproc::DummySource<2, 4> >&) class MyNumProc : public NumProc ^~~~~~~~~ mynumproc.cpp:148:7: note: candidate expects 1 argument, 2 provided mynumproc.cpp:148:7: note: candidate: mynumproc::MyNumProc<2, 4, mynumproc::EulerFlux2d, mynumproc::DummyViscFlux<2, 4>, mynumproc::DummySource<2, 4> >::MyNumProc(mynumproc::MyNumProc<2, 4, mynumproc::EulerFlux2d, mynumproc::DummyViscFlux<2, 4>, mynumproc::DummySource<2, 4> >&&) mynumproc.cpp:148:7: note: candidate expects 1 argument, 2 provided In file included from mynumproc.cpp:322:0: numprocdo.h: In instantiation of ‘void mynumproc::MyNumProc::Do(ngstd::LocalHeap&) [with int D = 2; int COMP = 4; convflux = mynumproc::EulerFlux2d; viscflux = mynumproc::DummyViscFlux<2, 4>; sourcefunc = mynumproc::DummySource<2, 4>]’: mynumproc.cpp:424:1: required from here numprocdo.h:125:37: warning: ‘int ngcomp::MeshAccess::GetParentElement(int) const’ is deprecated: Use GetParentElement(ElementId) instead! [-Wdeprecated-declarations] while(ma->GetParentElement(ref_i) != -1 && counter < 2) { ~~~~~~~~~~~~~~~~~~~~^~~~~~~ In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/comp.hpp:52:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:19, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/meshaccess.hpp:944:9: note: declared here int GetParentElement (int ei) const ^~~~~~~~~~~~~~~~ In file included from mynumproc.cpp:322:0: numprocdo.h:126:34: warning: ‘int ngcomp::MeshAccess::GetParentElement(int) const’ is deprecated: Use GetParentElement(ElementId) instead! [-Wdeprecated-declarations] ref_i = ma->GetParentElement(ref_i); ~~~~~~~~~~~~~~~~~~~~^~~~~~~ In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/comp.hpp:52:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:19, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/meshaccess.hpp:944:9: note: declared here int GetParentElement (int ei) const ^~~~~~~~~~~~~~~~ In file included from mynumproc.cpp:322:0: numprocdo.h:147:34: error: no matching function for call to ‘GetElementInformation<2, 4>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector*, std::allocator*> >&, std::vector*, std::allocator*> >&, std::vector >&, std::vector >&, std::vector >&, std::vector >&, std::shared_ptr&, ngstd::LocalHeap&)’ GetElementInformation(fes, fes_sigma, fes_lambda, fadata, eldata, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ order_u_array, order_vec_array, stab_conv, stab_visc, ma, lh); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mynumproc.cpp:91:0: element_access.h:139:6: note: candidate: template void mynumproc::GetElementInformation(const ngcomp::FESpace*, const ngcomp::FESpace*, const ngcomp::FESpace*, std::vector*>&, std::vector*>&, std::vector >&, std::vector >&, std::vector >&, std::vector >&, ngcomp::MeshAccess, ngstd::LocalHeap&) void GetElementInformation(const FESpace *fes, const FESpace *fes_sigma, const FESpace *fes_lambda, ^~~~~~~~~~~~~~~~~~~~~ element_access.h:139:6: note: template argument deduction/substitution failed: In file included from mynumproc.cpp:322:0: numprocdo.h:147:34: note: cannot convert ‘mynumproc::fes’ (type ‘std::shared_ptr’) to type ‘const ngcomp::FESpace*’ GetElementInformation(fes, fes_sigma, fes_lambda, fadata, eldata, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ order_u_array, order_vec_array, stab_conv, stab_visc, ma, lh); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ numprocdo.h:323:19: error: no matching function for call to ‘mynumproc::MyNumProc<2, 4, mynumproc::EulerFlux2d, mynumproc::DummyViscFlux<2, 4>, mynumproc::DummySource<2, 4> >::WriteTecplot(std::__cxx11::string&, int&, std::vector >&, std::vector >&, std::vector*, std::allocator*> >&, std::vector*, std::allocator*> >&, std::shared_ptr&, std::shared_ptr&, ngstd::LocalHeap&)’ WriteTecplot(filename, mm, vecW, vecSigma, eldata, fadata, fes, fes_sigma, lh); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mynumproc.cpp:249:8: note: candidate: void mynumproc::MyNumProc::WriteTecplot(std::__cxx11::string&, int, std::vector >&, std::vector >&, std::vector*>&, std::vector*>&, ngcomp::FESpace*, ngcomp::FESpace*, ngstd::LocalHeap&) [with int D = 2; int COMP = 4; convflux = mynumproc::EulerFlux2d; viscflux = mynumproc::DummyViscFlux<2, 4>; sourcefunc = mynumproc::DummySource<2, 4>; std::__cxx11::string = std::__cxx11::basic_string] void WriteTecplot(string & filename, int order, vector & vecW, vector & vecSigma, ^~~~~~~~~~~~ mynumproc.cpp:249:8: note: no known conversion for argument 7 from ‘std::shared_ptr’ to ‘ngcomp::FESpace*’ In file included from mynumproc.cpp:380:0: anisotropy/readorder.h: In instantiation of ‘void mynumproc::MyNumProc::ReadOrder(std::vector >&) [with int D = 2; int COMP = 4; convflux = mynumproc::EulerFlux2d; viscflux = mynumproc::DummyViscFlux<2, 4>; sourcefunc = mynumproc::DummySource<2, 4>]’: numprocdo.h:32:14: required from ‘void mynumproc::MyNumProc::Do(ngstd::LocalHeap&) [with int D = 2; int COMP = 4; convflux = mynumproc::EulerFlux2d; viscflux = mynumproc::DummyViscFlux<2, 4>; sourcefunc = mynumproc::DummySource<2, 4>]’ mynumproc.cpp:424:1: required from here anisotropy/readorder.h:39:22: warning: ‘void ngcomp::MeshAccess::GetElVertices(int, ngstd::Array&) const’ is deprecated: Use GetElVertices(ElementId) instead! [-Wdeprecated-declarations] ma->GetElVertices(i, vnums); ~~~~~~~~~~~~~~~~~^~~~~~~~~~ In file included from /home/ngsolve19/ngsuite2/ngsolve-install/include/comp.hpp:52:0, from /home/ngsolve19/ngsuite2/ngsolve-install/include/solve.hpp:19, from mynumproc.cpp:1: /home/ngsolve19/ngsuite2/ngsolve-install/include/meshaccess.hpp:702:10: note: declared here void GetElVertices (int elnr, Array & vnums) const ^~~~~~~~~~~~~ Makefile:16: recipe for target 'mynumproc.o' failed make[1]: *** [mynumproc.o] Error 1 make[1]: Leaving directory '/home/ngsolve19/Documents/HDGCode' Makefile:32: recipe for target 'netgen' failed make: *** [netgen] Error 2