Closed vsht closed 7 years ago
I feel this is related to #74. The bug is in occurs
with expressions containing e_
. In your case, pi_
is a symbol and at the ground level, so
if (count(`what',1));
instead of the use of occurs
, would be a workaround.
Should be fixed now. The routine to look for variables in occurs didn’t recognize the special role of tensors.
Jos
On 20 dec. 2016, at 12:15, Takahiro Ueda notifications@github.com wrote:
I feel this is related to #74 https://github.com/vermaseren/form/issues/74. The bug is in occurs with expressions containing e. In your case, pi is a symbol and at the ground level, so
if (count(`what',1)); instead of the use of occurs, would be a workaround.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vermaseren/form/issues/161#issuecomment-268218234, or mute the thread https://github.com/notifications/unsubscribe-auth/AFLxEkD5AR5TlyYI9K6alyPPcEFoS_6Cks5rJ7jugaJpZM4LRsXr.
Dear both, many thanks for the prompt reaction! Takahiro has correctly identified the issue (I was about to report that his workaround works also with my real code) and Jos has fixed it. Great!
Cheers, Vladyslav
The following code
crashes with
without any further infos. The crash can be avoided if one comments out
id eps(xxi?,xxj?,xxk?) = e_(xxi,xxj,xxk);
or `
call myreplace(pi,Pi,pi);`
However, for my real code I need both statements.
myeps
is a totally antisymmetric tensor that I want to convert toe_
. I suppose this is where the problem comes from. Nevertheless, I also cannot avoid this conversion, since I'm computing a squared amplitude andcontract
obviously does not know how not handle a contraction ofmyeps
tensors.Furthermore, also a direct conversion
leads to the same crash.
Is this a bug and if yes, could someone suggest a workaround?
P.S. I'm using the latest snapshot from the master branch on Fedora 23 64-bit.
Cheers, Vladyslav