CMakeLists.txt 1.44 KB
Newer Older
Markus Holzer's avatar
Markus Holzer committed
1
2
3
waLBerla_link_files_to_builddir(*.prm)
waLBerla_link_files_to_builddir(*.py)

Markus Holzer's avatar
Markus Holzer committed
4
waLBerla_generate_target_from_python(NAME BenchmarkPhaseFieldCodeGen
Markus Holzer's avatar
Markus Holzer committed
5
6
7
8
9
10
11
12
13
        FILE multiphase_codegen.py
        OUT_FILES initialize_phase_field_distributions.${CODEGEN_FILE_SUFFIX} initialize_phase_field_distributions.h
        initialize_velocity_based_distributions.${CODEGEN_FILE_SUFFIX} initialize_velocity_based_distributions.h
        phase_field_LB_step.${CODEGEN_FILE_SUFFIX} phase_field_LB_step.h
        hydro_LB_step.${CODEGEN_FILE_SUFFIX} hydro_LB_step.h
        PackInfo_phase_field_distributions.${CODEGEN_FILE_SUFFIX} PackInfo_phase_field_distributions.h
        PackInfo_phase_field.${CODEGEN_FILE_SUFFIX} PackInfo_phase_field.h
        PackInfo_velocity_based_distributions.${CODEGEN_FILE_SUFFIX} PackInfo_velocity_based_distributions.h
        GenDefines.h)
Markus Holzer's avatar
Markus Holzer committed
14

Markus Holzer's avatar
Markus Holzer committed
15
if (WALBERLA_BUILD_WITH_CUDA)
Markus Holzer's avatar
Markus Holzer committed
16
17
    waLBerla_add_executable(NAME benchmark_multiphase
            FILES benchmark_multiphase.cpp InitializerFunctions.cpp multiphase_codegen.py
Markus Holzer's avatar
Markus Holzer committed
18
            DEPENDS blockforest core cuda field postprocessing python_coupling lbm geometry timeloop gui BenchmarkPhaseFieldCodeGen)
Markus Holzer's avatar
Markus Holzer committed
19
20
21
else ()
    waLBerla_add_executable(NAME benchmark_multiphase
            FILES benchmark_multiphase.cpp InitializerFunctions.cpp multiphase_codegen.py
Markus Holzer's avatar
Markus Holzer committed
22
            DEPENDS blockforest core field postprocessing python_coupling lbm geometry timeloop gui BenchmarkPhaseFieldCodeGen)
Markus Holzer's avatar
Markus Holzer committed
23
24
endif (WALBERLA_BUILD_WITH_CUDA)