#
IF(DEAL_II_BUILD_DIR)
+ SET(DEAL_II_EXECUTABLE_CONFIG "${DEAL_II_PATH}/${DEAL_II_PROJECT_CONFIG_RELDIR}/${DEAL_II_PROJECT_CONFIG_NAME}Executables.cmake")
SET(DEAL_II_TARGET_CONFIG "${DEAL_II_PATH}/${DEAL_II_PROJECT_CONFIG_RELDIR}/${DEAL_II_PROJECT_CONFIG_NAME}BuildTargets.cmake")
ELSE()
SET(DEAL_II_TARGET_CONFIG "${DEAL_II_PATH}/${DEAL_II_PROJECT_CONFIG_RELDIR}/${DEAL_II_PROJECT_CONFIG_NAME}Targets.cmake")
PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${DEAL_II_COMMON_RELDIR}/scripts
)
INSTALL(TARGETS expand_instantiations
- EXPORT ${DEAL_II_PROJECT_CONFIG_NAME}Targets
DESTINATION ${DEAL_II_COMMON_RELDIR}/scripts
COMPONENT compat_files
)
)
INSTALL(TARGETS make_dependencies report_features
- EXPORT ${DEAL_II_PROJECT_CONFIG_NAME}Targets
DESTINATION ${DEAL_II_COMMON_RELDIR}/scripts
COMPONENT compat_files
)
+ EXPORT(TARGETS make_dependencies report_features
+ FILE ${CMAKE_BINARY_DIR}/${DEAL_II_PROJECT_CONFIG_RELDIR}/${DEAL_II_PROJECT_CONFIG_NAME}Executables.cmake
+ APPEND
+ )
ENDIF()
s/JobId.*//;
+# Remove Input File Name:
+
+s/# Input file name:.*//;
+
# Several date and time strings
s/%%Creation Date:.*//;
ENDIF()
INSTALL(TARGETS mesh_converter_exe
- RUNTIME
- DESTINATION ${DEAL_II_EXECUTABLE_RELDIR}
+ RUNTIME DESTINATION ${DEAL_II_EXECUTABLE_RELDIR}
COMPONENT mesh_converter
)
+EXPORT(TARGETS mesh_converter_exe
+ FILE
+ ${CMAKE_BINARY_DIR}/${DEAL_II_PROJECT_CONFIG_RELDIR}/${DEAL_II_PROJECT_CONFIG_NAME}Executables.cmake
+ APPEND
+ )
RUNTIME DESTINATION ${DEAL_II_EXECUTABLE_RELDIR}
COMPONENT parameter_gui
)
+EXPORT(TARGETS parameter_gui_exe
+ FILE ${CMAKE_BINARY_DIR}/${DEAL_II_PROJECT_CONFIG_RELDIR}/${DEAL_II_PROJECT_CONFIG_NAME}Executables.cmake
+ APPEND
+ )
# Glob together a list of all subfolders to set up:
#
FILE(GLOB _categories RELATIVE ${TEST_DIR} ${TEST_DIR}/*)
-SET(_categories all-headers build_tests ${_categories})
+SET(_categories all-headers build_tests mesh_converter ${_categories})
#
# Define a subproject for every enabled category:
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
INCLUDE(${DEAL_II_SOURCE_DIR}/cmake/setup_testsuite.cmake)
PROJECT(testsuite CXX)
-INCLUDE(${DEAL_II_TARGET_CONFIG})
+INCLUDE(${DEAL_II_EXECUTABLE_CONFIG})
#
# Tests for the mesh_converter executable
SET(_category mesh_converter)
-FILE(GLOB _meshes ${CMAKE_CURRENT_SOURCE_DIR}/meshes/?d/*.ucd)
+FILE(GLOB _meshes ${CMAKE_CURRENT_SOURCE_DIR}/meshes/?d/*.inp)
FOREACH(_full_file ${_meshes})
- GET_FILENAME_COMPONENT(_mesh ${_full_file} NAME)
+ GET_FILENAME_COMPONENT(_mesh ${_full_file} NAME_WE)
SET(_test_full ${_category}/${_mesh})
SET(_target ${_mesh})
SET(_diff_target ${_target}.diff)
SET(_test_directory ${CMAKE_CURRENT_BINARY_DIR}/${_target}) # directory to run the test in
- STRING(REGEX REPLACE "\\.ucd$" ".inp" _comparison_file ${_full_file})
+ STRING(REGEX REPLACE "\\.inp$" ".ucd" _comparison_file ${_full_file})
SET(_dim 3)
IF(_full_file MATCHES "meshes/2d")
COMMAND rm -f ${_test_directory}/failing_output
COMMAND touch ${_test_directory}/output
COMMAND
- mesh_converter ${_dim} < ${_full_file} > output
+ mesh_converter_exe ${_dim} ${_full_file} output
|| (mv ${_test_directory}/output
${_test_directory}/failing_output
&& echo "${_test_full}: RUN failed. ------ Result: ${_test_directory}/failing_output"
&& echo "${_test_full}: RUN failed. ------ Partial output:"
&& cat ${_test_directory}/failing_output
&& exit 1)
+ COMMAND
+ ${PERL_EXECUTABLE} -pi ${DEAL_II_SOURCE_DIR}/cmake/scripts/normalize.pl
+ ${_test_directory}/output
WORKING_DIRECTORY ${_test_directory}
- DEPENDS mesh_converter
+ DEPENDS mesh_converter_exe ${DEAL_II_SOURCE_DIR}/cmake/scripts/normalize.pl
)
ADD_CUSTOM_COMMAND(OUTPUT ${_test_directory}/diff
COMMAND rm -f ${_test_directory}/failing_diff
# FEM Mesh Converter
# Mesh type: AVS UCD
-# Input file name: meshes/2d/2d_test.inp
+
133 114 0 0 0
1 -1.00000000e+00 0.00000000e+00 0.00000000e+00
2 -1.00000000e+00 -1.66666700e-01 0.00000000e+00
# FEM Mesh Converter
# Mesh type: AVS UCD
-# Input file name: meshes/2d/quad.inp
+
9 12 0 0 0
1 -1.00000000e+00 1.00000000e+00 0.00000000e+00
2 -1.00000000e+00 0.00000000e+00 0.00000000e+00
# FEM Mesh Converter
# Mesh type: AVS UCD
-# Input file name: meshes/3d/CC_cubit_new.inp
+
54 48 0 0 0
1 -5.00000000e-01 -5.00000000e-01 5.00000000e-01
2 -5.00000000e-01 -5.00000000e-01 0.00000000e+00
# FEM Mesh Converter
# Mesh type: AVS UCD
-# Input file name: meshes/3d/CC_cubit_old.inp
+
54 48 0 0 0
1 -5.00000000e-01 -5.00000000e-01 5.00000000e-01
2 -5.00000000e-01 -5.00000000e-01 0.00000000e+00
# FEM Mesh Converter
# Mesh type: AVS UCD
-# Input file name: meshes/3d/other_simple.inp
+
8 1 0 0 0
1 0.00000000e+00 0.00000000e+00 0.00000000e+00
2 0.00000000e+00 0.00000000e+00 5.00000000e+01
# FEM Mesh Converter
# Mesh type: AVS UCD
-# Input file name: meshes/3d/test_cube_1.inp
+
8 7 0 0 0
1 -1.00000000e+00 -1.00000000e+00 1.00000000e+00
2 -1.00000000e+00 -1.00000000e+00 -1.00000000e+00
# FEM Mesh Converter
# Mesh type: AVS UCD
-# Input file name: meshes/3d/test_cube_pave_1.inp
+
39 48 0 0 0
1 1.00000000e+00 1.00000000e+00 0.00000000e+00
2 5.00000000e-01 1.00000000e+00 0.00000000e+00
# FEM Mesh Converter
# Mesh type: AVS UCD
-# Input file name: meshes/3d/test_cube_two_materials.inp
+
27 32 0 0 0
1 -1.00000000e+00 -1.00000000e+00 1.00000000e+00
2 -1.00000000e+00 -1.00000000e+00 0.00000000e+00