Skip to content

Commit

Permalink
Fixed wrong option name in FCDiracIsolate.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladyslav Shtabovenko committed Nov 20, 2016
1 parent c81660f commit 202f3e2
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion FeynCalc/Dirac/DiracTrick.m
Original file line number Diff line number Diff line change
@@ -123,7 +123,7 @@ create replacement rules (standard) and substitute the results back.
(* This is the standard mode for calling DiracTrick *)

(* First of all we need to extract all the Dirac structures in the input. *)
ex = FCDiracIsolate[ex,FCI->True,Head->dsHead, DotSimplify->True, DiracGammaCombine->OptionValue[DiracGammaCombine],Lorentz->True];
ex = FCDiracIsolate[ex,FCI->True,Head->dsHead, DotSimplify->True, DiracGammaCombine->OptionValue[DiracGammaCombine],LorentzIndex->True];

{freePart,dsPart} = FCSplit[ex,{dsHead}];
FCPrint[3,"DiracTrick: dsPart: ",dsPart , FCDoControl->diTrVerbose];
4 changes: 2 additions & 2 deletions FeynCalc/Dirac/FCDiracIsolate.m
Original file line number Diff line number Diff line change
@@ -39,7 +39,7 @@
Expanding -> True,
FCI -> False,
Factoring -> Factor,
Lorentz -> False,
LorentzIndex -> False,
Head -> FCGV["DiracChain"],
Split -> True,
Isolate -> False,
@@ -92,7 +92,7 @@
ex = Collect2[ex,DiracHeadsList,Factoring->OptionValue[Factoring]];
];

If[ OptionValue[Lorentz],
If[ OptionValue[LorentzIndex],
res = (Map[(selectionList=makeSelectionList[#,DiracHeadsList]; restHead[SelectFree[#, selectionList]] head[SelectNotFree[#, selectionList]])&,
ex + null1 + null2] /. {null1 | null2 -> 0} /. head[1] -> 1),
res = (Map[(restHead[SelectFree[#, DiracHeadsList]] head[SelectNotFree[#, DiracHeadsList]]) &,
2 changes: 1 addition & 1 deletion Tests/Dirac/FCDiracIsolate.test
Original file line number Diff line number Diff line change
@@ -90,7 +90,7 @@ Spinor[Momentum[p1], m1, 1].GA[n].Spinor[Momentum[p2], m2, 1]] dch[
Spinor[-Momentum[p3], m3, 1].GA[n].Spinor[-Momentum[p4], m4, 1]]"},
{"fcstFCDiracIsolate-ID17", "FCDiracIsolate[
MT[mu, nu] GA[i, j, k] + GS[p, l] + MT[mu, nu] GA[mu, j, k],
Lorentz -> True, Head -> dch] // FCE",
LorentzIndex -> True, Head -> dch] // FCE",
"dch[GS[p].GS[l]] + dch[GA[mu].GA[j].GA[k] MT[mu, nu]] + dch[GA[i].GA[j].GA[k]] MT[mu, nu]"},
{"fcstFCDiracIsolate-ID18",
"FCDiracIsolate[DiracSigma[GA[i], GA[j]], Head -> dsHead, DiracSigmaExplicit -> True]//FCE",

0 comments on commit 202f3e2

Please sign in to comment.