You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Otherwise the current code takes the derivative with respect to a third variable that doesn't exist. If this is correct, I wonder why test_2() in Unit/test_MappedCart.lua works. Maybe I'm wrong and this issue should be resolved/closed.
The text was updated successfully, but these errors were encountered:
Yes this looks wrong. First thing to do is add a regression/Unit test for this mapping. The current test is not actually checking the metric tensor or Jacobian and just checks that the object was created. I will extend the test and we can then fix.
I think there's an erroneous memory access in line 71 of Grid/MappedCart.lua.
It is assigning a value to d1[3] and d2[3], but these vectors have size 2, not 3. I suspect that the correct code that should replace lines 69-71 is:
Otherwise the current code takes the derivative with respect to a third variable that doesn't exist. If this is correct, I wonder why test_2() in Unit/test_MappedCart.lua works. Maybe I'm wrong and this issue should be resolved/closed.
The text was updated successfully, but these errors were encountered: