Generation of vector forms on manifolds is broken
Generating one of the vector forms on manifolds is currently broken.
Trying to generate e.g. p2_vector_laplace_beltrami_0_0_blending_q3 results in:
[MainProcess] — [2025-04-23 16:38:19,413] — [ generate_all_hyteg_forms.py] — [line 1340] - [ INFO] - Generating code for class p2_vector_laplace_beltrami_0_0_blending_q3, 2D ... done (took 0.68 s)
Traceback (most recent call last):
File "/import/caprica-data/mohr/Terra/terraneo/Redesign/hog/generate_all_hyteg_forms.py", line 1420, in <module>
main()
File "/import/caprica-data/mohr/Terra/terraneo/Redesign/hog/generate_all_hyteg_forms.py", line 1353, in main
mat = form_func(
^^^^^^^^^^
File "/import/caprica-data/mohr/Terra/terraneo/Redesign/hog/generate_all_hyteg_forms.py", line 1066, in form_func
return vector_laplace_beltrami(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/import/caprica-data/mohr/Terra/terraneo/Redesign/hog/hog/manifold_forms.py", line 656, in vector_laplace_beltrami
projection_mat
File "/import/caprica-data/mohr/Software/python-for-hog/lib/python3.11/site-packages/sympy/core/decorators.py", line 106, in binary_op_wrapper
return func(self, other)
^^^^^^^^^^^^^^^^^
File "/import/caprica-data/mohr/Software/python-for-hog/lib/python3.11/site-packages/sympy/matrices/common.py", line 2771, in __mul__
return self.multiply(other)
^^^^^^^^^^^^^^^^^^^^
File "/import/caprica-data/mohr/Software/python-for-hog/lib/python3.11/site-packages/sympy/matrices/common.py", line 2793, in multiply
raise ShapeError("Matrix size mismatch: %s * %s." % (
sympy.matrices.common.ShapeError: Matrix size mismatch: (3, 3) * (2, 1).
This might or might not be related to #48 (closed).
Edited by Marcus Mohr