Skip to content
Snippets Groups Projects
Commit 7af817f3 authored by Daniel Bauer's avatar Daniel Bauer :speech_balloon:
Browse files

bump hfg

parent a9121203
No related branches found
No related tags found
1 merge request!2Extend generator script by precision and blending
Pipeline #62419 failed
......@@ -25,6 +25,13 @@ def parse_args() -> argparse.Namespace:
"-o", "--output", required=True, help="Path to output directory."
)
parser.add_argument(
"--clang-format-binary",
default="clang-format",
help=f"Allows to specify the name of the clang-format binary and/or optionally its full path."
f" By default 'clang-format' will be used.",
)
return parser.parse_args()
......@@ -237,7 +244,9 @@ def generate_operator(
)
for geometry in [geometries[dim] for dim in spec["dimensions"]]:
quad = quadrature.Quadrature(spec["quadrature"], geometry)
quad = quadrature.Quadrature(
quadrature.select_quadrule(spec["quadrature"], geometry), geometry
)
form = get_form(
test_space,
......@@ -259,6 +268,7 @@ def generate_operator(
dir_path = os.path.join(args.output, form_str)
operator.generate_class_code(
dir_path,
args.clang_format_binary,
loop_strategies[spec["loop-strategy"]],
class_files=operators.CppClassFiles.HEADER_IMPL_AND_VARIANTS,
clang_format=True,
......
--extra-index-url https://test.pypi.org/simple/
hfg @ git+ssh://git@i10git.cs.fau.de/terraneo/hyteg-form-generator.git@b81cfcc8ccc06f486961509da24ddb2f11625e91
hfg @ git+ssh://git@i10git.cs.fau.de/terraneo/hyteg-form-generator.git@2a830d525314b1ec1d718720534267c485b5a9a7
tomli >= 1.1.0 ; python_version < "3.11"
clang-format
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment