Module to initialize some parameters for waveform generation. More...
Prototypes | |
| void | LALInspiralInit (LALStatus *status, InspiralTemplate *params, InspiralInit *paramsInit) |
| int | XLALInspiralInit (InspiralTemplate *params, InspiralInit *paramsInit) |
Module to initialize some parameters for waveform generation.
The input parameters is an InspiralTemplate structure which provides the waveform parameters such as masses, lower frequency ... . The function LALInspiralInit calls the LALInspiralParameterCalc function in order to compute all the mass parameters. Then, XLALInspiralRestrictedAmplitude function is called to get the restricted newtonian amplitude. LALInspiralWavelength, LALInspiralSetup and LALInspiralChooseModel are also called in order to estimate the waveform length which is stored in an output structure called InspiralInit. We also stored Energy, flux and evolution function of flux and energy in that structure.
The LALInspiralChooseModel function might failed or send a non zero status code. That function force it to be zero therefore the codes which use LALInspiralInit (mainly injection code right now) won't stopped. Of course, if status code is non zero, we have to keep trace of it. Thus, the length of the waveform is fixed to zero in case of problems such as negative length, cutoff frequency lower than the lower cutoff frequency ... .
There is only one assert on the InspiralTemplate variable since all relevant asserts are already included in the different functions which are called throughout the LALInspiralInit function.
Definition in file LALInspiralInit.c.
Go to the source code of this file.
Macros | |
| #define | LALINSPIRALINIT_LENGTHOVERESTIMATION 0.1 /* 10 % */ |
| #define LALINSPIRALINIT_LENGTHOVERESTIMATION 0.1 /* 10 % */ |
Definition at line 65 of file LALInspiralInit.c.
| void LALInspiralInit | ( | LALStatus * | status, |
| InspiralTemplate * | params, | ||
| InspiralInit * | paramsInit | ||
| ) |
Definition at line 68 of file LALInspiralInit.c.
| int XLALInspiralInit | ( | InspiralTemplate * | params, |
| InspiralInit * | paramsInit | ||
| ) |
Definition at line 87 of file LALInspiralInit.c.