Skip to content

Commit

Permalink
Merge branch 'main' into feature-fortran-interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Markert committed Sep 27, 2024
2 parents 8116ab9 + 5883272 commit f2e77f3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tutorials/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ function( add_t8_tutorial )
install( TARGETS ${ADD_T8_TUTORIAL_NAME} DESTINATION ${CMAKE_INSTALL_PREFIX}/bin )
endfunction()

#copy tutorial files to the exact same location in the builddir as they are in the source dir
function( copy_tutorial_file TUTORIAL_FILE_NAME_SUBPATH )
configure_file(${CMAKE_CURRENT_LIST_DIR}/${TUTORIAL_FILE_NAME_SUBPATH} ${CMAKE_CURRENT_BINARY_DIR}/${TUTORIAL_FILE_NAME_SUBPATH} COPYONLY)
endfunction()

add_t8_tutorial( NAME t8_step0_helloworld SOURCES general/t8_step0_helloworld.cxx )
add_t8_tutorial( NAME t8_step1_coarsemesh SOURCES general/t8_step1_coarsemesh.cxx )
add_t8_tutorial( NAME t8_step2_uniform_forest SOURCES general/t8_step2_uniform_forest.cxx )
Expand All @@ -38,4 +43,9 @@ add_t8_tutorial( NAME t8_step6_stencil SOURCES general/t8_step6
add_t8_tutorial( NAME t8_step7_interpolation SOURCES general/t8_step7_main.cxx general/t8_step7_interpolation.cxx )
add_t8_tutorial( NAME t8_tutorial_build_cmesh SOURCES general/t8_tutorial_build_cmesh.cxx general/t8_tutorial_build_cmesh_main.cxx)
add_t8_tutorial( NAME t8_tutorial_search SOURCES general/t8_tutorial_search.cxx general/t8_step3_adapt_forest.cxx )
add_t8_tutorial( NAME t8_features_curved_meshes SOURCES features/t8_features_curved_meshes.cxx)
add_t8_tutorial( NAME t8_features_curved_meshes SOURCES features/t8_features_curved_meshes.cxx)

copy_tutorial_file (features/t8_features_curved_meshes_generate_cmesh_hex.geo)
copy_tutorial_file (features/t8_features_curved_meshes_generate_cmesh_quad.geo)
copy_tutorial_file (features/t8_features_curved_meshes_generate_cmesh_tet.geo)
copy_tutorial_file (features/t8_features_curved_meshes_generate_cmesh_tri.geo)

0 comments on commit f2e77f3

Please sign in to comment.