88 bool parsing_passed =
true;
90 std::string tmpString;
99 gsl_spline *Bz_interpolant = gsl_spline_alloc(gsl_interp_cspline,
num_gridpz_m);
100 gsl_interp_accel *Bz_accel = gsl_interp_accel_alloc();
102 gsl_fft_real_wavetable *
real = gsl_fft_real_wavetable_alloc(2 *
num_gridpz_m);
103 gsl_fft_real_workspace *work = gsl_fft_real_workspace_alloc(2 *
num_gridpz_m);
115 if (zvals[i] - tmpDouble > 1e-10) {
116 if (std::abs(RealValues[i]) > Bz_max) {
117 Bz_max = std::abs(RealValues[i]);
119 tmpDouble = zvals[i];
125 gsl_spline_init(Bz_interpolant, zvals, RealValues,
num_gridpz_m);
132 RealValues[ii] = gsl_spline_eval(Bz_interpolant, z, Bz_accel);
138 RealValues[i] = RealValues[ii];
148 for (
int i = 1; i < 2 *
accuracy_m - 1; i++) {
152 gsl_spline_free(Bz_interpolant);
153 gsl_interp_accel_free(Bz_accel);
155 gsl_fft_real_workspace_free(work);
156 gsl_fft_real_wavetable_free(
real);
FLieGenerator< T, N > real(const FLieGenerator< std::complex< T >, N > &)
Take real part of a complex generator.