#include #include "catima/catima.h" #include "catima/nucdata.h" #include #include #include using namespace catima; using std::cout; using std::endl; //// configuration //// constexpr double logEmin_forLS = 0.0; constexpr double logEmax_forLS = catima::logEmax; constexpr double num_LS_datapoints = 200; ///////////////////////////////////////// inline double ls_energy_table( int i ) { return exp(M_LN10*(logEmin_forLS + ((double)i)*(logEmax_forLS-logEmin_forLS)/(num_LS_datapoints - 1.0))); } int main(){ double r; double r2; double dx; double x1,x2; #define LS_COEFFICENTS #ifdef LS_COEFFICENTS std::ofstream file("generated_LS_coeff.h",std::ofstream::out); catima::Projectile p; std::vector ve; std::stringstream sv1; std::stringstream sv2; std::stringstream sx1; std::stringstream sx2; file<<"//LS precalculated LS coefficients \n "; file<<"#include \"catima/storage.h\""; file<<"\n\n"; file<<"#define LS_NUM_ENERGY_POINTS "< ls_energy_table("< ls_energy_table("<