Skip to content
Snippets Groups Projects
Commit b47f731b authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema
Browse files

Task #9834: add missing loop in stefcal

parent 88bc74bb
No related branches found
No related tags found
No related merge requests found
...@@ -309,21 +309,21 @@ namespace LOFAR { ...@@ -309,21 +309,21 @@ namespace LOFAR {
double ww=0; // Same as w, but specifically for pol==false double ww=0; // Same as w, but specifically for pol==false
DComplex tt=0; // Same as t, but specifically for pol==false DComplex tt=0; // Same as t, but specifically for pol==false
DComplex* z_p=_z.data();
mvis_p=&_mvis(IPosition(6,0,0,0,0,st1/_nSt,st1%_nSt)); mvis_p=&_mvis(IPosition(6,0,0,0,0,st1/_nSt,st1%_nSt));
vis_p = &_vis(IPosition(6,0,0,0,0,st1/_nSt,st1%_nSt)); vis_p = &_vis(IPosition(6,0,0,0,0,st1/_nSt,st1%_nSt));
for (uint st1pol=0;st1pol<_nSp;++st1pol) { for (uint st1pol=0;st1pol<_nSp;++st1pol) {
for (uint ch=0;ch<_nChan;++ch) { for (uint ch=0;ch<_nChan;++ch) {
for (uint time=0;time<_solInt;++time) { for (uint time=0;time<_solInt;++time) {
DComplex* h_p=_h.data(); for (uint st2pol=0;st2pol<_nSp;++st2pol) {
for (uint st2=0;st2<_nUn;++st2) { DComplex* h_p=_h.data();
*z_p = h_p[st2] * *mvis_p; //itsMVis(IPosition(6,st2%nSt,st2/nSt,time,ch,st1/nSt,st1%nSt)); for (uint st2=0;st2<_nUn;++st2) {
ASSERT(isFinite(*z_p)); DComplex z(h_p[st2] * *mvis_p); //itsMVis(IPosition(6,st2%nSt,st2/nSt,time,ch,st1/nSt,st1%nSt));
ww+=norm(*z_p); ASSERT(isFinite(z));
tt+=conj(*z_p) * *vis_p; //itsVis(IPosition(6,st2%nSt,st2/nSt,time,ch,st1/nSt,st1%nSt)); ww+=norm(z);
mvis_p++; tt+=conj(z) * *vis_p; //itsVis(IPosition(6,st2%nSt,st2/nSt,time,ch,st1/nSt,st1%nSt));
vis_p++; mvis_p++;
z_p++; vis_p++;
}
} }
//cout<<"iS.z bij ch="<<ch<<"="<<iS.z<<endl<<"----"<<endl; //cout<<"iS.z bij ch="<<ch<<"="<<iS.z<<endl<<"----"<<endl;
} }
......
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