Skip to content
Snippets Groups Projects
Commit 6b82c38c authored by Dominic Kempf's avatar Dominic Kempf
Browse files

[!261] [cmake] Guard the grid analysis tool correctly

Merge branch 'feature/guard-grid-analysis' into 'master'

consistent-grid-orientation is merely a suggestion. dune-perftool should
perfectly build in its absence.

See merge request [dominic/dune-perftool!261]

  [dominic/dune-perftool!261]: gitlab.dune-project.org/dominic/dune-perftool/merge_requests/261
parents f7fd3334 11764155
No related branches found
No related tags found
No related merge requests found
add_executable(analyze_grid analyze_grid.cc)
dune_symlink_to_source_files(FILES test_2d_structured.ini test_3d_structured.ini test_2d_unstructured.ini test_3d_unstructured.ini)
if(consistent-edge-orientation_FOUND)
add_executable(analyze_grid analyze_grid.cc)
dune_symlink_to_source_files(FILES test_2d_structured.ini test_3d_structured.ini test_2d_unstructured.ini test_3d_unstructured.ini)
endif()
......@@ -119,6 +119,9 @@ function(add_generated_executable)
set(ANALYZE_GRID_FILE)
set(ANALYZE_GRID_OPTION)
if(GEN_ANALYZE_GRID)
if(NOT consistent-edge-orientation_FOUND)
message(FATAL_ERROR "Asked for grid analysis, but the module consistent-edge-orientation was not found!")
endif()
set(ANALYZE_GRID_FILE "${GEN_INIFILE}.csv")
set(ANALYZE_GRID_OPTION "--grid-info=${ANALYZE_GRID_FILE}")
add_custom_command(OUTPUT ${ANALYZE_GRID_FILE}
......
......@@ -50,17 +50,18 @@ dune_add_formcompiler_system_test(UFLFILE poisson_3d.ufl
#==================================
# Poisson DG on 'unstructured grid'
#==================================
dune_add_formcompiler_system_test(UFLFILE poisson_dg_2d.ufl
BASENAME sumfact_poisson_dg_2d_unstructured
INIFILE poisson_dg_2d_unstructured.mini
ANALYZE_GRID
)
dune_add_formcompiler_system_test(UFLFILE poisson_dg_3d.ufl
BASENAME sumfact_poisson_dg_3d_unstructured
INIFILE poisson_dg_3d_unstructured.mini
ANALYZE_GRID
)
if(consistent-edge-orientation_FOUND)
dune_add_formcompiler_system_test(UFLFILE poisson_dg_2d.ufl
BASENAME sumfact_poisson_dg_2d_unstructured
INIFILE poisson_dg_2d_unstructured.mini
ANALYZE_GRID
)
dune_add_formcompiler_system_test(UFLFILE poisson_dg_3d.ufl
BASENAME sumfact_poisson_dg_3d_unstructured
INIFILE poisson_dg_3d_unstructured.mini
ANALYZE_GRID
)
endif()
#=============================================
# Poisson DG using FastDGGridOperator in 2D/3D
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment