morpho
morpho copied to clipboard
[Bug] area_enclosed 2D gradient in functional.c
Describe the bug The 2D area_enclosed gradient, not numerical gradient, is wrong.
To Reproduce The area_enclosed gradient function is defined in functional.c
Expected behavior The gradient should have cases like the 3D case.
Screenshots n/a
Additional context n/a
Can you provide a minimal example, @ancaandrei? This would really help us understand the bug.