From eed6ff7d95b211a8c14aa501e3f04c4f1e6741fe Mon Sep 17 00:00:00 2001 From: Nils Kohl <nils.kohl@fau.de> Date: Thu, 25 Jul 2024 15:38:50 +0200 Subject: [PATCH] Not throwing exception because it is not a valid assumption that the free symbol must still exist after possible symbolic simplification. --- hog/operator_generation/operators.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/hog/operator_generation/operators.py b/hog/operator_generation/operators.py index e1a2960..130ea29 100644 --- a/hog/operator_generation/operators.py +++ b/hog/operator_generation/operators.py @@ -1682,19 +1682,6 @@ class HyTeGElementwiseOperator: kernel_parameters = kernel_function.get_parameters() - if any( - [ - str(free_symbol) - not in [str(kp) for kp in kernel_parameters] - for free_symbol in integration_info.free_symbols - ] - ): - raise HOGException( - "Hmm, some free symbols from the integrand have been lost...\n" - f"free symbols: {[str(fs) for fs in integration_info.free_symbols]}\n" - f"kernel parameters: {[str(kp) for kp in kernel_parameters]}" - ) - # We append the name of the integrand (!= name of the kernel) to the free symbols we found in the # integrand to make sure that two different integrands (e.g., a boundary and a volume integrand) # that use the same symbol name do not clash. -- GitLab