Peano
Loading...
Searching...
No Matches
spacetree-set.py
Go to the documentation of this file.
1# This file is part of the Peano project. For conditions of distribution and
2# use, please see the copyright notice at www.peano-framework.org
3import peano4
4
5max_depth = 5
6dimension = 3
7build_mode = peano4.output.CompileMode.Release
8
9project = peano4.Project(
10 ["tests", "peano4", "parallel"], "SpacetreeSet", executable="SpacetreeSet"
11)
12
13min_h = 1.1 / (3.0**max_depth)
14project.constants.export_constexpr_with_type("MinH", str(min_h), "double")
15
16project.output.makefile.parse_configuration_outcome()
17project.output.makefile.set_dimension(dimension)
18project.output.makefile.set_mode(build_mode)
19project.output.makefile.add_cpp_file("SpacetreeSet-main.cpp")
20project.output.makefile.add_cpp_file("CreateGridObserver.cpp")
21project.output.makefile.add_cpp_file("EmptyTraversalObserver.cpp")
22
23project.build()