I am trying to install pragmatic from https://github.com/meshadaptation/pragmatic on my Ubuntu with Fenics 1.6.0.
When I type make in the terminal I get the following output:
[ 9%] Building CXX object CMakeFiles/coarsen_mesh_3d.dir/tools/coarsen_mesh_3d.cpp.o
In file included from /home/fenics/Downloads/pragmatic-master/tools/coarsen_mesh_3d.cpp:44:0:
/home/fenics/Downloads/pragmatic-master/include/VTKTools.h: In static member function ‘static Mesh* VTKTools::import_vtu(vtkUnstructuredGrid)’:
/home/fenics/Downloads/pragmatic-master/include/VTKTools.h:250:40: error: there are no arguments to ‘METIS_PartMeshNodal’ that depend on a template parameter, so a declaration of ‘METIS_PartMeshNodal’ must be available [-fpermissive]
&(npart[0]));
^
/home/fenics/Downloads/pragmatic-master/include/VTKTools.h:250:40: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/home/fenics/Downloads/pragmatic-master/include/VTKTools.h: In instantiation of ‘static Mesh VTKTools::import_vtu(vtkUnstructuredGrid) [with real_t = double]’:
/home/fenics/Downloads/pragmatic-master/include/VTKTools.h:116:25: required from ‘static Mesh VTKTools::import_vtu(std::string) [with real_t = double; std::string = std::basic_string]’
/home/fenics/Downloads/pragmatic-master/tools/coarsen_mesh_3d.cpp:169:69: required from here
/home/fenics/Downloads/pragmatic-master/include/VTKTools.h:250:40: error: ‘METIS_PartMeshNodal’ was not declared in this scope
make[2]: *** [CMakeFiles/coarsen_mesh_3d.dir/tools/coarsen_mesh_3d.cpp.o] Error 1
make[1]: *** [CMakeFiles/coarsen_mesh_3d.dir/all] Error 2
make: *** [all] Error 2
Is the problem related to the library?