Skip to content
Snippets Groups Projects
Forked from agnumpde / dune-tectonic
146 commits ahead of the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
CMakeLists.txt 1.87 KiB
add_custom_target(tectonic_src_multi-body-problem SOURCES
  multi-body-problem.cfg
  multi-body-problem-2D.cfg
  multi-body-problem-3D.cfg
) 

set(MSW_SOURCE_FILES
  ../../dune/tectonic/assemblers.cc
  ../../dune/tectonic/data-structures/body/body.cc
  ../../dune/tectonic/data-structures/network/levelcontactnetwork.cc
  ../../dune/tectonic/data-structures/network/contactnetwork.cc
  ../../dune/tectonic/data-structures/enumparser.cc
  #../../dune/tectonic/factories/cantorfactory.cc
  ../../dune/tectonic/factories/threeblocksfactory.cc
  ../../dune/tectonic/factories/stackedblocksfactory.cc
  #../../dune/tectonic/io/vtk.cc
  #../../dune/tectonic/io/hdf5/frictionalboundary-writer.cc
  #../../dune/tectonic/io/hdf5/iteration-writer.cc
  #../../dune/tectonic/io/hdf5/patchinfo-writer.cc
  #../../dune/tectonic/io/hdf5/restart-io.cc
  #../../dune/tectonic/io/hdf5/surface-writer.cc
  #../../dune/tectonic/io/hdf5/time-writer.cc
  ../../dune/tectonic/problem-data/grid/cuboidgeometry.cc
  ../../dune/tectonic/problem-data/grid/mygrids.cc
  ../../dune/tectonic/problem-data/grid/simplexmanager.cc
  ../../dune/tectonic/spatial-solving/solverfactory.cc
  ../../dune/tectonic/spatial-solving/fixedpointiterator.cc
  ../../dune/tectonic/time-stepping/coupledtimestepper.cc
  ../../dune/tectonic/time-stepping/adaptivetimestepper.cc
  ../../dune/tectonic/time-stepping/rate.cc
  ../../dune/tectonic/time-stepping/rate/rateupdater.cc
  ../../dune/tectonic/time-stepping/state.cc
  multi-body-problem.cc
)

foreach(_dim 2 3)
  set(_msw_target multi-body-problem-${_dim}D)

  add_executable(${_msw_target} ${MSW_SOURCE_FILES})
  
  add_dune_ug_flags(${_msw_target})
  add_dune_hdf5_flags(${_msw_target})

  set_property(TARGET ${_msw_target} APPEND PROPERTY COMPILE_DEFINITIONS "MY_DIM=${_dim}")
  #set_property(TARGET ${_msw_target} APPEND PROPERTY COMPILE_DEFINITIONS "NEW_TNNMG_COMPUTE_ITERATES_DIRECTLY=1")
endforeach()