Peano
Loading...
Searching...
No Matches
grid.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 = 6
6dimension = 2
7build_mode = peano4.output.CompileMode.Release
8
9project = peano4.Project(["tests", "peano4", "grid"], "Grid", executable="Peano-Grid")
10
11min_h = 1.1 / (3.0**max_depth)
12project.constants.export_constexpr_with_type("MinH", str(min_h), "double")
13project.output.makefile.parse_configure_script_outcome("../../../")
14project.output.makefile.set_dimension(dimension)
15project.output.makefile.set_mode(build_mode)
16project.output.makefile.add_cpp_file("Grid-main.cpp")
17project.output.makefile.add_cpp_file("CreateGrid.cpp")
18project.output.makefile.add_cpp_file("EmptyObserver.cpp")
19
20project.build()