1901 lines
65 KiB
CMake
1901 lines
65 KiB
CMake
cmake_minimum_required(VERSION 3.20)
|
|
|
|
project(FemLite
|
|
VERSION 0.6.1
|
|
LANGUAGES C Fortran
|
|
)
|
|
|
|
enable_testing()
|
|
|
|
if(WIN32 AND CMAKE_Fortran_COMPILER_ID MATCHES "Intel")
|
|
foreach(_femlite_link_flag_var
|
|
CMAKE_EXE_LINKER_FLAGS
|
|
CMAKE_SHARED_LINKER_FLAGS
|
|
CMAKE_MODULE_LINKER_FLAGS
|
|
CMAKE_STATIC_LINKER_FLAGS)
|
|
if(DEFINED ${_femlite_link_flag_var})
|
|
string(REPLACE "/machine:x64" "" _femlite_clean_flags "${${_femlite_link_flag_var}}")
|
|
string(REPLACE "-machine:x64" "" _femlite_clean_flags "${_femlite_clean_flags}")
|
|
string(STRIP "${_femlite_clean_flags}" _femlite_clean_flags)
|
|
set(${_femlite_link_flag_var} "${_femlite_clean_flags}" CACHE STRING "" FORCE)
|
|
endif()
|
|
endforeach()
|
|
endif()
|
|
|
|
include(FortranCInterface)
|
|
FortranCInterface_HEADER(
|
|
"${CMAKE_BINARY_DIR}/femlite_fortran_mangle.h"
|
|
MACRO_NAMESPACE "FC_"
|
|
)
|
|
find_package(Python3 COMPONENTS Interpreter)
|
|
option(FEMLITE_ENABLE_OPENMP "Enable OpenMP acceleration for contact BVH search" ON)
|
|
|
|
set(CMAKE_Fortran_STANDARD 95)
|
|
set(CMAKE_Fortran_STANDARD_REQUIRED ON)
|
|
set(CMAKE_Fortran_MODULE_DIRECTORY "${CMAKE_BINARY_DIR}/mod")
|
|
|
|
function(femlite_apply_fortran_options target_name)
|
|
if(CMAKE_Fortran_COMPILER_ID MATCHES "GNU")
|
|
target_compile_options(${target_name} PRIVATE
|
|
-std=f95
|
|
-fall-intrinsics
|
|
-Wall
|
|
-Wextra
|
|
-Wimplicit-interface
|
|
$<$<CONFIG:Debug>:-g>
|
|
$<$<CONFIG:Debug>:-O0>
|
|
$<$<CONFIG:Debug>:-fcheck=all>
|
|
$<$<CONFIG:Debug>:-fbacktrace>
|
|
)
|
|
elseif(CMAKE_Fortran_COMPILER_ID MATCHES "Intel")
|
|
if(WIN32)
|
|
target_compile_options(${target_name} PRIVATE
|
|
$<$<CONFIG:Debug>:/Od>
|
|
)
|
|
else()
|
|
target_compile_options(${target_name} PRIVATE
|
|
$<$<CONFIG:Debug>:-g>
|
|
$<$<CONFIG:Debug>:-O0>
|
|
)
|
|
endif()
|
|
endif()
|
|
endfunction()
|
|
|
|
add_library(femlite_core STATIC
|
|
src/base/fem_precision.f90
|
|
src/base/fem_error.f90
|
|
src/base/fem_log.f90
|
|
src/base/fem_control.f90
|
|
src/base/fem_tangent_audit_report.f90
|
|
src/solver/fem_nonlinear_lifecycle.f90
|
|
src/element/fem_element_topology.f90
|
|
src/element/fem_geometric_stiffness.f90
|
|
src/mesh/fem_database_state.f90
|
|
src/mesh/fem_database_lookup.f90
|
|
src/mesh/fem_database_lifecycle.f90
|
|
src/boundary/fem_contact_multiplier.f90
|
|
src/boundary/fem_contact_multiplier_report.f90
|
|
src/boundary/fem_contact_mortar_al.f90
|
|
src/boundary/fem_contact_mortar_batch.f90
|
|
src/boundary/fem_contact_mortar_iter.f90
|
|
src/boundary/fem_contact_mortar_report.f90
|
|
src/boundary/fem_contact_mortar_cons.f90
|
|
src/boundary/fem_contact_mortar_tangent.f90
|
|
src/boundary/fem_cyclic_symmetry.f90
|
|
src/boundary/fem_cyclic_constraints.f90
|
|
src/boundary/fem_rigid_cylinder.f90
|
|
src/boundary/fem_rigid_roller.f90
|
|
src/boundary/fem_roller_schedule.f90
|
|
src/boundary/fem_roll_metrics.f90
|
|
src/boundary/fem_cohesive_law.f90
|
|
src/boundary/fem_cohesive_state.f90
|
|
src/boundary/fem_cohesive_metrics.f90
|
|
src/particle/fem_particle_state.f90
|
|
src/particle/fem_particle_search.f90
|
|
src/particle/fem_particle_contact.f90
|
|
src/particle/fem_particle_metrics.f90
|
|
src/particle/fem_particle_bins.f90
|
|
src/particle/fem_particle_step.f90
|
|
src/particle/fem_particle_audit.f90
|
|
src/particle/fem_particle_cloud.f90
|
|
src/particle/fem_particle_cloud_metrics.f90
|
|
src/particle/fem_particle_step_binned.f90
|
|
src/particle/fem_particle_config.f90
|
|
src/particle/fem_particle_config_run.f90
|
|
src/particle/fem_particle_config_report.f90
|
|
src/particle/fem_particle_config_check.f90
|
|
src/particle/fem_particle_config_suite.f90
|
|
src/particle/fem_particle_config_suite_audit.f90
|
|
src/particle/fem_particle_facet.f90
|
|
src/particle/fem_particle_facet_coupling.f90
|
|
src/particle/fem_particle_facet_step.f90
|
|
src/material/fem_material_mohr_coulomb_db.f90
|
|
src/mesh/fem_database_validation.f90
|
|
src/mesh/fem_database.f90
|
|
src/mesh/fem_database_surface.f90
|
|
src/input/fem_inp_defs.f90
|
|
src/input/fem_inp_helpers.f90
|
|
src/input/fem_inp_material_parser.f90
|
|
src/input/fem_inp_contact_parser.f90
|
|
src/input/fem_inp_nlc.f90
|
|
src/input/fem_inp_reader.f90
|
|
src/material/fem_strength_reduction.f90
|
|
src/material/fem_strength_reduction_driver.f90
|
|
src/material/fem_strength_reduction_report.f90
|
|
src/material/fem_material_mohr_coulomb.f90
|
|
src/material/fem_material_mc_driver.f90
|
|
src/material/fem_material_mc_envelope.f90
|
|
src/material/fem_material_j2.f90
|
|
src/element/fem_shell_rotation.f90
|
|
src/element/fem_element_state.f90
|
|
src/element/fem_quadrature.f90
|
|
src/element/fem_shape_functions.f90
|
|
src/element/fem_shell_finite_kinematics.f90
|
|
src/element/fem_shell_finite_tangent.f90
|
|
src/element/fem_element_mass.f90
|
|
src/element/fem_element_internal_helpers.f90
|
|
src/element/fem_shell_section.f90
|
|
src/element/fem_shell_finite_element.f90
|
|
src/element/fem_element_internal.f90
|
|
src/element/fem_element_stiffness.f90
|
|
src/boundary/fem_contact_candidate_cache.f90
|
|
src/solver/fem_sparse_csr.f90
|
|
src/solver/fem_sparse_csr_diagnostics.f90
|
|
src/solver/fem_linear_solver_iterative.f90
|
|
src/solver/fem_linear_solver_dense.f90
|
|
src/solver/fem_linear_solver_dispatch.f90
|
|
src/solver/fem_linear_solver_cg.f90
|
|
src/solver/fem_eigensolver.f90
|
|
src/solver/fem_modal_analysis.f90
|
|
src/solver/fem_buckling_solver.f90
|
|
src/solver/fem_buckling_general.f90
|
|
src/solver/fem_buckling_column.f90
|
|
src/solver/fem_assembly_csr.f90
|
|
src/solver/fem_dload_tangent.f90
|
|
src/solver/fem_implicit_constraints.f90
|
|
src/solver/fem_solver_implicit_support.f90
|
|
src/solver/fem_solver_static_nonlinear.f90
|
|
src/solver/fem_solver_newmark.f90
|
|
src/solver/fem_solver_implicit.f90
|
|
src/coupling/fem_coupling.f90
|
|
src/coupling/fem_particle_coupling.f90
|
|
src/boundary/fem_boundary.f90
|
|
src/boundary/fem_contact_state.f90
|
|
src/boundary/fem_contact_target.f90
|
|
src/boundary/fem_contact_geometry.f90
|
|
src/boundary/fem_contact_search.f90
|
|
src/boundary/fem_contact_history.f90
|
|
src/boundary/fem_contact_friction.f90
|
|
src/boundary/fem_contact_force.f90
|
|
src/boundary/fem_contact_tangent.f90
|
|
src/boundary/fem_contact.f90
|
|
src/boundary/fem_contact_output.f90
|
|
src/output/fem_modal_output.f90
|
|
src/output/fem_output_csv.f90
|
|
src/output/fem_output_vtk.f90
|
|
src/output/fem_restart.f90
|
|
src/base/fem_api_state.f90
|
|
src/base/fem_api_coupling.f90
|
|
src/base/fem_api_diagnostics.f90
|
|
src/base/fem_api_state_access.f90
|
|
src/base/fem_api_stable_dt.f90
|
|
src/base/fem_api.f90
|
|
src/interface/fem_fortran_bridge.f90
|
|
)
|
|
|
|
set_target_properties(femlite_core PROPERTIES
|
|
OUTPUT_NAME FemLite
|
|
)
|
|
|
|
target_include_directories(femlite_core PUBLIC
|
|
"$<BUILD_INTERFACE:${CMAKE_Fortran_MODULE_DIRECTORY}>"
|
|
)
|
|
|
|
femlite_apply_fortran_options(femlite_core)
|
|
|
|
if(FEMLITE_ENABLE_OPENMP)
|
|
find_package(OpenMP)
|
|
if(OpenMP_Fortran_FOUND)
|
|
target_link_libraries(femlite_core PUBLIC OpenMP::OpenMP_Fortran)
|
|
else()
|
|
message(WARNING "OpenMP Fortran was requested but not found; contact BVH search will run serially.")
|
|
endif()
|
|
endif()
|
|
|
|
add_library(femlite_c STATIC
|
|
src/interface/fem_c_api.c
|
|
)
|
|
|
|
target_link_libraries(femlite_c PUBLIC femlite_core)
|
|
target_include_directories(femlite_c PUBLIC
|
|
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
|
|
"$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}>"
|
|
)
|
|
|
|
add_executable(femlite
|
|
src/app/fem_program.f90
|
|
)
|
|
|
|
target_link_libraries(femlite PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(femlite)
|
|
|
|
add_executable(strength_reduction_benchmark
|
|
tools/benchmarks/strength_reduction_benchmark_cli.f90
|
|
tools/benchmarks/strength_reduction_benchmark_report.f90
|
|
tools/benchmarks/strength_reduction_benchmark.f90
|
|
)
|
|
|
|
target_link_libraries(strength_reduction_benchmark PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(strength_reduction_benchmark)
|
|
|
|
add_executable(mc_yield_surface_benchmark
|
|
tools/benchmarks/mc_yield_surface_benchmark.f90
|
|
)
|
|
|
|
target_link_libraries(mc_yield_surface_benchmark PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(mc_yield_surface_benchmark)
|
|
|
|
add_executable(euler_column_buckling_benchmark
|
|
tools/benchmarks/euler_column_buckling_benchmark.f90
|
|
)
|
|
|
|
target_link_libraries(euler_column_buckling_benchmark PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(euler_column_buckling_benchmark)
|
|
|
|
add_executable(corrugated_shell_buckling_benchmark
|
|
tools/benchmarks/corrugated_shell_buckling_benchmark.f90
|
|
)
|
|
|
|
target_link_libraries(corrugated_shell_buckling_benchmark PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(corrugated_shell_buckling_benchmark)
|
|
|
|
add_executable(roll_forming_kinematics_benchmark
|
|
tools/benchmarks/roll_forming_kinematics_benchmark.f90
|
|
)
|
|
|
|
target_link_libraries(roll_forming_kinematics_benchmark PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(roll_forming_kinematics_benchmark)
|
|
|
|
add_executable(roll_forming_springback_benchmark
|
|
tools/benchmarks/roll_forming_springback_benchmark.f90
|
|
)
|
|
|
|
target_link_libraries(roll_forming_springback_benchmark PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(roll_forming_springback_benchmark)
|
|
|
|
add_executable(ball_adhesion_cohesive_benchmark
|
|
tools/benchmarks/ball_adhesion_cohesive_benchmark.f90
|
|
)
|
|
|
|
target_link_libraries(ball_adhesion_cohesive_benchmark PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(ball_adhesion_cohesive_benchmark)
|
|
|
|
add_executable(dynamic_grain_container_benchmark
|
|
tools/benchmarks/dynamic_grain_container_benchmark.f90
|
|
)
|
|
|
|
target_link_libraries(dynamic_grain_container_benchmark PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(dynamic_grain_container_benchmark)
|
|
|
|
add_executable(test_smoke
|
|
tests/unit/test_smoke.f90
|
|
)
|
|
|
|
target_link_libraries(test_smoke PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_smoke)
|
|
|
|
add_executable(test_material_j2
|
|
tests/unit/test_material_j2.f90
|
|
)
|
|
|
|
target_link_libraries(test_material_j2 PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_material_j2)
|
|
|
|
add_executable(test_material_mohr_coulomb
|
|
tests/unit/test_material_mohr_coulomb.f90
|
|
)
|
|
|
|
target_link_libraries(test_material_mohr_coulomb PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_material_mohr_coulomb)
|
|
|
|
add_executable(test_material_mc_driver
|
|
tests/unit/test_material_mc_driver.f90
|
|
)
|
|
|
|
target_link_libraries(test_material_mc_driver PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_material_mc_driver)
|
|
|
|
add_executable(test_material_mc_envelope
|
|
tests/unit/test_material_mc_envelope.f90
|
|
)
|
|
|
|
target_link_libraries(test_material_mc_envelope PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_material_mc_envelope)
|
|
|
|
add_executable(test_strength_reduction
|
|
tests/unit/test_strength_reduction.f90
|
|
)
|
|
|
|
target_link_libraries(test_strength_reduction PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_strength_reduction)
|
|
|
|
add_executable(test_strength_reduction_driver
|
|
tests/unit/test_strength_reduction_driver.f90
|
|
)
|
|
|
|
target_link_libraries(test_strength_reduction_driver PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_strength_reduction_driver)
|
|
|
|
add_executable(test_strength_reduction_report
|
|
tests/unit/test_strength_reduction_report.f90
|
|
)
|
|
|
|
target_link_libraries(test_strength_reduction_report PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_strength_reduction_report)
|
|
|
|
add_executable(test_element_infrastructure
|
|
tests/module/test_element_infrastructure.f90
|
|
)
|
|
|
|
target_link_libraries(test_element_infrastructure PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_element_infrastructure)
|
|
|
|
add_executable(test_facet_topology
|
|
tests/module/test_facet_topology.f90
|
|
)
|
|
|
|
target_link_libraries(test_facet_topology PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_facet_topology)
|
|
|
|
add_executable(test_database_topology
|
|
tests/module/test_database_topology.f90
|
|
)
|
|
|
|
target_link_libraries(test_database_topology PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_database_topology)
|
|
|
|
add_executable(test_element_state
|
|
tests/module/test_element_state.f90
|
|
)
|
|
|
|
target_link_libraries(test_element_state PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_element_state)
|
|
|
|
add_executable(test_sparse_csr
|
|
tests/module/test_sparse_csr.f90
|
|
)
|
|
|
|
target_link_libraries(test_sparse_csr PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_sparse_csr)
|
|
|
|
add_executable(test_csr_diagnostics
|
|
tests/module/test_csr_diagnostics.f90
|
|
)
|
|
|
|
target_link_libraries(test_csr_diagnostics PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_csr_diagnostics)
|
|
|
|
add_executable(test_linear_solver_cg
|
|
tests/module/test_linear_solver_cg.f90
|
|
)
|
|
|
|
target_link_libraries(test_linear_solver_cg PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_linear_solver_cg)
|
|
|
|
add_executable(test_nonlinear_lifecycle
|
|
tests/module/test_nonlinear_lifecycle.f90
|
|
)
|
|
|
|
target_link_libraries(test_nonlinear_lifecycle PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_nonlinear_lifecycle)
|
|
|
|
add_executable(test_eigensolver
|
|
tests/module/test_eigensolver.f90
|
|
)
|
|
|
|
target_link_libraries(test_eigensolver PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_eigensolver)
|
|
|
|
add_executable(test_cyclic_symmetry
|
|
tests/module/test_cyclic_symmetry.f90
|
|
)
|
|
|
|
target_link_libraries(test_cyclic_symmetry PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_cyclic_symmetry)
|
|
|
|
add_executable(test_buckling_support
|
|
tests/module/test_buckling_support.f90
|
|
)
|
|
|
|
target_link_libraries(test_buckling_support PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_buckling_support)
|
|
|
|
add_executable(test_rigid_roller
|
|
tests/module/test_rigid_roller.f90
|
|
)
|
|
|
|
target_link_libraries(test_rigid_roller PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_rigid_roller)
|
|
|
|
add_executable(test_cohesive_contact
|
|
tests/module/test_cohesive_contact.f90
|
|
)
|
|
|
|
target_link_libraries(test_cohesive_contact PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_cohesive_contact)
|
|
|
|
add_executable(test_contact_mortar_al
|
|
tests/module/test_contact_mortar_al.f90
|
|
)
|
|
|
|
target_link_libraries(test_contact_mortar_al PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_contact_mortar_al)
|
|
|
|
add_executable(test_contact_mortar_iter
|
|
tests/module/test_contact_mortar_iter.f90
|
|
)
|
|
|
|
target_link_libraries(test_contact_mortar_iter PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_contact_mortar_iter)
|
|
|
|
add_executable(test_contact_mortar_report
|
|
tests/module/test_contact_mortar_report.f90
|
|
)
|
|
|
|
target_link_libraries(test_contact_mortar_report PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_contact_mortar_report)
|
|
|
|
add_executable(test_contact_mortar_tangent
|
|
tests/module/test_contact_mortar_tangent.f90
|
|
)
|
|
|
|
target_link_libraries(test_contact_mortar_tangent PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_contact_mortar_tangent)
|
|
|
|
add_executable(test_particle_coupling
|
|
tests/module/test_particle_coupling.f90
|
|
)
|
|
|
|
target_link_libraries(test_particle_coupling PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_particle_coupling)
|
|
|
|
add_executable(test_particle_step
|
|
tests/module/test_particle_step.f90
|
|
)
|
|
|
|
target_link_libraries(test_particle_step PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_particle_step)
|
|
|
|
add_executable(test_particle_acceptance
|
|
tests/module/test_particle_acceptance.f90
|
|
)
|
|
|
|
target_link_libraries(test_particle_acceptance PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_particle_acceptance)
|
|
|
|
add_executable(test_particle_bins
|
|
tests/module/test_particle_bins.f90
|
|
)
|
|
|
|
target_link_libraries(test_particle_bins PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_particle_bins)
|
|
|
|
add_executable(test_particle_cloud
|
|
tests/module/test_particle_cloud.f90
|
|
)
|
|
|
|
target_link_libraries(test_particle_cloud PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_particle_cloud)
|
|
|
|
add_executable(test_particle_cloud_metrics
|
|
tests/module/test_particle_cloud_metrics.f90
|
|
)
|
|
|
|
target_link_libraries(test_particle_cloud_metrics PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_particle_cloud_metrics)
|
|
|
|
add_executable(test_particle_step_binned
|
|
tests/module/test_particle_step_binned.f90
|
|
)
|
|
|
|
target_link_libraries(test_particle_step_binned PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_particle_step_binned)
|
|
|
|
add_executable(test_particle_config
|
|
tests/module/test_particle_config.f90
|
|
)
|
|
|
|
target_link_libraries(test_particle_config PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_particle_config)
|
|
|
|
add_executable(test_particle_config_run
|
|
tests/module/test_particle_config_run.f90
|
|
)
|
|
|
|
target_link_libraries(test_particle_config_run PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_particle_config_run)
|
|
|
|
add_executable(test_particle_config_check
|
|
tests/module/test_particle_config_check.f90
|
|
)
|
|
|
|
target_link_libraries(test_particle_config_check PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_particle_config_check)
|
|
|
|
add_executable(test_particle_config_suite
|
|
tests/module/test_particle_config_suite.f90
|
|
)
|
|
|
|
target_link_libraries(test_particle_config_suite PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_particle_config_suite)
|
|
|
|
add_executable(test_particle_facet_coupling
|
|
tests/module/test_particle_facet_coupling.f90
|
|
)
|
|
|
|
target_link_libraries(test_particle_facet_coupling PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_particle_facet_coupling)
|
|
|
|
add_executable(test_particle_fem_coupling
|
|
tests/module/test_particle_fem_coupling.f90
|
|
)
|
|
|
|
target_link_libraries(test_particle_fem_coupling PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_particle_fem_coupling)
|
|
|
|
add_executable(test_assembly_csr
|
|
tests/module/test_assembly_csr.f90
|
|
)
|
|
|
|
target_link_libraries(test_assembly_csr PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_assembly_csr)
|
|
|
|
add_executable(test_element_stiffness
|
|
tests/module/test_element_stiffness.f90
|
|
)
|
|
|
|
target_link_libraries(test_element_stiffness PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_element_stiffness)
|
|
|
|
add_executable(test_quadratic_mass
|
|
tests/module/test_quadratic_mass.f90
|
|
)
|
|
|
|
target_link_libraries(test_quadratic_mass PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_quadratic_mass)
|
|
|
|
add_executable(test_quadratic_internal
|
|
tests/module/test_quadratic_internal.f90
|
|
)
|
|
|
|
target_link_libraries(test_quadratic_internal PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_quadratic_internal)
|
|
|
|
add_executable(test_shell_mass
|
|
tests/module/test_shell_mass.f90
|
|
)
|
|
|
|
target_link_libraries(test_shell_mass PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_shell_mass)
|
|
|
|
add_executable(test_shell_pressure
|
|
tests/module/test_shell_pressure.f90
|
|
)
|
|
|
|
target_link_libraries(test_shell_pressure PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_shell_pressure)
|
|
|
|
add_executable(test_shell_finite_kinematics
|
|
tests/module/test_shell_finite_kinematics.f90
|
|
)
|
|
|
|
target_link_libraries(test_shell_finite_kinematics PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_shell_finite_kinematics)
|
|
|
|
add_executable(test_shell_finite_tangent
|
|
tests/module/test_shell_finite_tangent.f90
|
|
)
|
|
|
|
target_link_libraries(test_shell_finite_tangent PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_shell_finite_tangent)
|
|
|
|
add_executable(test_shell_finite_element
|
|
tests/module/test_shell_finite_element.f90
|
|
)
|
|
|
|
target_link_libraries(test_shell_finite_element PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_shell_finite_element)
|
|
|
|
add_executable(test_shell_internal
|
|
tests/module/test_shell_internal.f90
|
|
)
|
|
|
|
target_link_libraries(test_shell_internal PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_shell_internal)
|
|
|
|
add_executable(test_solver_implicit
|
|
tests/module/test_solver_implicit.f90
|
|
)
|
|
|
|
target_link_libraries(test_solver_implicit PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_solver_implicit)
|
|
|
|
add_executable(test_contact
|
|
tests/module/test_contact.f90
|
|
)
|
|
|
|
target_link_libraries(test_contact PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_contact)
|
|
|
|
add_executable(test_contact_multiplier_diag
|
|
tests/module/test_contact_multiplier_diag.f90
|
|
)
|
|
|
|
target_link_libraries(test_contact_multiplier_diag PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_contact_multiplier_diag)
|
|
|
|
add_executable(test_contact_multiplier_report
|
|
tests/module/test_contact_multiplier_report.f90
|
|
)
|
|
|
|
target_link_libraries(test_contact_multiplier_report PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_contact_multiplier_report)
|
|
|
|
add_executable(test_vtk_output
|
|
tests/module/test_vtk_output.f90
|
|
)
|
|
|
|
target_link_libraries(test_vtk_output PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_vtk_output)
|
|
|
|
add_executable(test_restart
|
|
tests/module/test_restart.f90
|
|
)
|
|
|
|
target_link_libraries(test_restart PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_restart)
|
|
|
|
add_executable(test_c_api
|
|
tests/interface/test_c_api.c
|
|
)
|
|
|
|
target_link_libraries(test_c_api PRIVATE femlite_c)
|
|
|
|
add_executable(test_facet_nodal_c_api
|
|
tests/interface/test_facet_nodal_c_api.c
|
|
)
|
|
|
|
target_link_libraries(test_facet_nodal_c_api PRIVATE femlite_c)
|
|
|
|
add_executable(test_implicit_inp
|
|
tests/module/test_implicit_inp.f90
|
|
)
|
|
|
|
target_link_libraries(test_implicit_inp PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(test_implicit_inp)
|
|
|
|
add_executable(perf_p1
|
|
tests/performance/perf_p1.f90
|
|
)
|
|
|
|
target_link_libraries(perf_p1 PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(perf_p1)
|
|
|
|
add_executable(perf_contact_pair
|
|
tests/performance/perf_contact_pair.f90
|
|
)
|
|
|
|
target_link_libraries(perf_contact_pair PRIVATE femlite_core)
|
|
femlite_apply_fortran_options(perf_contact_pair)
|
|
|
|
# Some output/restart tests use this source-relative scratch directory.
|
|
file(MAKE_DIRECTORY "${CMAKE_SOURCE_DIR}/build-wsl-debug")
|
|
|
|
add_test(NAME smoke COMMAND test_smoke)
|
|
set_tests_properties(smoke PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME material_j2 COMMAND test_material_j2)
|
|
set_tests_properties(material_j2 PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME material_mohr_coulomb COMMAND test_material_mohr_coulomb)
|
|
set_tests_properties(material_mohr_coulomb PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME material_mc_driver COMMAND test_material_mc_driver)
|
|
set_tests_properties(material_mc_driver PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME material_mc_envelope COMMAND test_material_mc_envelope)
|
|
set_tests_properties(material_mc_envelope PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME strength_reduction COMMAND test_strength_reduction)
|
|
set_tests_properties(strength_reduction PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME strength_reduction_driver
|
|
COMMAND test_strength_reduction_driver
|
|
)
|
|
set_tests_properties(strength_reduction_driver PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME strength_reduction_report
|
|
COMMAND test_strength_reduction_report
|
|
)
|
|
set_tests_properties(strength_reduction_report PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME element_infrastructure COMMAND test_element_infrastructure)
|
|
set_tests_properties(element_infrastructure PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME facet_topology COMMAND test_facet_topology)
|
|
set_tests_properties(facet_topology PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME database_topology COMMAND test_database_topology)
|
|
set_tests_properties(database_topology PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME element_state COMMAND test_element_state)
|
|
set_tests_properties(element_state PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME sparse_csr COMMAND test_sparse_csr)
|
|
set_tests_properties(sparse_csr PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME csr_diagnostics COMMAND test_csr_diagnostics)
|
|
set_tests_properties(csr_diagnostics PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME linear_solver_cg COMMAND test_linear_solver_cg)
|
|
set_tests_properties(linear_solver_cg PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME nonlinear_lifecycle COMMAND test_nonlinear_lifecycle)
|
|
set_tests_properties(nonlinear_lifecycle PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME eigensolver COMMAND test_eigensolver)
|
|
set_tests_properties(eigensolver PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME cyclic_symmetry COMMAND test_cyclic_symmetry)
|
|
set_tests_properties(cyclic_symmetry PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME buckling_support COMMAND test_buckling_support)
|
|
set_tests_properties(buckling_support PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME rigid_roller COMMAND test_rigid_roller)
|
|
set_tests_properties(rigid_roller PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME cohesive_contact COMMAND test_cohesive_contact)
|
|
set_tests_properties(cohesive_contact PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME contact_mortar_al COMMAND test_contact_mortar_al)
|
|
set_tests_properties(contact_mortar_al PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME contact_mortar_iter COMMAND test_contact_mortar_iter)
|
|
set_tests_properties(contact_mortar_iter PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME contact_mortar_report COMMAND test_contact_mortar_report)
|
|
set_tests_properties(contact_mortar_report PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME contact_mortar_tangent COMMAND test_contact_mortar_tangent)
|
|
set_tests_properties(contact_mortar_tangent PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME particle_coupling COMMAND test_particle_coupling)
|
|
set_tests_properties(particle_coupling PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME particle_step COMMAND test_particle_step)
|
|
set_tests_properties(particle_step PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME particle_acceptance COMMAND test_particle_acceptance)
|
|
set_tests_properties(particle_acceptance PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME particle_bins COMMAND test_particle_bins)
|
|
set_tests_properties(particle_bins PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME particle_cloud COMMAND test_particle_cloud)
|
|
set_tests_properties(particle_cloud PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME particle_cloud_metrics COMMAND test_particle_cloud_metrics)
|
|
set_tests_properties(particle_cloud_metrics PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME particle_step_binned COMMAND test_particle_step_binned)
|
|
set_tests_properties(particle_step_binned PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME particle_config COMMAND test_particle_config)
|
|
set_tests_properties(particle_config PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME particle_config_run COMMAND test_particle_config_run)
|
|
set_tests_properties(particle_config_run PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME particle_config_check COMMAND test_particle_config_check)
|
|
set_tests_properties(particle_config_check PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME particle_config_suite COMMAND test_particle_config_suite)
|
|
set_tests_properties(particle_config_suite PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME particle_facet_coupling COMMAND test_particle_facet_coupling)
|
|
set_tests_properties(particle_facet_coupling PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME particle_fem_coupling COMMAND test_particle_fem_coupling)
|
|
set_tests_properties(particle_fem_coupling PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME assembly_csr COMMAND test_assembly_csr)
|
|
set_tests_properties(assembly_csr PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME element_stiffness COMMAND test_element_stiffness)
|
|
set_tests_properties(element_stiffness PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME quadratic_mass COMMAND test_quadratic_mass)
|
|
set_tests_properties(quadratic_mass PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME quadratic_internal COMMAND test_quadratic_internal)
|
|
set_tests_properties(quadratic_internal PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME shell_mass COMMAND test_shell_mass)
|
|
set_tests_properties(shell_mass PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME shell_pressure COMMAND test_shell_pressure)
|
|
set_tests_properties(shell_pressure PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME shell_finite_kinematics COMMAND test_shell_finite_kinematics)
|
|
set_tests_properties(shell_finite_kinematics PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME shell_finite_tangent COMMAND test_shell_finite_tangent)
|
|
set_tests_properties(shell_finite_tangent PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME shell_finite_element COMMAND test_shell_finite_element)
|
|
set_tests_properties(shell_finite_element PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME shell_internal COMMAND test_shell_internal)
|
|
set_tests_properties(shell_internal PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME solver_implicit COMMAND test_solver_implicit)
|
|
set_tests_properties(solver_implicit PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME contact COMMAND test_contact)
|
|
set_tests_properties(contact PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
RUN_SERIAL TRUE
|
|
)
|
|
|
|
add_test(NAME contact_multiplier_diag COMMAND test_contact_multiplier_diag)
|
|
set_tests_properties(contact_multiplier_diag PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME contact_multiplier_report COMMAND test_contact_multiplier_report)
|
|
set_tests_properties(contact_multiplier_report PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME contact_omp1 COMMAND test_contact)
|
|
set_tests_properties(contact_omp1 PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
ENVIRONMENT "OMP_NUM_THREADS=1"
|
|
RUN_SERIAL TRUE
|
|
)
|
|
|
|
add_test(NAME contact_omp4 COMMAND test_contact)
|
|
set_tests_properties(contact_omp4 PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
ENVIRONMENT "OMP_NUM_THREADS=4"
|
|
RUN_SERIAL TRUE
|
|
)
|
|
|
|
add_test(NAME vtk_output COMMAND test_vtk_output)
|
|
set_tests_properties(vtk_output PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME restart COMMAND test_restart)
|
|
set_tests_properties(restart PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME c_api COMMAND test_c_api)
|
|
set_tests_properties(c_api PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME facet_nodal_c_api COMMAND test_facet_nodal_c_api)
|
|
set_tests_properties(facet_nodal_c_api PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME perf_contact_pair_smoke COMMAND perf_contact_pair 32 1)
|
|
set_tests_properties(perf_contact_pair_smoke PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "performance_smoke"
|
|
)
|
|
|
|
add_test(NAME perf_contact_pair_medium COMMAND perf_contact_pair 64 1)
|
|
set_tests_properties(perf_contact_pair_medium PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "performance_smoke"
|
|
)
|
|
|
|
add_test(NAME perf_contact_pair_p1 COMMAND perf_contact_pair 128 1)
|
|
set_tests_properties(perf_contact_pair_p1 PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "performance_smoke"
|
|
TIMEOUT 60
|
|
)
|
|
|
|
if(Python3_Interpreter_FOUND)
|
|
add_test(NAME source_size
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/check_source_size.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"--warn-file-lines" "1500"
|
|
"--max-file-lines" "2000"
|
|
"--warn-routine-lines" "100"
|
|
"--max-routine-lines" "128"
|
|
"--exceptions" "tests/source_size_exceptions.txt"
|
|
)
|
|
set_tests_properties(source_size PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME examples_layout
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/check_examples_layout.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
)
|
|
set_tests_properties(examples_layout PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke"
|
|
)
|
|
|
|
add_test(NAME perf_contact_pair_omp_consistency
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/check_perf_contact_pair_omp.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:perf_contact_pair>"
|
|
)
|
|
set_tests_properties(perf_contact_pair_omp_consistency PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "performance_smoke"
|
|
RUN_SERIAL TRUE
|
|
)
|
|
|
|
add_test(NAME python_debug
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/test_python_debug.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
)
|
|
set_tests_properties(python_debug PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME example_shell_patch_s3_smoke
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
"shell_patch_s3"
|
|
"examples/shell_patch_test/shell_patch_s3.inp"
|
|
"static-linear"
|
|
)
|
|
set_tests_properties(example_shell_patch_s3_smoke PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke"
|
|
)
|
|
|
|
add_test(NAME example_shell_patch_s4_smoke
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
"shell_patch_s4"
|
|
"examples/shell_patch_test/shell_patch_s4.inp"
|
|
"static-linear"
|
|
)
|
|
set_tests_properties(example_shell_patch_s4_smoke PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke"
|
|
)
|
|
|
|
add_test(NAME example_scordelis_lo_s4_smoke
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
"scordelis_lo_s4"
|
|
"examples/scordelis_lo_roof/scordelis_lo_s4_static.inp"
|
|
"static-linear"
|
|
"--output-interval" "1"
|
|
"--probe-node" "4"
|
|
"--probe-field" "uz"
|
|
"--min-abs-displacement" "0.05"
|
|
"--sign" "negative"
|
|
)
|
|
set_tests_properties(example_scordelis_lo_s4_smoke PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke"
|
|
TIMEOUT 60
|
|
)
|
|
|
|
add_test(NAME example_scordelis_lo_s3_smoke
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
"scordelis_lo_s3"
|
|
"examples/scordelis_lo_roof/scordelis_lo_s3_static.inp"
|
|
"static-linear"
|
|
"--output-interval" "1"
|
|
"--probe-node" "4"
|
|
"--probe-field" "uz"
|
|
"--min-abs-displacement" "0.05"
|
|
"--sign" "negative"
|
|
)
|
|
set_tests_properties(example_scordelis_lo_s3_smoke PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke"
|
|
TIMEOUT 60
|
|
)
|
|
|
|
add_test(NAME example_pressure_pulse_s4_smoke
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
"pressure_pulse_s4"
|
|
"examples/clamped_square_plate_pressure_pulse/clamped_square_plate_pressure_pulse_s4.inp"
|
|
"run"
|
|
"--dynamic-steps" "100"
|
|
"--output-interval" "0"
|
|
)
|
|
set_tests_properties(example_pressure_pulse_s4_smoke PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke"
|
|
)
|
|
|
|
add_test(NAME example_rigid_impact_s3_smoke
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
"rigid_impact_s3"
|
|
"examples/rigid_sphere_impact_plate/rigid_sphere_impact_plate_s3.inp"
|
|
"run"
|
|
"--dynamic-steps" "200"
|
|
"--output-interval" "200"
|
|
"--require-contact"
|
|
)
|
|
set_tests_properties(example_rigid_impact_s3_smoke PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke"
|
|
TIMEOUT 60
|
|
)
|
|
|
|
add_test(NAME example_rigid_impact_s4_smoke
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
"rigid_impact_s4"
|
|
"examples/rigid_sphere_impact_plate/rigid_sphere_impact_plate_s4.inp"
|
|
"run"
|
|
"--dynamic-steps" "200"
|
|
"--output-interval" "200"
|
|
"--require-contact"
|
|
)
|
|
set_tests_properties(example_rigid_impact_s4_smoke PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke"
|
|
TIMEOUT 60
|
|
)
|
|
|
|
add_test(NAME example_contact_two_blocks_compression_benchmark
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
contact_two_blocks_compression
|
|
examples/contact_two_blocks_compression/two_blocks_compression.inp
|
|
run
|
|
--output-interval 10
|
|
--require-contact
|
|
--check-script examples/contact_two_blocks_compression/check_contact_results.py
|
|
)
|
|
set_tests_properties(example_contact_two_blocks_compression_benchmark PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke;benchmark"
|
|
TIMEOUT 60
|
|
)
|
|
|
|
add_test(NAME example_contact_block_sliding_benchmark
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
contact_block_sliding
|
|
examples/contact_block_sliding/block_sliding_friction.inp
|
|
run
|
|
--output-interval 10
|
|
--require-contact
|
|
--require-friction
|
|
--check-script examples/contact_block_sliding/check_contact_results.py
|
|
)
|
|
set_tests_properties(example_contact_block_sliding_benchmark PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke;benchmark"
|
|
TIMEOUT 60
|
|
)
|
|
|
|
add_test(NAME example_shell_shell_contact_benchmark
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
shell_shell_contact
|
|
examples/shell_shell_contact/shell_shell_contact.inp
|
|
run
|
|
--output-interval 1
|
|
--require-contact
|
|
--check-script examples/shell_shell_contact/check_contact_results.py
|
|
)
|
|
set_tests_properties(example_shell_shell_contact_benchmark PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke;benchmark"
|
|
TIMEOUT 60
|
|
)
|
|
|
|
add_test(NAME example_shell_solid_contact_benchmark
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
shell_solid_contact
|
|
examples/shell_solid_contact/shell_solid_contact.inp
|
|
run
|
|
--output-interval 1
|
|
--require-contact
|
|
--check-script examples/shell_solid_contact/check_contact_results.py
|
|
)
|
|
set_tests_properties(example_shell_solid_contact_benchmark PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke;benchmark"
|
|
TIMEOUT 60
|
|
)
|
|
|
|
add_test(NAME example_elliptic_membrane_smoke
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
elliptic_membrane
|
|
examples/elliptic_membrane/elliptic_membrane_s4_static.inp
|
|
static-linear
|
|
)
|
|
set_tests_properties(example_elliptic_membrane_smoke PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke"
|
|
)
|
|
|
|
add_test(NAME example_membrane_uniaxial_smoke
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
membrane_uniaxial
|
|
examples/membrane_uniaxial_stretching/membrane_uniaxial_s4_static.inp
|
|
static-linear
|
|
)
|
|
set_tests_properties(example_membrane_uniaxial_smoke PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke"
|
|
)
|
|
|
|
add_test(NAME example_shell_solid_connection_smoke
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
shell_solid_connection
|
|
examples/shell_solid_connection/shell_solid_connection_static.inp
|
|
static-linear
|
|
)
|
|
set_tests_properties(example_shell_solid_connection_smoke PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke"
|
|
)
|
|
|
|
add_test(NAME example_strength_reduction_benchmark
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
examples/strengthReduction/check_strength_reduction_results.py
|
|
"${CMAKE_BINARY_DIR}/example_benchmark/strength_reduction"
|
|
)
|
|
set_tests_properties(example_strength_reduction_benchmark PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "benchmark"
|
|
TIMEOUT 120
|
|
)
|
|
|
|
add_test(NAME example_mc_yield_surface_benchmark
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
examples/mohr_coulomb_yield_surface/check_mc_yield_surface_results.py
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:mc_yield_surface_benchmark>"
|
|
"${CMAKE_BINARY_DIR}/example_benchmark/mc_yield_surface"
|
|
)
|
|
set_tests_properties(example_mc_yield_surface_benchmark PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "benchmark"
|
|
TIMEOUT 60
|
|
)
|
|
|
|
add_test(NAME example_golf_ball_impact_smoke
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
golf_ball_impact
|
|
examples/golfBallImpact/golf_ball_impact_s4_short.inp
|
|
run
|
|
--dynamic-steps 200
|
|
--output-interval 200
|
|
--require-contact
|
|
)
|
|
set_tests_properties(example_golf_ball_impact_smoke PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke"
|
|
TIMEOUT 60
|
|
)
|
|
|
|
add_test(NAME example_node_analytical_contact_smoke
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
node_analytical_contact
|
|
examples/node_analytical_plane_contact/node_analytical_plane_contact.inp
|
|
run
|
|
--dynamic-steps 1
|
|
--output-interval 1
|
|
--require-contact
|
|
)
|
|
set_tests_properties(example_node_analytical_contact_smoke PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke"
|
|
)
|
|
|
|
add_test(NAME example_block_on_arch_contact_smoke
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
"block_on_arch_contact"
|
|
"examples/block_on_arch/block_on_arch_contact_smoke.inp"
|
|
"run"
|
|
--dynamic-steps 1
|
|
--output-interval 1
|
|
--require-contact
|
|
)
|
|
set_tests_properties(example_block_on_arch_contact_smoke PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke"
|
|
)
|
|
|
|
add_test(NAME example_cylinder_roller_contact_smoke
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
"cylinder_roller_contact"
|
|
"examples/cylinder_roller_contact/cylinder_roller_contact_smoke.inp"
|
|
"run"
|
|
--dynamic-steps 5
|
|
--output-interval 5
|
|
--require-contact
|
|
)
|
|
set_tests_properties(example_cylinder_roller_contact_smoke PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke"
|
|
)
|
|
|
|
add_test(NAME example_sliding_wedge_friction_smoke
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
"sliding_wedge_friction"
|
|
"examples/sliding_wedge/sliding_wedge_friction_smoke.inp"
|
|
"run"
|
|
--dynamic-steps 20
|
|
--output-interval 10
|
|
--require-contact
|
|
--require-friction
|
|
)
|
|
set_tests_properties(example_sliding_wedge_friction_smoke PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke"
|
|
)
|
|
|
|
add_test(NAME example_roll_forming_friction_smoke
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
"roll_forming_friction"
|
|
"examples/roll_forming/roll_forming_friction_smoke.inp"
|
|
"run"
|
|
--dynamic-steps 20
|
|
--output-interval 10
|
|
--require-contact
|
|
--require-friction
|
|
)
|
|
set_tests_properties(example_roll_forming_friction_smoke PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke"
|
|
)
|
|
|
|
add_test(NAME example_roll_forming_kinematics_benchmark
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/examples/roll_forming/check_roller_kinematics.py"
|
|
"${CMAKE_BINARY_DIR}"
|
|
"${CMAKE_BINARY_DIR}/example_smoke/roll_forming_kinematics"
|
|
)
|
|
set_tests_properties(example_roll_forming_kinematics_benchmark PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke;benchmark"
|
|
)
|
|
|
|
add_test(NAME example_roll_forming_springback_benchmark
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/examples/roll_forming/check_springback_results.py"
|
|
"${CMAKE_BINARY_DIR}"
|
|
"${CMAKE_BINARY_DIR}/example_smoke/roll_forming_springback"
|
|
)
|
|
set_tests_properties(example_roll_forming_springback_benchmark PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke;benchmark"
|
|
)
|
|
|
|
add_test(NAME example_falling_objects_contact_smoke
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
"falling_objects_contact"
|
|
"examples/falling_objects/falling_objects_contact_smoke.inp"
|
|
"run"
|
|
--dynamic-steps 20
|
|
--output-interval 10
|
|
--require-contact
|
|
)
|
|
set_tests_properties(example_falling_objects_contact_smoke PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke"
|
|
)
|
|
|
|
add_test(NAME example_ball_adhesion_contact_smoke
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
"ball_adhesion_contact"
|
|
"examples/ball_adhesion_decohesion/ball_adhesion_contact_smoke.inp"
|
|
"run"
|
|
--dynamic-steps 20
|
|
--output-interval 10
|
|
--require-contact
|
|
)
|
|
set_tests_properties(example_ball_adhesion_contact_smoke PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke"
|
|
)
|
|
|
|
add_test(NAME example_ball_adhesion_cohesive_benchmark
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/examples/ball_adhesion_decohesion/check_cohesive_results.py"
|
|
"${CMAKE_BINARY_DIR}"
|
|
"${CMAKE_BINARY_DIR}/example_smoke/ball_adhesion_cohesive"
|
|
)
|
|
set_tests_properties(example_ball_adhesion_cohesive_benchmark PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke;benchmark"
|
|
)
|
|
|
|
add_test(NAME example_buckling_corrugated_shell_benchmark
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/examples/buckling_corrugated_shell/check_buckling_results.py"
|
|
"${CMAKE_BINARY_DIR}"
|
|
"${CMAKE_BINARY_DIR}/example_smoke/buckling_corrugated_shell"
|
|
)
|
|
set_tests_properties(example_buckling_corrugated_shell_benchmark PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke;benchmark"
|
|
)
|
|
|
|
add_test(NAME example_euler_column_buckling_benchmark
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/examples/euler_column_buckling/check_buckling_results.py"
|
|
"${CMAKE_BINARY_DIR}"
|
|
"${CMAKE_BINARY_DIR}/example_smoke/euler_column_buckling"
|
|
)
|
|
set_tests_properties(example_euler_column_buckling_benchmark PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke;benchmark"
|
|
)
|
|
|
|
add_test(NAME example_dynamic_grain_container_smoke
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
"dynamic_grain_container"
|
|
"examples/Dynamic_Grain_Packing_of_a_Flexible_Container/flexible_container_ground_contact_smoke.inp"
|
|
"run"
|
|
--dynamic-steps 5
|
|
--output-interval 5
|
|
--require-contact
|
|
)
|
|
set_tests_properties(example_dynamic_grain_container_smoke PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke"
|
|
)
|
|
|
|
add_test(NAME example_dynamic_grain_container_benchmark
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/examples/Dynamic_Grain_Packing_of_a_Flexible_Container/check_grain_container_results.py"
|
|
"${CMAKE_BINARY_DIR}"
|
|
"${CMAKE_BINARY_DIR}/example_smoke/dynamic_grain_container_benchmark"
|
|
)
|
|
set_tests_properties(example_dynamic_grain_container_benchmark PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke;benchmark"
|
|
)
|
|
|
|
add_test(NAME example_thick_plate_le10_benchmark
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/examples/thick_plate/check_thick_plate_results.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}/example_benchmark/thick_plate_le10"
|
|
)
|
|
set_tests_properties(example_thick_plate_le10_benchmark PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "benchmark"
|
|
)
|
|
|
|
add_test(NAME example_membrane_airbag_pressure_smoke
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
"membrane_airbag_pressure"
|
|
"examples/membrane_airbag_inflation/membrane_airbag_pressure_s4_static.inp"
|
|
"static-linear"
|
|
--output-interval 1
|
|
--probe-node 5
|
|
--probe-field uz
|
|
--min-abs-displacement 1.0e-12
|
|
--sign negative
|
|
)
|
|
set_tests_properties(example_membrane_airbag_pressure_smoke PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke"
|
|
)
|
|
|
|
add_test(NAME example_spherical_cap_point_load_benchmark
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/examples/spherical_cap_with_central_point_load/check_spherical_cap_results.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}/example_benchmark/spherical_cap_point_load"
|
|
)
|
|
set_tests_properties(example_spherical_cap_point_load_benchmark PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "benchmark"
|
|
)
|
|
|
|
add_test(NAME example_blasting_rock_pulse_smoke
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
"blasting_rock_pulse"
|
|
"examples/blasting_rock/blasting_rock_pulse_smoke.inp"
|
|
"run"
|
|
--dynamic-steps 5
|
|
--output-interval 5
|
|
--probe-node 1
|
|
--probe-field uz
|
|
--min-abs-displacement 1.0e-12
|
|
--sign positive
|
|
)
|
|
set_tests_properties(example_blasting_rock_pulse_smoke PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke"
|
|
)
|
|
|
|
add_test(NAME example_nonlinear_harmonic_membrane_smoke
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
"nonlinear_harmonic_membrane"
|
|
"examples/nonlinear_harmonic/nonlinear_harmonic_membrane_smoke.inp"
|
|
"run"
|
|
--dynamic-steps 5
|
|
--output-interval 5
|
|
--probe-node 5
|
|
--probe-field uz
|
|
--min-abs-displacement 1.0e-12
|
|
--sign negative
|
|
)
|
|
set_tests_properties(example_nonlinear_harmonic_membrane_smoke PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke"
|
|
)
|
|
|
|
add_test(NAME example_layered_shell_tension_smoke
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
"layered_shell_tension"
|
|
"examples/failure_prediction_in_a_layered_shell/layered_shell_tension_smoke.inp"
|
|
"static-linear"
|
|
--output-interval 1
|
|
--probe-node 2
|
|
--probe-field ux
|
|
--min-abs-displacement 1.0e-12
|
|
--sign positive
|
|
)
|
|
set_tests_properties(example_layered_shell_tension_smoke PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke"
|
|
)
|
|
|
|
add_test(NAME example_two_arches_contact_benchmark
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
"two_arches_benchmark"
|
|
"examples/two_arches/two_arches_benchmark.inp"
|
|
"run"
|
|
--dynamic-steps 2
|
|
--output-interval 1
|
|
--check-script examples/two_arches/check_two_arches_results.py
|
|
)
|
|
set_tests_properties(example_two_arches_contact_benchmark PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "benchmark"
|
|
)
|
|
|
|
add_test(NAME example_two_arches_reference_point_prepare
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/examples/two_arches/run_two_arches_reference_point.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}/example_smoke/two_arches_reference_point_prepare"
|
|
--prepare-only
|
|
)
|
|
set_tests_properties(example_two_arches_reference_point_prepare PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "benchmark"
|
|
)
|
|
|
|
add_test(NAME example_two_arches_reference_point
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/examples/two_arches/run_two_arches_reference_point.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}/example_smoke/two_arches_reference_point"
|
|
)
|
|
set_tests_properties(example_two_arches_reference_point PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "benchmark"
|
|
)
|
|
|
|
add_test(NAME example_two_arches_reference_point_check
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/examples/two_arches/check_two_arches_reference_point.py"
|
|
"${CMAKE_BINARY_DIR}/example_smoke/two_arches_reference_point"
|
|
)
|
|
set_tests_properties(example_two_arches_reference_point_check PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
DEPENDS example_two_arches_reference_point
|
|
LABELS "benchmark"
|
|
)
|
|
|
|
add_test(NAME example_pinched_hemisphere_smoke
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/tools/testing/run_example_smoke.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}"
|
|
"pinched_hemisphere"
|
|
"examples/pinched_hemispherical_shell/pinched_hemisphere_s4_dynamic_smoke.inp"
|
|
"run"
|
|
--dynamic-steps 5
|
|
--output-interval 5
|
|
--probe-node 7
|
|
--probe-field ux
|
|
--min-abs-displacement 1.0e-12
|
|
--sign negative
|
|
)
|
|
set_tests_properties(example_pinched_hemisphere_smoke PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "example_smoke"
|
|
)
|
|
|
|
add_test(NAME example_stress_dependent_elasticity_benchmark
|
|
COMMAND "${Python3_EXECUTABLE}"
|
|
"${CMAKE_SOURCE_DIR}/examples/stress_dependent_elasticity/check_stress_dependent_results.py"
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"$<TARGET_FILE:femlite>"
|
|
"${CMAKE_BINARY_DIR}/example_benchmark/stress_dependent_elasticity"
|
|
)
|
|
set_tests_properties(example_stress_dependent_elasticity_benchmark PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
LABELS "benchmark"
|
|
)
|
|
endif()
|
|
|
|
add_test(NAME implicit_inp COMMAND test_implicit_inp)
|
|
set_tests_properties(implicit_inp PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME cli_implicit_linear
|
|
COMMAND femlite tests/data/c3d4_implicit_pull.inp --implicit-linear --output-interval 0
|
|
)
|
|
set_tests_properties(cli_implicit_linear PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/cli_static_linear_output")
|
|
add_test(NAME cli_static_linear
|
|
COMMAND femlite tests/data/c3d4_static_pull.inp --static-linear
|
|
--output-dir "${CMAKE_BINARY_DIR}/cli_static_linear_output"
|
|
)
|
|
set_tests_properties(cli_static_linear PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/cli_static_nonlinear_output")
|
|
add_test(NAME cli_static_nonlinear
|
|
COMMAND femlite tests/data/c3d4_static_nonlinear_elastic.inp
|
|
--static-nonlinear
|
|
--output-dir "${CMAKE_BINARY_DIR}/cli_static_nonlinear_output"
|
|
--output-interval 1
|
|
)
|
|
set_tests_properties(cli_static_nonlinear PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/cli_implicit_newmark_output")
|
|
add_test(NAME cli_implicit_newmark
|
|
COMMAND femlite tests/data/c3d4_implicit_newmark_pull.inp
|
|
--implicit-newmark
|
|
--output-dir "${CMAKE_BINARY_DIR}/cli_implicit_newmark_output"
|
|
--output-interval 1
|
|
)
|
|
set_tests_properties(cli_implicit_newmark PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/cli_implicit_newmark_nonlinear_output")
|
|
add_test(NAME cli_implicit_newmark_nonlinear
|
|
COMMAND femlite tests/data/c3d4_implicit_newmark_pull.inp
|
|
--implicit-newmark-nonlinear
|
|
--output-dir "${CMAKE_BINARY_DIR}/cli_implicit_newmark_nonlinear_output"
|
|
--output-interval 1
|
|
)
|
|
set_tests_properties(cli_implicit_newmark_nonlinear PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
add_test(NAME cli_buckling_generic_dense
|
|
COMMAND "${CMAKE_COMMAND}"
|
|
-DFEMLITE_EXE=$<TARGET_FILE:femlite>
|
|
-DINPUT_FILE=${CMAKE_SOURCE_DIR}/tests/data/c3d4_buckling_step.inp
|
|
-DWORKING_DIRECTORY=${CMAKE_SOURCE_DIR}
|
|
-DOUT_DIR=${CMAKE_BINARY_DIR}/cli_buckling_generic_output/nested
|
|
-P ${CMAKE_SOURCE_DIR}/tests/cmake/run_buckling_generic_output.cmake
|
|
)
|
|
set_tests_properties(cli_buckling_generic_dense PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
)
|
|
|
|
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/cli_buckling_static_preload_output")
|
|
add_test(NAME cli_buckling_static_preload_dense
|
|
COMMAND femlite tests/data/c3d4_buckling_static_preload.inp
|
|
--output-dir "${CMAKE_BINARY_DIR}/cli_buckling_static_preload_output"
|
|
)
|
|
set_tests_properties(cli_buckling_static_preload_dense PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
PASS_REGULAR_EXPRESSION "Buckling preload static solve completed"
|
|
)
|
|
|
|
add_test(NAME cli_buckling_solid_preload_dense
|
|
COMMAND femlite tests/data/c3d4_buckling_solid_preload.inp
|
|
--output-dir "${CMAKE_BINARY_DIR}/cli_buckling_solid_preload_output"
|
|
)
|
|
set_tests_properties(cli_buckling_solid_preload_dense PROPERTIES
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
PASS_REGULAR_EXPRESSION "Buckling preload static solve completed"
|
|
)
|
|
|
|
set(_femlite_v5_acceptance_tests
|
|
linear_solver_cg
|
|
csr_diagnostics
|
|
solver_implicit
|
|
implicit_inp
|
|
c_api
|
|
cli_implicit_linear
|
|
cli_static_linear
|
|
cli_static_nonlinear
|
|
cli_implicit_newmark
|
|
cli_implicit_newmark_nonlinear
|
|
cli_buckling_generic_dense
|
|
cli_buckling_static_preload_dense
|
|
cli_buckling_solid_preload_dense
|
|
material_mohr_coulomb
|
|
material_mc_driver
|
|
material_mc_envelope
|
|
example_mc_yield_surface_benchmark
|
|
example_strength_reduction_benchmark
|
|
buckling_support
|
|
cyclic_symmetry
|
|
example_euler_column_buckling_benchmark
|
|
example_buckling_corrugated_shell_benchmark
|
|
contact_mortar_al
|
|
contact_mortar_iter
|
|
contact_mortar_report
|
|
contact_mortar_tangent
|
|
restart
|
|
example_contact_two_blocks_compression_benchmark
|
|
example_contact_block_sliding_benchmark
|
|
example_shell_shell_contact_benchmark
|
|
example_shell_solid_contact_benchmark
|
|
rigid_roller
|
|
example_roll_forming_kinematics_benchmark
|
|
example_roll_forming_springback_benchmark
|
|
cohesive_contact
|
|
example_ball_adhesion_cohesive_benchmark
|
|
particle_acceptance
|
|
particle_fem_coupling
|
|
example_dynamic_grain_container_benchmark
|
|
)
|
|
|
|
foreach(_femlite_test IN LISTS _femlite_v5_acceptance_tests)
|
|
if(TEST ${_femlite_test})
|
|
set_property(TEST ${_femlite_test} APPEND PROPERTY LABELS v5_acceptance)
|
|
endif()
|
|
endforeach()
|
|
|
|
if(WIN32 AND CMAKE_Fortran_COMPILER_ID MATCHES "IntelLLVM")
|
|
get_filename_component(_femlite_ifx_runtime_dir "${CMAKE_Fortran_COMPILER}" DIRECTORY)
|
|
get_property(_femlite_all_tests DIRECTORY PROPERTY TESTS)
|
|
if(_femlite_all_tests)
|
|
set_tests_properties(${_femlite_all_tests} PROPERTIES
|
|
ENVIRONMENT_MODIFICATION
|
|
"PATH=path_list_prepend:${_femlite_ifx_runtime_dir}"
|
|
)
|
|
endif()
|
|
endif()
|