Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
lscsoft
lalsuite
Commits
ceba1949
Commit
ceba1949
authored
Jan 13, 2021
by
Karl Wette
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'deprecate-lalapps-h' into 'master'
Deprecate lalapps/src/lalapps/lalapps.[ch] Closes
#313
See merge request
!1500
parents
508cce2e
e07751a3
Pipeline
#184117
passed with stages
in 200 minutes and 3 seconds
Changes
86
Pipelines
7
Hide whitespace changes
Inline
Side-by-side
Showing
75 changed files
with
306 additions
and
577 deletions
+306
-577
lal/lib/std/LALError.c
lal/lib/std/LALError.c
+73
-0
lal/lib/std/LALError.h
lal/lib/std/LALError.h
+40
-0
lal/lib/std/LALVCSInfoType.c
lal/lib/std/LALVCSInfoType.c
+19
-0
lal/lib/std/LALVCSInfoType.h
lal/lib/std/LALVCSInfoType.h
+8
-0
lal/test/tools/IndependentDetResponseTest.c
lal/test/tools/IndependentDetResponseTest.c
+0
-1
lalapps/configure.ac
lalapps/configure.ac
+1
-1
lalapps/src/findchirp/chirplen.c
lalapps/src/findchirp/chirplen.c
+3
-1
lalapps/src/findchirp/exc_resp.c
lalapps/src/findchirp/exc_resp.c
+2
-2
lalapps/src/frametools/xtefitstoframe.c
lalapps/src/frametools/xtefitstoframe.c
+6
-3
lalapps/src/hwinjection/psinject.c
lalapps/src/hwinjection/psinject.c
+3
-3
lalapps/src/inspiral/blindinj.c
lalapps/src/inspiral/blindinj.c
+2
-3
lalapps/src/inspiral/calcexpsnr.c
lalapps/src/inspiral/calcexpsnr.c
+2
-3
lalapps/src/inspiral/coinj.c
lalapps/src/inspiral/coinj.c
+2
-2
lalapps/src/inspiral/fr_ninja.c
lalapps/src/inspiral/fr_ninja.c
+4
-3
lalapps/src/inspiral/inspfrinj.c
lalapps/src/inspiral/inspfrinj.c
+2
-3
lalapps/src/inspiral/inspinj.c
lalapps/src/inspiral/inspinj.c
+4
-3
lalapps/src/inspiral/inspiral.h
lalapps/src/inspiral/inspiral.h
+3
-1
lalapps/src/inspiral/inspiralutils.c
lalapps/src/inspiral/inspiralutils.c
+2
-2
lalapps/src/inspiral/inspxmlinj.c
lalapps/src/inspiral/inspxmlinj.c
+2
-2
lalapps/src/inspiral/ninja.c
lalapps/src/inspiral/ninja.c
+3
-3
lalapps/src/inspiral/randombank.c
lalapps/src/inspiral/randombank.c
+1
-2
lalapps/src/inspiral/spininj.c
lalapps/src/inspiral/spininj.c
+0
-1
lalapps/src/inspiral/splitbank.c
lalapps/src/inspiral/splitbank.c
+2
-4
lalapps/src/inspiral/stochasticbank.c
lalapps/src/inspiral/stochasticbank.c
+1
-2
lalapps/src/inspiral/tmpltbank.c
lalapps/src/inspiral/tmpltbank.c
+2
-3
lalapps/src/inspiral/trigscan.c
lalapps/src/inspiral/trigscan.c
+3
-2
lalapps/src/lalapps/Makefile.am
lalapps/src/lalapps/Makefile.am
+0
-3
lalapps/src/lalapps/lalapps.c
lalapps/src/lalapps/lalapps.c
+0
-161
lalapps/src/lalapps/lalapps.dox
lalapps/src/lalapps/lalapps.dox
+0
-214
lalapps/src/lalapps/lalapps.h
lalapps/src/lalapps/lalapps.h
+0
-87
lalapps/src/lalapps/tconvert.c
lalapps/src/lalapps/tconvert.c
+2
-2
lalapps/src/power/binj.c
lalapps/src/power/binj.c
+2
-2
lalapps/src/power/power.c
lalapps/src/power/power.c
+2
-1
lalapps/src/pulsar/CrossCorr/pulsar_crosscorr.c
lalapps/src/pulsar/CrossCorr/pulsar_crosscorr.c
+3
-1
lalapps/src/pulsar/CrossCorr/pulsar_crosscorr.h
lalapps/src/pulsar/CrossCorr/pulsar_crosscorr.h
+3
-1
lalapps/src/pulsar/CrossCorr/pulsar_crosscorr_v2.c
lalapps/src/pulsar/CrossCorr/pulsar_crosscorr_v2.c
+3
-1
lalapps/src/pulsar/Fscan/spec_avg.c
lalapps/src/pulsar/Fscan/spec_avg.c
+4
-2
lalapps/src/pulsar/Fscan/spec_avg_long.c
lalapps/src/pulsar/Fscan/spec_avg_long.c
+3
-1
lalapps/src/pulsar/Fstatistic/ComputeFstatBenchmark.c
lalapps/src/pulsar/Fstatistic/ComputeFstatBenchmark.c
+3
-1
lalapps/src/pulsar/Fstatistic/ComputeFstatMCUpperLimit.c
lalapps/src/pulsar/Fstatistic/ComputeFstatMCUpperLimit.c
+1
-1
lalapps/src/pulsar/Fstatistic/ComputeFstatistic_v2.c
lalapps/src/pulsar/Fstatistic/ComputeFstatistic_v2.c
+2
-2
lalapps/src/pulsar/Fstatistic/PredictFstat.c
lalapps/src/pulsar/Fstatistic/PredictFstat.c
+2
-2
lalapps/src/pulsar/Fstatistic/SemiAnalyticF.c
lalapps/src/pulsar/Fstatistic/SemiAnalyticF.c
+4
-2
lalapps/src/pulsar/Fstatistic/compareFstats.c
lalapps/src/pulsar/Fstatistic/compareFstats.c
+3
-1
lalapps/src/pulsar/Fstatistic/synthesizeBstatMC.c
lalapps/src/pulsar/Fstatistic/synthesizeBstatMC.c
+2
-2
lalapps/src/pulsar/Fstatistic/synthesizeLVStats.c
lalapps/src/pulsar/Fstatistic/synthesizeLVStats.c
+2
-2
lalapps/src/pulsar/Fstatistic/synthesizeTransientStats.c
lalapps/src/pulsar/Fstatistic/synthesizeTransientStats.c
+2
-2
lalapps/src/pulsar/GCT/GCTtoplist.c
lalapps/src/pulsar/GCT/GCTtoplist.c
+1
-1
lalapps/src/pulsar/GCT/HierarchSearchGCT.c
lalapps/src/pulsar/GCT/HierarchSearchGCT.c
+1
-1
lalapps/src/pulsar/GCT/HierarchSearchGCT.h
lalapps/src/pulsar/GCT/HierarchSearchGCT.h
+3
-1
lalapps/src/pulsar/HeterodyneSearch/SpectralInterpolation.h
lalapps/src/pulsar/HeterodyneSearch/SpectralInterpolation.h
+3
-1
lalapps/src/pulsar/HeterodyneSearch/create_pulsar_signal_frame.c
.../src/pulsar/HeterodyneSearch/create_pulsar_signal_frame.c
+3
-1
lalapps/src/pulsar/HeterodyneSearch/heterodyne_pulsar.c
lalapps/src/pulsar/HeterodyneSearch/heterodyne_pulsar.c
+1
-1
lalapps/src/pulsar/HeterodyneSearch/heterodyne_pulsar.h
lalapps/src/pulsar/HeterodyneSearch/heterodyne_pulsar.h
+3
-1
lalapps/src/pulsar/HeterodyneSearch/pulsar_parameter_estimation_nested.h
...sar/HeterodyneSearch/pulsar_parameter_estimation_nested.h
+3
-1
lalapps/src/pulsar/Hough/DriveHoughColor.h
lalapps/src/pulsar/Hough/DriveHoughColor.h
+3
-1
lalapps/src/pulsar/Hough/DriveHoughMulti.c
lalapps/src/pulsar/Hough/DriveHoughMulti.c
+3
-1
lalapps/src/pulsar/HoughFstat/HierarchicalSearch.c
lalapps/src/pulsar/HoughFstat/HierarchicalSearch.c
+1
-1
lalapps/src/pulsar/HoughFstat/HierarchicalSearch.h
lalapps/src/pulsar/HoughFstat/HierarchicalSearch.h
+3
-1
lalapps/src/pulsar/Injections/compareTS.c
lalapps/src/pulsar/Injections/compareTS.c
+3
-1
lalapps/src/pulsar/Injections/makefakedata_v4.c
lalapps/src/pulsar/Injections/makefakedata_v4.c
+3
-2
lalapps/src/pulsar/Injections/makefakedata_v5.c
lalapps/src/pulsar/Injections/makefakedata_v5.c
+3
-2
lalapps/src/pulsar/Injections/sw_inj_frames.c
lalapps/src/pulsar/Injections/sw_inj_frames.c
+3
-1
lalapps/src/pulsar/SFTTools/ComputePSD.c
lalapps/src/pulsar/SFTTools/ComputePSD.c
+5
-3
lalapps/src/pulsar/SFTTools/SFTclean.c
lalapps/src/pulsar/SFTTools/SFTclean.c
+3
-1
lalapps/src/pulsar/SFTTools/compareSFTs.c
lalapps/src/pulsar/SFTTools/compareSFTs.c
+3
-1
lalapps/src/pulsar/SFTTools/dumpSFT.c
lalapps/src/pulsar/SFTTools/dumpSFT.c
+3
-1
lalapps/src/pulsar/SidebandSearch/CombSearch.c
lalapps/src/pulsar/SidebandSearch/CombSearch.c
+2
-2
lalapps/src/pulsar/Tools/ComputeAntennaPattern.c
lalapps/src/pulsar/Tools/ComputeAntennaPattern.c
+5
-3
lalapps/src/pulsar/Tools/FstatMetric_v2.c
lalapps/src/pulsar/Tools/FstatMetric_v2.c
+1
-1
lalapps/src/pulsar/Tools/PrintDetectorState.c
lalapps/src/pulsar/Tools/PrintDetectorState.c
+3
-1
lalapps/src/pulsar/TwoSpect/TwoSpect.c
lalapps/src/pulsar/TwoSpect/TwoSpect.c
+1
-1
lalapps/src/pulsar/TwoSpect/TwoSpectTemplateBank.c
lalapps/src/pulsar/TwoSpect/TwoSpectTemplateBank.c
+3
-1
lalapps/src/ring/coh_PTF.h
lalapps/src/ring/coh_PTF.h
+3
-2
lalapps/src/ring/coh_PTF_option.c
lalapps/src/ring/coh_PTF_option.c
+1
-1
No files found.
lal/lib/std/LALError.c
View file @
ceba1949
...
...
@@ -345,3 +345,76 @@ void REPORTSTATUS(LALStatus * status)
}
return
;
}
/*
* Error handlers for LALApps applications
*/
#define FAILMSG( stat, func, file, line, id ) \
do { \
if ( lalDebugLevel & LALERROR ) \
{ \
LALPrintError( "Error[0]: file %s, line %d, %s\n" \
"\tLAL_CALL: Function call `%s' failed.\n", file, line, id, func ); \
} \
if ( vrbflg ) \
{ \
fprintf(stderr,"Level 0: %s\n\tFunction call `%s' failed.\n" \
"\tfile %s, line %d\n", id, func, file, line ); \
REPORTSTATUS( stat ); \
} \
} while( 0 )
int
vrbflg
=
0
;
lal_errhandler_t
lal_errhandler
=
LAL_ERR_DFLT
;
int
LAL_ERR_EXIT
(
LALStatus
*
stat
,
const
char
*
func
,
const
char
*
file
,
const
int
line
,
volatile
const
char
*
id
)
{
if
(
stat
->
statusCode
)
{
FAILMSG
(
stat
,
func
,
file
,
line
,
id
);
exit
(
1
);
}
return
stat
->
statusCode
;
}
int
LAL_ERR_ABRT
(
LALStatus
*
stat
,
const
char
*
func
,
const
char
*
file
,
const
int
line
,
volatile
const
char
*
id
)
{
if
(
stat
->
statusCode
)
{
FAILMSG
(
stat
,
func
,
file
,
line
,
id
);
abort
();
}
return
0
;
}
int
LAL_ERR_RTRN
(
LALStatus
*
stat
,
const
char
*
func
,
const
char
*
file
,
const
int
line
,
volatile
const
char
*
id
)
{
if
(
stat
->
statusCode
)
{
FAILMSG
(
stat
,
func
,
file
,
line
,
id
);
}
return
stat
->
statusCode
;
}
lal/lib/std/LALError.h
View file @
ceba1949
...
...
@@ -135,6 +135,46 @@ void REPORTSTATUS(LALStatus * status);
#endif
/* NDEBUG */
/*
* Error handlers for LALApps applications
*/
typedef
int
(
*
lal_errhandler_t
)(
LALStatus
*
,
const
char
*
func
,
const
char
*
file
,
const
int
line
,
volatile
const
char
*
id
);
#define LAL_ERR_DFLT LAL_ERR_ABRT
extern
lal_errhandler_t
lal_errhandler
;
extern
int
LAL_ERR_EXIT
(
LALStatus
*
,
const
char
*
func
,
const
char
*
file
,
const
int
line
,
volatile
const
char
*
id
);
extern
int
LAL_ERR_ABRT
(
LALStatus
*
,
const
char
*
func
,
const
char
*
file
,
const
int
line
,
volatile
const
char
*
id
);
extern
int
LAL_ERR_RTRN
(
LALStatus
*
,
const
char
*
func
,
const
char
*
file
,
const
int
line
,
volatile
const
char
*
id
);
#define LAL_CALL( function, statusptr ) \
((function),lal_errhandler(statusptr,#function,__FILE__,__LINE__,"$Id$"))
#endif
/* SWIG */
/*
...
...
lal/lib/std/LALVCSInfoType.c
View file @
ceba1949
...
...
@@ -83,3 +83,22 @@ char *XLALVCSInfoString(const LALVCSInfoList vcs_list, const int verbose, const
return
str
;
}
int
XLALOutputVCSInfo
(
FILE
*
fp
,
const
LALVCSInfoList
vcs_list
,
const
int
verbose
,
const
char
*
prefix
)
{
/* check input */
XLAL_CHECK
(
fp
!=
NULL
,
XLAL_EFAULT
);
/* generate VCS and build information string */
char
*
str
=
XLALVCSInfoString
(
vcs_list
,
verbose
,
prefix
);
XLAL_CHECK
(
str
!=
NULL
,
XLAL_EFUNC
);
/* output string */
XLAL_CHECK
(
fprintf
(
fp
,
"%s"
,
str
)
>=
0
,
XLAL_ESYS
);
XLALFree
(
str
);
return
XLAL_SUCCESS
;
}
lal/lib/std/LALVCSInfoType.h
View file @
ceba1949
...
...
@@ -21,6 +21,8 @@
#ifndef _LALVCSINFOTYPE_H
#define _LALVCSINFOTYPE_H
#include <stdio.h>
#ifdef __cplusplus
extern
"C"
{
#endif
...
...
@@ -65,6 +67,12 @@ typedef const LALVCSInfo *const LALVCSInfoList[16];
*/
char
*
XLALVCSInfoString
(
const
LALVCSInfoList
vcs_list
,
const
int
verbose
,
const
char
*
prefix
);
/**
* Output VCS and build information, as generated by XLALVCSInfoString(), to a file pointer \p fp.
* The arguments \p vcs_list, \p verbose, and \p prefix are as for XLALVCSInfoString().
*/
int
XLALOutputVCSInfo
(
FILE
*
fp
,
const
LALVCSInfoList
vcs_list
,
const
int
verbose
,
const
char
*
prefix
);
/** @} */
#ifdef __cplusplus
...
...
lal/test/tools/IndependentDetResponseTest.c
View file @
ceba1949
...
...
@@ -66,7 +66,6 @@ the model given in Jaranowski, Krolak, and Schutz gr-qc/9804014.
#include <stdlib.h>
#include <math.h>
#include <string.h>
/* #include <lalapps.h> */
/* 05/20/03 gam */
#include <lal/LALStdlib.h>
#include <lal/LALgetopt.h>
#include <lal/LALConstants.h>
...
...
lalapps/configure.ac
View file @
ceba1949
AC_PREREQ([2.63])
AC_INIT([LALApps],[7.0.0.1],[lal-discuss@ligo.org])
AC_CONFIG_HEADERS([src/config.h])
AC_CONFIG_SRCDIR([src/lalapps/
lalapps
.c])
AC_CONFIG_SRCDIR([src/lalapps/
tconvert
.c])
AC_CONFIG_AUX_DIR([gnuscripts])
AC_CONFIG_MACRO_DIR([gnuscripts])
AC_CONFIG_FILES([\
...
...
lalapps/src/findchirp/chirplen.c
View file @
ceba1949
...
...
@@ -27,6 +27,8 @@
*-----------------------------------------------------------------------
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
...
...
@@ -49,7 +51,7 @@
#include <lal/LIGOLwXML.h>
#include <lal/LIGOLwXMLRead.h>
#include <lal/LIGOMetadataUtils.h>
#include <
lalapps
.h>
#include <
LALAppsVCSInfo
.h>
#define CVS_ID_STRING "$Id$"
#define CVS_NAME_STRING "$Name$"
...
...
lalapps/src/findchirp/exc_resp.c
View file @
ceba1949
...
...
@@ -22,7 +22,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <
lalapps
.h>
#include <
LALAppsVCSInfo
.h>
#include <lal/LALStdlib.h>
#include <lal/LALConstants.h>
#include <lal/LALgetopt.h>
...
...
@@ -83,7 +83,7 @@ int main ( int argc, char *argv[] )
usage
(
program
);
return
0
;
case
'V'
:
PRINT_VERSION
(
"hello"
);
XLALOutputVCSInfo
(
stderr
,
lalAppsVCSInfoList
,
0
,
"%% "
);
return
0
;
case
'v'
:
vrbflg
=
1
;
...
...
lalapps/src/frametools/xtefitstoframe.c
View file @
ceba1949
...
...
@@ -33,11 +33,15 @@
/***********************************************************************************************/
/* includes */
#include "config.h"
/* disable -Wstrict-prototypes flag for this header file as this */
/* a build failure for cfitsio-3.440+ */
#pragma GCC diagnostic ignored "-Wstrict-prototypes"
#include <fitsio.h>
#pragma GCC diagnostic pop
#include <math.h>
#include <gsl/gsl_interp.h>
/* needed for the gsl interpolation */
#include <gsl/gsl_spline.h>
/* needed for the gsl interpolation */
...
...
@@ -51,7 +55,6 @@
#include <lal/LALFrameIO.h>
#include <lal/LALFrStream.h>
#include <lalappsfrutils.h>
#include <lalapps.h>
#include <LALAppsVCSInfo.h>
/***********************************************************************************************/
...
...
@@ -270,7 +273,7 @@ typedef struct {
/***********************************************************************************************/
/* global variables */
extern
int
vrbflg
;
/**< defined in lal
apps
.c */
extern
int
vrbflg
;
/**< defined in lal
/lib/std/LALError
.c */
/* keywords in FITS file header */
char
string_OBJECT
[]
=
"OBJECT"
;
...
...
@@ -3120,7 +3123,7 @@ int XLALXTEUINT4TimeSeriesArrayToFrames(XTEUINT4TimeSeriesArray *ts, /**< [
{
CHAR
*
versionstring
=
NULL
;
/* pointer to a string containing the git version information */
versionstring
=
XLAL
GetVersionString
(
1
);
versionstring
=
XLAL
VCSInfoString
(
lalAppsVCSInfoList
,
1
,
"%% "
);
XLALFrameAddFrHistory
(
outFrame
,
"headerdump"
,
ts
->
headerdump
);
XLALFrameAddFrHistory
(
outFrame
,
"comment"
,
ts
->
comment
);
XLALFrameAddFrHistory
(
outFrame
,
"versionstring"
,
versionstring
);
...
...
lalapps/src/hwinjection/psinject.c
View file @
ceba1949
...
...
@@ -72,7 +72,7 @@
#endif
#include <lal/XLALError.h>
#include <
lalapps
.h>
#include <
LALAppsVCSInfo
.h>
#define MAXPULSARS 64
...
...
@@ -260,8 +260,8 @@ int parseinput(int argc, char **argv){
double
tempamp
;
switch
(
c
)
{
case
'v'
:
if
(
XLALOutputV
ersionString
(
stdout
,
0
)
!=
XLAL_SUCCESS
)
{
XLALPrintError
(
"XLALOutputV
ersionString
() failed!
\n
"
);
if
(
XLALOutputV
CSInfo
(
stdout
,
lalAppsVCSInfoList
,
0
,
"%% "
)
!=
XLAL_SUCCESS
)
{
XLALPrintError
(
"XLALOutputV
CSInfo
() failed!
\n
"
);
exit
(
1
);
}
exit
(
0
);
...
...
lalapps/src/inspiral/blindinj.c
View file @
ceba1949
...
...
@@ -36,7 +36,6 @@
#include <assert.h>
#include <string.h>
#include <time.h>
#include <lalapps.h>
#include <lal/LALStdio.h>
#include <lal/LALgetopt.h>
#include <lal/LALStdlib.h>
...
...
@@ -419,7 +418,7 @@ static REAL4TimeSeries *injectWaveform(
int
main
(
int
argc
,
char
*
argv
[]
)
{
LALStatus
status
=
blank_
status
;
LALStatus
XLAL_INIT_DECL
(
status
)
;
LIGOTimeGPS
gpsStartTime
=
{
0
,
0
};
LIGOTimeGPS
earliestEndTime
=
{
0
,
0
};
ResponseFunction
injectionResponse
=
noResponse
;
...
...
@@ -604,7 +603,7 @@ int main( int argc, char *argv[] )
/* print version information and exit */
fprintf
(
stdout
,
"blind hardware injection generation routine
\n
"
"Stephen Fairhurst
\n
"
);
XLALOutputV
ersionString
(
stderr
,
0
);
XLALOutputV
CSInfo
(
stderr
,
lalAppsVCSInfoList
,
0
,
"%% "
);
exit
(
0
);
break
;
...
...
lalapps/src/inspiral/calcexpsnr.c
View file @
ceba1949
...
...
@@ -38,7 +38,6 @@
#include <time.h>
#include <math.h>
#include <lalapps.h>
#include <series.h>
#include <lalappsfrutils.h>
...
...
@@ -156,7 +155,7 @@ int coireflg; /* is input file coire (1) or inj (null) */
int
main
(
int
argc
,
char
*
argv
[]
)
{
LALStatus
status
=
blank_
status
;
LALStatus
XLAL_INIT_DECL
(
status
)
;
UINT4
k
;
UINT4
kLow
;
...
...
@@ -382,7 +381,7 @@ int main( int argc, char *argv[] )
/* print version information and exit */
fprintf
(
stdout
,
"calculation of expected SNR of injections
\n
"
"Gareth Jones
\n
"
);
XLALOutputV
ersionString
(
stderr
,
0
);
XLALOutputV
CSInfo
(
stderr
,
lalAppsVCSInfoList
,
0
,
"%% "
);
exit
(
0
);
break
;
...
...
lalapps/src/inspiral/coinj.c
View file @
ceba1949
...
...
@@ -23,7 +23,7 @@
#include <math.h>
#include <string.h>
#include <
lalapps
.h>
#include <
LALAppsVCSInfo
.h>
#include <lal/LALStdio.h>
#include <lal/LALgetopt.h>
#include <lal/LALStdlib.h>
...
...
@@ -106,7 +106,7 @@ double chirpDist(SimInspiralTable *inj, char ifo){
int
main
(
int
argc
,
char
*
argv
[])
{
LALStatus
status
=
blank_
status
;
LALStatus
XLAL_INIT_DECL
(
status
)
;
CHAR
inputfile
[
FILENAME_MAX
];
CHAR
outputpath
[
1000
];
CHAR
injtype
[
30
];
...
...
lalapps/src/inspiral/fr_ninja.c
View file @
ceba1949
...
...
@@ -19,6 +19,8 @@
* MA 02111-1307 USA
*/
#include "config.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
...
...
@@ -36,7 +38,6 @@
#include <lal/Units.h>
#include <lal/LALFrameL.h>
#include <lalapps.h>
#include <LALAppsVCSInfo.h>
/* program info */
...
...
@@ -62,7 +63,7 @@ extern int vrbflg;
INT4
main
(
INT4
argc
,
CHAR
**
argv
)
{
/* status */
LALStatus
status
=
blank_
status
;
LALStatus
XLAL_INIT_DECL
(
status
)
;
/* counters */
int
c
;
...
...
@@ -211,7 +212,7 @@ INT4 main(INT4 argc, CHAR **argv)
case
'V'
:
/* print version information and exit */
fprintf
(
stdout
,
"Numerical Relativity Frame Generation
\n
"
);
XLALOutputV
ersionString
(
stderr
,
0
);
XLALOutputV
CSInfo
(
stderr
,
lalAppsVCSInfoList
,
0
,
"%% "
);
exit
(
0
);
break
;
...
...
lalapps/src/inspiral/inspfrinj.c
View file @
ceba1949
...
...
@@ -266,7 +266,6 @@
#include <time.h>
#include <math.h>
#include <lalapps.h>
#include <series.h>
#include <lalappsfrutils.h>
...
...
@@ -378,7 +377,7 @@ CHAR comment[LIGOMETA_COMMENT_MAX]; /* process param comment */
int
main
(
int
argc
,
char
*
argv
[]
)
{
/* lal function variables */
LALStatus
status
=
blank_
status
;
LALStatus
XLAL_INIT_DECL
(
status
)
;
/* frame input data */
LALCache
*
frInCache
=
NULL
;
...
...
@@ -1520,7 +1519,7 @@ int arg_parse_check( int argc, char *argv[], MetadataTable procparams )
/* print version information and exit */
fprintf
(
stdout
,
"LIGO/LSC Inspiral Injection Program
\n
"
"Steve Fairhurst <sfairhur@gravity.phys.uwm.edu>
\n
"
);
XLALOutputV
ersionString
(
stderr
,
0
);
XLALOutputV
CSInfo
(
stderr
,
lalAppsVCSInfoList
,
0
,
"%% "
);
exit
(
0
);
break
;
...
...
lalapps/src/inspiral/inspinj.c
View file @
ceba1949
...
...
@@ -366,8 +366,9 @@
* </dl>
*/
#include "config.h"
#include <ctype.h>
#include <lalapps.h>
#include <lal/Date.h>
#include <lal/LALgetopt.h>
#include <lal/LIGOMetadataTables.h>
...
...
@@ -1922,7 +1923,7 @@ int main( int argc, char *argv[] )
CHAR
*
virgoFakePsd
=
NULL
;
REAL8FrequencySeries
*
ligoPsd
=
NULL
;
REAL8FrequencySeries
*
virgoPsd
=
NULL
;
status
=
blank_
status
;
XLAL_INIT_MEM
(
status
)
;
/* LALgetopt arguments */
struct
LALoption
long_options
[]
=
...
...
@@ -3066,7 +3067,7 @@ int main( int argc, char *argv[] )
case
'V'
:
/* print version information and exit */
fprintf
(
stdout
,
"LIGO/LSC inspiral injection engine
\n
"
);
XLALOutputV
ersionString
(
stderr
,
0
);
XLALOutputV
CSInfo
(
stderr
,
lalAppsVCSInfoList
,
0
,
"%% "
);
exit
(
0
);
break
;
...
...
lalapps/src/inspiral/inspiral.h
View file @
ceba1949
...
...
@@ -20,7 +20,9 @@
#ifndef _LALAPPS_INSPIRAL_H
#define _LALAPPS_INSPIRAL_H
#include <lalapps.h>
#include "config.h"
#include <LALAppsVCSInfo.h>
#include <lal/LALConfig.h>
#include <lal/LALStdio.h>
#include <lal/LALStdlib.h>
...
...
lalapps/src/inspiral/inspiralutils.c
View file @
ceba1949
...
...
@@ -38,7 +38,7 @@
#include <time.h>
#include <math.h>
#include <
lalapps
.h>
#include <
LALAppsVCSInfo
.h>
#include <series.h>
#include <lalappsfrutils.h>
...
...
@@ -129,7 +129,7 @@ REAL4 XLALCandleDistanceTD(
UINT4
cut
)
{
LALStatus
status
=
blank_
status
;
LALStatus
XLAL_INIT_DECL
(
status
)
;
InspiralTemplate
tmplt
;
REAL4Vector
*
waveform
=
NULL
;
...
...
lalapps/src/inspiral/inspxmlinj.c
View file @
ceba1949
...
...
@@ -35,7 +35,7 @@
#include <string.h>
#include <time.h>
#include <config.h>
#include <
lalapps
.h>
#include <
LALAppsVCSInfo
.h>
#include <lal/LALStdio.h>
#include <lal/LALgetopt.h>
#include <lal/LALStdlib.h>
...
...
@@ -99,7 +99,7 @@ int main ( int argc, char *argv[] )
/* xml output data */
CHAR
fname
[
256
];
CHAR
*
userTag
=
NULL
;
LALStatus
status
=
blank_
status
;
LALStatus
XLAL_INIT_DECL
(
status
)
;
MetadataTable
proctable
;
MetadataTable
procparams
;
MetadataTable
injections
;
...
...
lalapps/src/inspiral/ninja.c
View file @
ceba1949
...
...
@@ -27,13 +27,13 @@
*/
#include "config.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <lalapps.h>
#include <lal/LALConfig.h>
#include <lal/LALStdio.h>
#include <lal/LALStdlib.h>
...
...
@@ -120,7 +120,7 @@ static int parse_group_list ( NrParRange *range, CHAR *list);
/* main program entry */
int
main
(
INT4
argc
,
CHAR
*
argv
[])
{
LALStatus
status
=
blank_
status
;
LALStatus
XLAL_INIT_DECL
(
status
)
;
/* frame file stuff */
LALCache
*
frGlobCache
=
NULL
;
...
...
lalapps/src/inspiral/randombank.c
View file @
ceba1949
...
...
@@ -37,7 +37,6 @@
#include <regex.h>
#include <time.h>
#include <lalapps.h>
#include <series.h>
#include <lal/LALConfig.h>
...
...
@@ -93,7 +92,7 @@ INT4 outCompress = 0;
int
main
(
int
argc
,
char
*
argv
[]
)
{
/* lal function variables */
LALStatus
status
=
blank_
status
;
LALStatus
XLAL_INIT_DECL
(
status
)
;
/* templates */
RandomParams
*
randParams
=
NULL
;
...
...
lalapps/src/inspiral/spininj.c
View file @
ceba1949
...
...
@@ -32,7 +32,6 @@
#include <assert.h>
#include <string.h>
#include <time.h>
#include <lalapps.h>
#include <gsl/gsl_errno.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_roots.h>
...
...
lalapps/src/inspiral/splitbank.c
View file @
ceba1949
...
...
@@ -135,8 +135,6 @@
#include <regex.h>
#include <time.h>
#include <lalapps.h>
#include <lal/LALConfig.h>
#include <lal/LALgetopt.h>
#include <lal/LALStdio.h>
...
...
@@ -175,7 +173,7 @@ extern int vrbflg; /* verbocity of lal function */
int
main
(
int
argc
,
char
*
argv
[]
)
{
/* lal function variables */
LALStatus
status
=
blank_
status
;
LALStatus
XLAL_INIT_DECL
(
status
)
;
/* template bank generation parameters */
CHAR
*
bankFileName
=
NULL
;
...
...
@@ -375,7 +373,7 @@ int main ( int argc, char *argv[] )
/* print version information and exit */
fprintf
(
stdout
,
"Inspiral Template Bank Splitter
\n
"
"Duncan Brown <duncan@gravity.phys.uwm.edu>
\n
"
);
XLALOutputV
ersionString
(
stderr
,
0
);
XLALOutputV
CSInfo
(
stderr
,
lalAppsVCSInfoList
,
0
,
"%% "
);
exit
(
0
);
break
;
...
...
lalapps/src/inspiral/stochasticbank.c
View file @
ceba1949
...
...
@@ -38,7 +38,6 @@
#include <time.h>
#include <math.h>
#include <lalapps.h>
#include <series.h>
#include <lal/LALConfig.h>
...
...
@@ -228,7 +227,7 @@ REAL4FrequencySeries *readPSD(const char *fname, REAL4 fNyq, REAL4 df, UINT4 N,
int
main
(
int
argc
,
char
*
argv
[]
)
{
/* lal function variables */
LALStatus
status
=
blank_
status
;
LALStatus
XLAL_INIT_DECL
(
status
)
;
/* templates */
RandomParams
*
randParams
=
NULL
;
...
...