micromagnetics / magnum.fe

http://micromagnetics.org/magnum.fe
GNU Lesser General Public License v3.0
16 stars 8 forks source link

Error while building withPackage: fenics (1:2016.2.0.1) (Debian stretch ) #7

Open mentore77 opened 7 years ago

mentore77 commented 7 years ago

Dear developer,

I found this error during the compilation of magnum.fe:

root@debianhpc:/home/patrizio/Scaricati/micromagnetics/magnum.fe/build# make [ 12%] Building CXX object CMakeFiles/magnumfe.dir/magnumfe/SubMeshInterpolator.cpp.o /home/patrizio/Scaricati/micromagnetics/magnum.fe/magnumfe/SubMeshInterpolator.cpp: In constructor ‘magnumfe::SubMeshInterpolator::SubMeshInterpolator(dolfin::FunctionSpace&, dolfin::FunctionSpace&)’: /home/patrizio/Scaricati/micromagnetics/magnum.fe/magnumfe/SubMeshInterpolator.cpp:31:33: # error: no matching function for call to ‘dolfin::Function::Function(dolfin::FunctionSpace&)’ dolfin::Function fsuper(Vsuper); ^ In file included from /usr/include/dolfin/ale/MeshDisplacement.h:29:0, from /usr/include/dolfin/mesh/Mesh.h:35, from /usr/include/dolfin/mesh/dolfin_mesh.h:11, from /usr/include/dolfin.h:15, from /home/patrizio/Scaricati/micromagnetics/magnum.fe/magnumfe/SubMeshInterpolator.h:23, from /home/patrizio/Scaricati/micromagnetics/magnum.fe/magnumfe/SubMeshInterpolator.cpp:20: /usr/include/dolfin/function/Function.h:113:5: note: candidate: dolfin::Function::Function(const dolfin::Function&, std::size_t) Function(const Function& v, std::size_t i); ^~~~ /usr/include/dolfin/function/Function.h:113:5: note: candidate expects 2 arguments, 1 provided /usr/include/dolfin/function/Function.h:102:5: note: candidate: dolfin::Function::Function(const dolfin::Function&) Function(const Function& v); ^~~~ /usr/include/dolfin/function/Function.h:102:5: note: no known conversion for argument 1 from ‘dolfin::FunctionSpace’ to ‘const dolfin::Function&’ /usr/include/dolfin/function/Function.h:94:5: note: candidate: dolfin::Function::Function(std::shared_ptr, std::__cxx11::string) Function(std::shared_ptr V, ^~~~ /usr/include/dolfin/function/Function.h:94:5: note: candidate expects 2 arguments, 1 provided /usr/include/dolfin/function/Function.h:84:5: note: candidate: dolfin::Function::Function(std::shared_ptr, std::shared_ptr) Function(std::shared_ptr V, ^~~~ /usr/include/dolfin/function/Function.h:84:5: note: candidate expects 2 arguments, 1 provided /usr/include/dolfin/function/Function.h:72:14: note: candidate: dolfin::Function::Function(std::shared_ptr) explicit Function(std::shared_ptr V); ^~~~ /usr/include/dolfin/function/Function.h:72:14: note: no known conversion for argument 1 from ‘dolfin::FunctionSpace’ to ‘std::shared_ptr’ /home/patrizio/Scaricati/micromagnetics/magnum.fe/magnumfe/SubMeshInterpolator.cpp:32:29: # error: no matching function for call to ‘dolfin::Function::Function(dolfin::FunctionSpace&)’ dolfin::Function fsub(Vsub); ^ In file included from /usr/include/dolfin/ale/MeshDisplacement.h:29:0, from /usr/include/dolfin/mesh/Mesh.h:35, from /usr/include/dolfin/mesh/dolfin_mesh.h:11, from /usr/include/dolfin.h:15, from /home/patrizio/Scaricati/micromagnetics/magnum.fe/magnumfe/SubMeshInterpolator.h:23, from /home/patrizio/Scaricati/micromagnetics/magnum.fe/magnumfe/SubMeshInterpolator.cpp:20: /usr/include/dolfin/function/Function.h:113:5: note: candidate: dolfin::Function::Function(const dolfin::Function&, std::size_t) Function(const Function& v, std::size_t i); ^~~~ /usr/include/dolfin/function/Function.h:113:5: note: candidate expects 2 arguments, 1 provided /usr/include/dolfin/function/Function.h:102:5: note: candidate: dolfin::Function::Function(const dolfin::Function&) Function(const Function& v); ^~~~ /usr/include/dolfin/function/Function.h:102:5: note: no known conversion for argument 1 from ‘dolfin::FunctionSpace’ to ‘const dolfin::Function&’ /usr/include/dolfin/function/Function.h:94:5: note: candidate: dolfin::Function::Function(std::shared_ptr, std::__cxx11::string) Function(std::shared_ptr V, ^~~~ /usr/include/dolfin/function/Function.h:94:5: note: candidate expects 2 arguments, 1 provided /usr/include/dolfin/function/Function.h:84:5: note: candidate: dolfin::Function::Function(std::shared_ptr, std::shared_ptr) Function(std::shared_ptr V, ^~~~ /usr/include/dolfin/function/Function.h:84:5: note: candidate expects 2 arguments, 1 provided /usr/include/dolfin/function/Function.h:72:14: note: candidate: dolfin::Function::Function(std::shared_ptr) explicit Function(std::shared_ptr V); ^~~~ /usr/include/dolfin/function/Function.h:72:14: note: no known conversion for argument 1 from ‘dolfin::FunctionSpace’ to ‘std::shared_ptr’ CMakeFiles/magnumfe.dir/build.make:62: set di istruzioni per l'obiettivo "CMakeFiles/magnumfe.dir/magnumfe/SubMeshInterpolator.cpp.o" non riuscito make[2]: [CMakeFiles/magnumfe.dir/magnumfe/SubMeshInterpolator.cpp.o] Errore 1 CMakeFiles/Makefile2:67: set di istruzioni per l'obiettivo "CMakeFiles/magnumfe.dir/all" non riuscito make[1]: [CMakeFiles/magnumfe.dir/all] Errore 2 Makefile:127: set di istruzioni per l'obiettivo "all" non riuscito make: *** [all] Errore 2

based on my knowledge and according to the instruction magnum.fe is compatible with fenics >= 1.5.0. but apparently it does not work with fenics version 1:2016.2.0.1 (Debian stretch ). Unfortunately I could not find an old version of fenics on their repository.

Your comments and suggestions will be greatly appreciated. Thanks Patrizio

c-abird commented 7 years ago

Dear Patrizio,

the open source branch of magnum.fe is very outdated and no longer maintained. It only compiles against very old versions of FEniCS and BEM++. If you are interested in a recent version of magnum.fe, please contact me via claas.abert@tuwien.ac.at.

Best wishes, Claas