Commit 11431f33 authored by Karl Wette's avatar Karl Wette

Merge branch 'fix-linerobuststatstest' into 'master'

Fix array initialization in LineRobustStatsTest

Closes #290

See merge request !1276
parents 8a46736e 2d8b0f5d
Pipeline #114693 passed with stages
in 134 minutes and 17 seconds
......@@ -137,6 +137,9 @@ int main( int argc, char *argv[]) {
REAL4 sumTwoF = 0.0;
REAL4Vector *sumTwoFX = NULL;
XLAL_CHECK ( (sumTwoFX = XLALCreateREAL4Vector ( numDetectors )) != NULL, XLAL_EFUNC );
for ( UINT4 X = 0; X < numDetectors; X++ ) {
sumTwoFX->data[X] = 0;
}
for ( UINT4 l = 0; l < numSegs; l++ ) {
sumTwoF += TwoFl->data[l];
for ( UINT4 X = 0; X < numDetectors; X++ ) {
......@@ -150,6 +153,9 @@ int main( int argc, char *argv[]) {
REAL4 maxTwoF = 0.0;
REAL4Vector *maxTwoFX = NULL;
XLAL_CHECK ( (maxTwoFX = XLALCreateREAL4Vector ( numDetectors )) != NULL, XLAL_EFUNC );
for ( UINT4 X = 0; X < numDetectors; X++ ) {
maxTwoFX->data[X] = 0;
}
for ( UINT4 l = 0; l < numSegs; l++ ) {
maxTwoF = fmax(maxTwoF,TwoFl->data[l]);
for ( UINT4 X = 0; X < numDetectors; X++ ) {
......
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