CMAKE_MINIMUM_REQUIRED(VERSION 3.0.2)
-FIND_PACKAGE(deal.II 8.3 REQUIRED
+FIND_PACKAGE(deal.II 9.0 REQUIRED
HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR}
)
#
FIND_PATH(LIBCONFIG_INCLUDE_DIR libconfig.h++
- HINTS ${LIBCONFIG_DIR}
+ HINTS ${LIBCONFIG_DIR} $ENV{LIBCONFIG_DIR}
PATH_SUFFIXES include
)
FIND_LIBRARY(LIBCONFIG_LIBRARY NAMES config++
- HINTS ${LIBCONFIG_DIR}
+ HINTS ${LIBCONFIG_DIR} $ENV{LIBCONFIG_DIR}
+ PATH_SUFFIXES lib${LIB_SUFFIX} lib64 lib
+ )
+
+#
+# Find armadillo
+#
+
+FIND_PATH(ARMADILLO_INCLUDE_DIR armadillo
+ HINTS ${ARMADILLO_DIR} $ENV{ARMADILLO_DIR}
+ PATH_SUFFIXES include
+ )
+
+FIND_LIBRARY(ARMADILLO_LIBRARY NAMES armadillo
+ HINTS ${ARMADILLO_DIR} $ENV{ARMADILLO_DIR}
PATH_SUFFIXES lib${LIB_SUFFIX} lib64 lib
)
)
ENDIF()
+
+IF(${ARMADILLO_INCLUDE_DIR} MATCHES "-NOTFOUND" OR ${ARMADILLO_LIBRARY} MATCHES "-NOTFOUND")
+ MESSAGE(FATAL_ERROR "\n"
+ "*** Could not locate armadillo ***\n\n"
+ "This code gallery program requires armadillo, "
+ "http://arma.sourceforge.net.\n"
+ "Please install it either by hand, or with your favorite package manager"
+ )
+ENDIF()
+
#
# Set up program:
#
SET(TARGET_SRC src/${TARGET}.cc)
DEAL_II_INVOKE_AUTOPILOT()
-TARGET_INCLUDE_DIRECTORIES(${TARGET} PUBLIC ${LIBCONFIG_INCLUDE_DIR})
-TARGET_LINK_LIBRARIES(${TARGET} ${LIBCONFIG_LIBRARY})
+TARGET_INCLUDE_DIRECTORIES(${TARGET}
+ PUBLIC ${LIBCONFIG_INCLUDE_DIR} ${ARMADILLO_INCLUDE_DIR})
+TARGET_LINK_LIBRARIES(${TARGET}
+ ${LIBCONFIG_LIBRARY} ${ARMADILLO_LIBRARY})
// Finds vertices where the radius is zero DIM
bool is_singular = false;
- unsigned int singular_vertex_id = 0;
for (unsigned int f = 0; f < GeometryInfo<dim>::faces_per_cell; ++f)
- {
- if (cell->face(f)->center()[0] == 0)
- {
- is_singular = true;
- singular_vertex_id = f;
- }
- }
+ if (cell->face(f)->center()[0] == 0)
+ is_singular = true;
if (is_singular == false || system_parameters::cylindrical == false)
{