Commit 158faf28 authored by Matthew David Pitkin's avatar Matthew David Pitkin
Browse files

HeterodynedPulsarModel.c: minor bug fix

parent f068099f
......@@ -284,7 +284,7 @@ REAL8Vector *XLALHeterodynedPulsarPhaseDifference( PulsarParameters *params,
}
/* get change in phase from glitches */
if ( glphase != NULL && fixglph != NULL ){ deltaphi += (glph->data[i] - fixglph->data[i]); }
if ( glph != NULL && fixglph != NULL ){ deltaphi += (glph->data[i] - fixglph->data[i]); }
else if ( fixglph != NULL ){ deltaphi += fixglph->data[i]; }
/* get change in phase from FITWAVES parameters */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment