36 #ifndef _LALSIMIMRSPINEOBHAMILTONIANOPTIMIZED_C
37 #define _LALSIMIMRSPINEOBHAMILTONIANOPTIMIZED_C
42 #include <lal/LALSimInspiral.h>
43 #include <lal/LALSimIMR.h>
114 REAL8 e3z = (0.0 <= sigmaKerr->data[2]) - (sigmaKerr->data[2] < 0.0);
121 }
else if(tortoise==0) {
127 XLALPrintError(
"XLAL Error - %s: SEOBNRv2 Optimized Hamiltonian called with unknown tortoise value = %d.\n", __func__,tortoise);
141 const REAL8 values[],
155 memset( cartValues, 0,
sizeof( cartValues ) );
156 cartValues[0] =
r = values[0];
157 cartValues[3] = values[2];
158 cartValues[4] = values[3] / values[0];
161 params.values = cartValues;
180 const REAL8 values[],
192 memcpy( tmpValues, values,
sizeof(tmpValues) );
201 r3 = values[0]*values[0]*values[0];
203 return 1.0/(omegaCirc*omegaCirc*r3);
static REAL8 XLALSimIMRSpinAlignedEOBNonKeplerCoeffOptimized(const REAL8 values[], SpinEOBParams *funcParams)
Function to calculate the non-Keplerian coefficient for the spin-aligned EOB model.
static REAL8 XLALSimIMRSpinEOBHamiltonianOptimized(const REAL8 eta, REAL8Vector *restrict x, REAL8Vector *restrict p, REAL8Vector *restrict s1Vec, REAL8Vector *restrict s2Vec, REAL8Vector *restrict sigmaKerr, REAL8Vector *restrict sigmaStar, int tortoise, SpinEOBHCoeffs *coeffs)
static REAL8 XLALSimIMRSpinAlignedEOBCalcOmegaOptimized(const REAL8 values[], SpinEOBParams *funcParams)
Function to calculate the value of omega for the spin-aligned EOB waveform.
static double GSLSpinAlignedHamiltonianWrapper_ExactDeriv(double x, void *params)
#define XLAL_ERROR_REAL8(...)
int XLALPrintError(const char *fmt,...) _LAL_GCC_PRINTF_FORMAT_(1
#define XLAL_IS_REAL8_FAIL_NAN(val)
Parameters for the spinning EOB model, used in calculating the Hamiltonian.
Parameters for the spinning EOB model.