58 #define ASGMPATH "/asigma/asigma_loc_XXXXXXXXXX/"
63 f, qid, __FILE__, __LINE__) ) {
return 1;}
65 int* ne = (
int*) malloc( nreac *
sizeof(
int) );
66 int* nn = (
int*) malloc( nreac *
sizeof(
int) );
67 int* nT = (
int*) malloc( nreac *
sizeof(
int) );
68 int* z1 = (
int*) malloc( nreac *
sizeof(
int) );
69 int* a1 = (
int*) malloc( nreac *
sizeof(
int) );
70 int* z2 = (
int*) malloc( nreac *
sizeof(
int) );
71 int* a2 = (
int*) malloc( nreac *
sizeof(
int) );
72 int* reactype = (
int*) malloc( nreac *
sizeof(
int) );
80 f, qid, __FILE__, __LINE__) ) {
return 1;}
82 f, qid, __FILE__, __LINE__) ) {
return 1;}
84 f, qid, __FILE__, __LINE__) ) {
return 1;}
86 f, qid, __FILE__, __LINE__) ) {
return 1;}
88 f, qid, __FILE__, __LINE__) ) {
return 1;}
90 f, qid, __FILE__, __LINE__) ) {
return 1;}
92 f, qid, __FILE__, __LINE__) ) {
return 1;}
94 f, qid, __FILE__, __LINE__) ) {
return 1;}
96 f, qid, __FILE__, __LINE__) ) {
return 1;}
98 f, qid, __FILE__, __LINE__) ) {
return 1;}
100 f, qid, __FILE__, __LINE__) ) {
return 1;}
102 f, qid, __FILE__, __LINE__) ) {
return 1;}
104 f, qid, __FILE__, __LINE__) ) {
return 1;}
106 f, qid, __FILE__, __LINE__) ) {
return 1;}
109 for(
int i = 0; i < nreac; i++) {
110 nsigmadata += ne[i] * nn[i] * nT[i];
112 real* sigma = (
real*) malloc(nsigmadata *
sizeof(
real));
114 f, qid, __FILE__, __LINE__) ) {
return 1;}
116 ne, emin, emax, nn, nmin, nmax, nT, Tmin, Tmax,
int asigma_loc_init(asigma_loc_data *data, int nreac, int *z1, int *a1, int *z2, int *a2, int *reactype, int *ne, real *emin, real *emax, int *nn, real *nmin, real *nmax, int *nT, real *Tmin, real *Tmax, real *sigma)
Initialize local file atomic data and check inputs.
int hdf5_read_double(const char *var, real *ptr, hid_t file, char *qid, const char *errfile, int errline)
Read double-valued data from ASCOT5 HDF5 file.
int hdf5_read_int(const char *var, int *ptr, hid_t file, char *qid, const char *errfile, int errline)
Read int-valued data from ASCOT5 HDF5 file.