38#include <lal/GenerateInspiral.h>
39#include <lal/LALStdlib.h>
40#include <lal/LALInspiral.h>
41#include <lal/GeneratePPNInspiral.h>
42#include <lal/LALSQTPNWaveformInterface.h>
48int main(
int argc,
char *argv[]) {
62 sprintf(PNString,
"SpinQuadTaylor%s%s", argv[15], argv[16]);
64 }
else if (argc == 16) {
65 sprintf(PNString,
"SpinQuadTaylor%sALL", argv[15]);
67 }
else if (argc == 15) {
68 sprintf(PNString,
"SpinQuadTaylorthreePointFivePNALL");
70 }
else if (argc == 14) {
71 sprintf(PNString,
"SpinQuadTaylorthreePointFivePNALL");
73 }
else if (argc != 14) {
75 " 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16\n");
77 "Correct parameter order: m1 m2 S1x S1y S1z S2x S2y S2z incl f_lower f_final distance dt output PNorder SpinInter\n");
87 injParams.
mass1 = atof(argv[1]);
88 injParams.
mass2 = atof(argv[2]);
89 injParams.
spin1x = atof(argv[3]);
90 injParams.
spin1y = atof(argv[4]);
91 injParams.
spin1z = atof(argv[5]);
92 injParams.
spin2x = atof(argv[6]);
93 injParams.
spin2y = atof(argv[7]);
94 injParams.
spin2z = atof(argv[8]);
98 injParams.
f_lower = atof(argv[10]);
99 injParams.
f_final = atof(argv[11]);
100 injParams.
distance = atof(argv[12]);
101 ppnParams.
deltaT = atof(argv[13]);
109 fprintf( stderr,
"LALSQTPNWaveformTest: error generating waveform\n" );
118 for(
i = 0;
i < length;
i++) {
124 fprintf(outputfile,
"% 10.7e\t% 10.7e\t% 10.7e\n",
126 a1*cos(shift)*cos(phi) -
a2*sin(shift)*sin(phi),
127 a1*sin(shift)*cos(phi) +
a2*cos(shift)*sin(phi));
void LALCheckMemoryLeaks(void)
void LALGenerateInspiral(LALStatus *status, CoherentGW *waveform, SimInspiralTable *thisEvent, PPNParamStruc *ppnParams)
REAL4TimeVectorSeries * a
This structure stores the parameters for constructing a restricted post-Newtonian waveform.
REAL8 deltaT
The requested sampling interval of the waveform, in s.
REAL4VectorSequence * data
CHAR waveform[LIGOMETA_WAVEFORM_MAX]