46 kIrbemFortranVersion, kGetIrbemNtimeMax,
47 kMakeLstar, kGetField,
48 kFlyInAfrlCrres, kGetCrresFlux, kNumFunctions
50 using FuncArray = std::array<void*, kNumFunctions>;
70 errc_t tryload(
const std::vector<std::string>& libPaths);
76 bool isLoaded()
const {
return library_ !=
nullptr; }
84 errc_t irbem_fortran_version1(
int* version);
90 errc_t get_irbem_ntime_max1(
int* ntime_max);
118 errc_t make_lstar1(
int ntime,
int kext,
const std::array<int, 5>& options,
int sysaxes,
119 const int* iyear,
const int* idoy,
const double* UT,
120 const double* x1,
const double* x2,
const double* x3,
121 const double* maginput,
122 double* Lm,
double* Lstar,
double* Blocal,
123 double* Bmin,
double* J,
double* MLT);
138 errc_t get_field1(
int kext,
const std::array<int, 5>& options,
int sysaxes,
139 int iyear,
int idoy,
double UT,
140 double x1,
double x2,
double x3,
141 const double* maginput,
142 double Bgeo[3],
double& B);
175 errc_t fly_in_afrl_crres1(
int ntime,
int sysaxes,
176 int whichm,
int whatf,
int nene,
177 const double* energy,
178 const int* iyear,
const int* idoy,
const double* UT,
179 const double* x1,
const double* x2,
const double* x3,
180 const double* Ap15,
double* flux,
204 errc_t get_crres_flux(
int ntime,
int whichm,
int whatf,
205 int nene,
const double* energy,
206 const double* BBo,
const double* L,
const double* Ap15,
212 void* library_{
nullptr};
213 FuncArray functions_{};