28 real** offload_array,
char* qid) {
41 #define NBIPATH "/nbi/nbi_XXXXXXXXXX/"
45 f, qid, __FILE__, __LINE__) ) {
return 1;}
49 for(
int i = 0; i < offload_data->
ninj; i++) {
50 sprintf(path, NBIPATH
"inj%d/%s", i+1,
"ids");
52 f, qid, __FILE__, __LINE__) ) {
return 1;}
54 sprintf(path, NBIPATH
"inj%d/%s", i+1,
"nbeamlet");
56 f, qid, __FILE__, __LINE__) ) {
return 1;}
60 sprintf(path, NBIPATH
"inj%d/%s", i+1,
"power");
62 f, qid, __FILE__, __LINE__) ) {
return 1;}
63 sprintf(path, NBIPATH
"inj%d/%s", i+1,
"energy");
65 f, qid, __FILE__, __LINE__) ) {
return 1;}
66 sprintf(path, NBIPATH
"inj%d/%s", i+1,
"efrac");
68 f, qid, __FILE__, __LINE__) ) {
return 1;}
70 sprintf(path, NBIPATH
"inj%d/%s", i+1,
"divh");
72 f, qid, __FILE__, __LINE__) ) {
return 1;}
73 sprintf(path, NBIPATH
"inj%d/%s", i+1,
"divv");
75 f, qid, __FILE__, __LINE__) ) {
return 1;}
76 sprintf(path, NBIPATH
"inj%d/%s", i+1,
"divhalofrac");
78 f, qid, __FILE__, __LINE__) ) {
return 1;}
79 sprintf(path, NBIPATH
"inj%d/%s", i+1,
"divhaloh");
81 f, qid, __FILE__, __LINE__) ) {
return 1;}
82 sprintf(path, NBIPATH
"inj%d/%s", i+1,
"divhalov");
84 f, qid, __FILE__, __LINE__) ) {
return 1;}
86 sprintf(path, NBIPATH
"inj%d/%s", i+1,
"anum");
88 f, qid, __FILE__, __LINE__) ) {
return 1;}
89 sprintf(path, NBIPATH
"inj%d/%s", i+1,
"znum");
91 f, qid, __FILE__, __LINE__) ) {
return 1;}
92 sprintf(path, NBIPATH
"inj%d/%s", i+1,
"mass");
94 f, qid, __FILE__, __LINE__) ) {
return 1;}
103 *offload_array = (
real*)malloc(
106 for(
int i = 0; i < offload_data->
ninj; i++) {
107 int nbeamlet = offload_data->
n_beamlet[i];
108 sprintf(path, NBIPATH
"inj%d/%s", i+1,
"beamletx");
110 f, qid, __FILE__, __LINE__) ) {
return 1;}
111 sprintf(path, NBIPATH
"inj%d/%s", i+1,
"beamlety");
113 f, qid, __FILE__, __LINE__) ) {
return 1;}
114 sprintf(path, NBIPATH
"inj%d/%s", i+1,
"beamletz");
116 f, qid, __FILE__, __LINE__) ) {
return 1;}
117 sprintf(path, NBIPATH
"inj%d/%s", i+1,
"beamletdx");
119 f, qid, __FILE__, __LINE__) ) {
return 1;}
120 sprintf(path, NBIPATH
"inj%d/%s", i+1,
"beamletdy");
122 f, qid, __FILE__, __LINE__) ) {
return 1;}
123 sprintf(path, NBIPATH
"inj%d/%s", i+1,
"beamletdz");
125 f, qid, __FILE__, __LINE__) ) {
return 1;}