I am trying to compile the hermes-tutorial. My CMake.vars is (I removed trilinos as I did not use it during hermes compilation):
tomas@tomas-VirtualBox:~/workspace/hermes-tutorial$ more CMake.vars
# This is a sample CMake.vars file for Hermes.
# Some search paths.
if (WIN32)
set(GLUT_ROOT "d:/hpfem/hermes/dependencies/glut")
set(GLEW_ROOT "d:/hpfem/hermes/dependencies/glew")
set(PTHREAD_ROOT "d:/hpfem/hermes/dependencies/pthread")
set(UMFPACK_ROOT "d:/hpfem/hermes/dependencies/umfpack")
set(CLAPACK_ROOT "d:/hpfem/hermes/dependencies/clapack")
# Target (installation) path.
set(TARGET_ROOT "d:/hpfem/hermes/dependencies")
else()
#set(GLUT_ROOT "/usr/lib/")
#set(GLEW_ROOT "/usr/lib/")
#set(PTHREAD_ROOT "/usr/lib/")
#set(UMFPACK_ROOT "/usr/lib/")
#set(CLAPACK_ROOT "/usr/lib/")
endif()
# Python.
set(WITH_PYTHON NO)
# Trilinos
if (WIN32)
set(TRILINOS_ROOT "d:/hpfem/hermes/dependencies/trilinos")
else()
set(TRILINOS_ROOT "~/solvers/trilinos")
endif()
SET(WITH_TRILINOS NO)
# Experimental
# Turn on Zoltan AND MPI
SET(WITH_ZOLTAN YES)
SET(WITH_MPI YES)
tomas@tomas-VirtualBox:~/workspace/hermes-tutorial$
cmake .
Thanks in advance.
Tomas.
tomas@tomas-VirtualBox:~/workspace/hermes-tutorial$ cmake .
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tomas/workspace/hermes-tutorial
tomas@tomas-VirtualBox:~/workspace/hermes-tutorial$ make
[ 1%] Building CXX object A-linear/01-mesh/CMakeFiles/A-01-mesh.dir/main.cpp.o
Linking CXX executable A-01-mesh
[ 1%] Built target A-01-mesh
[ 3%] Building CXX object A-linear/02-space/CMakeFiles/A-02-space.dir/main.cpp.o
Linking CXX executable A-02-space
[ 3%] Built target A-02-space
[ 5%] Building CXX object A-linear/03-poisson/CMakeFiles/A-03-poisson.dir/definitions.cpp.o
[ 7%] Building CXX object A-linear/03-poisson/CMakeFiles/A-03-poisson.dir/main.cpp.o
Linking CXX executable A-03-poisson
[ 7%] Built target A-03-poisson
[ 9%] Building CXX object A-linear/04-bc-dirichlet/CMakeFiles/A-04-bc-dirichlet.dir/definitions.cpp.o
[ 11%] Building CXX object A-linear/04-bc-dirichlet/CMakeFiles/A-04-bc-dirichlet.dir/main.cpp.o
Linking CXX executable A-04-bc-dirichlet
...
[ 83%] Building CXX object D-adaptivity/10-transient-space-and-time/CMakeFiles/D-10-transient-space-and-time.dir/main.cpp.o
[ 84%] Building CXX object D-adaptivity/10-transient-space-and-time/CMakeFiles/D-10-transient-space-and-time.dir/definitions.cpp.o
Linking CXX executable D-10-transient-space-and-time
[ 84%] Built target D-10-transient-space-and-time
[ 86%] Building CXX object E-fvm-and-dg/01-linear-advection-dg/CMakeFiles/E-01-linear-advection-dg.dir/main.cpp.o
In file included from /home/tomas/workspace/hermes-tutorial/E-fvm-and-dg/01-linear-advection-dg/main.cpp:44:0:
/home/tomas/workspace/hermes-tutorial/E-fvm-and-dg/01-linear-advection-dg/euler_util.cpp: In member function ‘void KrivodonovaDiscontinuityDetector::calculate_jumps(Hermes::Hermes2D::Element*, int, double*)’:
/home/tomas/workspace/hermes-tutorial/E-fvm-and-dg/01-linear-advection-dg/euler_util.cpp:187:66: error: ‘class Hermes::Hermes2D::DiscontinuousFunc<double>’ has no member named ‘get_val_central’
/home/tomas/workspace/hermes-tutorial/E-fvm-and-dg/01-linear-advection-dg/euler_util.cpp:187:115: error: ‘class Hermes::Hermes2D::DiscontinuousFunc<double>’ has no member named ‘get_val_neighbor’
/home/tomas/workspace/hermes-tutorial/E-fvm-and-dg/01-linear-advection-dg/euler_util.cpp:188:72: error: ‘class Hermes::Hermes2D::DiscontinuousFunc<double>’ has no member named ‘get_val_central’
/home/tomas/workspace/hermes-tutorial/E-fvm-and-dg/01-linear-advection-dg/euler_util.cpp:188:127: error: ‘class Hermes::Hermes2D::DiscontinuousFunc<double>’ has no member named ‘get_val_neighbor’
/home/tomas/workspace/hermes-tutorial/E-fvm-and-dg/01-linear-advection-dg/euler_util.cpp:189:72: error: ‘class Hermes::Hermes2D::DiscontinuousFunc<double>’ has no member named ‘get_val_central’
/home/tomas/workspace/hermes-tutorial/E-fvm-and-dg/01-linear-advection-dg/euler_util.cpp:189:127: error: ‘class Hermes::Hermes2D::DiscontinuousFunc<double>’ has no member named ‘get_val_neighbor’
/home/tomas/workspace/hermes-tutorial/E-fvm-and-dg/01-linear-advection-dg/euler_util.cpp:190:65: error: ‘class Hermes::Hermes2D::DiscontinuousFunc<double>’ has no member named ‘get_val_central’
/home/tomas/workspace/hermes-tutorial/E-fvm-and-dg/01-linear-advection-dg/euler_util.cpp:190:113: error: ‘class Hermes::Hermes2D::DiscontinuousFunc<double>’ has no member named ‘get_val_neighbor’
make[2]: *** [E-fvm-and-dg/01-linear-advection-dg/CMakeFiles/E-01-linear-advection-dg.dir/main.cpp.o] Error 1
make[1]: *** [E-fvm-and-dg/01-linear-advection-dg/CMakeFiles/E-01-linear-advection-dg.dir/all] Error 2
make: *** [all] Error 2
tomas@tomas-VirtualBox:~/workspace/hermes-tutorial$