Closed egourgoulhon closed 3 years ago
Description changed:
---
+++
@@ -19,7 +19,7 @@
ValueError: no basis could be found for computing the components in
the Coordinate frame (M, (d/dt)
-Actually, gM
has not been initialized as a tensor field object, but its components have not been evaluated in any frame:
+Actually, gM
has been initialized as a tensor field object, but its components have not been evaluated in any frame:
sage: gM._components
Description changed:
---
+++
@@ -36,7 +36,7 @@
sage: gM.display()
(2*cos(t) + 2) dt*dt
-However, the expression of F
in Cartesian coordinates should not be required to compute the pullback of g
since the latter is known in polar coordinates:
+However, the expression of F
in Cartesian coordinates should not be required to compute the pullback of g
since the latter is known in polar coordinates, where F
has been defined:
sage: g.display(polar)
New commits:
8455aab | Fix bug #31904 in pullback |
Author: Eric Gourgoulhon
Commit: 8455aab
The fix consisted in making the internal function _pullback_chart
of the method pullback
to operate for a single pair of charts (now added as arguments), which is determined in the main part of pullback
, based on the knowledge of the map's coordinate expressions.
The return partial
statement in the parallel code has seemingly accidentally been indented too far.
Branch pushed to git repo; I updated commit sha1. New commits:
aea4554 | #31904: Fix indentation in _pullback_chart |
Replying to @rburing:
The
return partial
statement in the parallel code has seemingly accidentally been indented too far.
Good catch, thanks! (it was not revealed by the parallel doctest because local_list_ind
had a single element in that case).
This is corrected in the above commit (as well as a pyflakes error reported by the patchbot).
Ricardo, do you agree with the last version?
Reviewer: Ricardo Buring
Yes, looks good now.
Thank you!
Changed branch from public/manifolds/pullback_bug-31904 to aea4554
In Sage 9.3, we have
So far so good, but
Actually,
gM
has been initialized as a tensor field object, but its components have not been evaluated in any frame:Forcing the coordinate expression of the map
F
in the Cartesian chart (for instance by a call toF.display()
) fixes the issue:However, the expression of
F
in Cartesian coordinates should not be required to compute the pullback ofg
since the latter is known in polar coordinates, whereF
has been defined:This bug has been reported at https://ask.sagemath.org/question/57431/
CC: @tscrim @mjungmath @mkoeppe
Component: manifolds
Keywords: pullback
Author: Eric Gourgoulhon
Branch/Commit:
aea4554
Reviewer: Ricardo Buring
Issue created by migration from https://trac.sagemath.org/ticket/31904