Skip to content
Snippets Groups Projects
Commit 6eb142f1 authored by Bertram Kopf's avatar Bertram Kopf
Browse files

one additional bug fix for tensor calculation

parent f4414684
No related branches found
No related tags found
No related merge requests found
......@@ -365,7 +365,8 @@ void IsobarTensorDecay::calcLSpart(OrbitalTensor& orbTensor, Tensor<complex<doub
result=lsPartTensor.Contract(chi12, noOfContractions-2);
}
else{ // add_lct=false
if(orbTensor.Rank()>=chi12.Rank()){
if(noOfContractions==0) result=orbTensor%chi12;
else if(orbTensor.Rank()>=chi12.Rank()){
result=orbTensor.Contract(chi12, noOfContractions);
}
else{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment