71 cyclus::Facility::InitFrom(m);
72 int rawcycpp_shape_fill_commods[2] = {-1, -1};
74 int rawcycpp_shape_fill_commod_prefs[2] = {-1, -1};
76 int rawcycpp_shape_fill_recipe[1] = {-1};
78 int rawcycpp_shape_fill_size[1] = {-1};
80 int rawcycpp_shape_fill[2] = {-1, -1};
81 cycpp_shape_fill = std::vector<int>(rawcycpp_shape_fill, rawcycpp_shape_fill + 2);
82 int rawcycpp_shape_fiss_commods[2] = {-1, -1};
84 int rawcycpp_shape_fiss_commod_prefs[2] = {-1, -1};
86 int rawcycpp_shape_fiss_recipe[1] = {-1};
88 int rawcycpp_shape_fiss_size[1] = {-1};
90 int rawcycpp_shape_fiss[2] = {-1, -1};
91 cycpp_shape_fiss = std::vector<int>(rawcycpp_shape_fiss, rawcycpp_shape_fiss + 2);
92 int rawcycpp_shape_topup_commod[1] = {-1};
94 int rawcycpp_shape_topup_pref[1] = {-1};
96 int rawcycpp_shape_topup_recipe[1] = {-1};
98 int rawcycpp_shape_topup_size[1] = {-1};
100 int rawcycpp_shape_topup[2] = {-1, -1};
101 cycpp_shape_topup = std::vector<int>(rawcycpp_shape_topup, rawcycpp_shape_topup + 2);
102 int rawcycpp_shape_outcommod[1] = {-1};
104 int rawcycpp_shape_throughput[1] = {-1};
106 int rawcycpp_shape_spectrum[1] = {-1};
108 int rawcycpp_shape_latitude[1] = {-1};
110 int rawcycpp_shape_longitude[1] = {-1};
129 fill.capacity(m->fill.capacity());
130 fiss.capacity(m->fiss.capacity());
133#line 115 "/cycamore/src/fuel_fab.h"
135 virtual void InitFrom(cyclus::QueryableBackend* b) {
136 cyclus::Facility::InitFrom(b);
137 int rawcycpp_shape_fill_commods[2] = {-1, -1};
139 int rawcycpp_shape_fill_commod_prefs[2] = {-1, -1};
141 int rawcycpp_shape_fill_recipe[1] = {-1};
143 int rawcycpp_shape_fill_size[1] = {-1};
145 int rawcycpp_shape_fill[2] = {-1, -1};
146 cycpp_shape_fill = std::vector<int>(rawcycpp_shape_fill, rawcycpp_shape_fill + 2);
147 int rawcycpp_shape_fiss_commods[2] = {-1, -1};
149 int rawcycpp_shape_fiss_commod_prefs[2] = {-1, -1};
151 int rawcycpp_shape_fiss_recipe[1] = {-1};
153 int rawcycpp_shape_fiss_size[1] = {-1};
155 int rawcycpp_shape_fiss[2] = {-1, -1};
156 cycpp_shape_fiss = std::vector<int>(rawcycpp_shape_fiss, rawcycpp_shape_fiss + 2);
157 int rawcycpp_shape_topup_commod[1] = {-1};
159 int rawcycpp_shape_topup_pref[1] = {-1};
161 int rawcycpp_shape_topup_recipe[1] = {-1};
163 int rawcycpp_shape_topup_size[1] = {-1};
165 int rawcycpp_shape_topup[2] = {-1, -1};
166 cycpp_shape_topup = std::vector<int>(rawcycpp_shape_topup, rawcycpp_shape_topup + 2);
167 int rawcycpp_shape_outcommod[1] = {-1};
169 int rawcycpp_shape_throughput[1] = {-1};
171 int rawcycpp_shape_spectrum[1] = {-1};
173 int rawcycpp_shape_latitude[1] = {-1};
175 int rawcycpp_shape_longitude[1] = {-1};
177 cyclus::QueryResult qr = b->Query(
"Info", NULL);
178 fill_commods = qr.GetVal<std::vector< std::string > >(
"fill_commods");
180 fill_recipe = qr.GetVal<std::string>(
"fill_recipe");
181 fill_size = qr.GetVal<
double>(
"fill_size");
182 fiss_commods = qr.GetVal<std::vector< std::string > >(
"fiss_commods");
184 fiss_recipe = qr.GetVal<std::string>(
"fiss_recipe");
185 fiss_size = qr.GetVal<
double>(
"fiss_size");
190 outcommod = qr.GetVal<std::string>(
"outcommod");
192 spectrum = qr.GetVal<std::string>(
"spectrum");
193 latitude = qr.GetVal<
double>(
"latitude");
194 longitude = qr.GetVal<
double>(
"longitude");
200 virtual void InfileToDb(cyclus::InfileTree* tree, cyclus::DbInit di) {
201 cyclus::Facility::InfileToDb(tree, di);
202 int rawcycpp_shape_fill_commods[2] = {-1, -1};
204 int rawcycpp_shape_fill_commod_prefs[2] = {-1, -1};
206 int rawcycpp_shape_fill_recipe[1] = {-1};
208 int rawcycpp_shape_fill_size[1] = {-1};
210 int rawcycpp_shape_fill[2] = {-1, -1};
211 cycpp_shape_fill = std::vector<int>(rawcycpp_shape_fill, rawcycpp_shape_fill + 2);
212 int rawcycpp_shape_fiss_commods[2] = {-1, -1};
214 int rawcycpp_shape_fiss_commod_prefs[2] = {-1, -1};
216 int rawcycpp_shape_fiss_recipe[1] = {-1};
218 int rawcycpp_shape_fiss_size[1] = {-1};
220 int rawcycpp_shape_fiss[2] = {-1, -1};
221 cycpp_shape_fiss = std::vector<int>(rawcycpp_shape_fiss, rawcycpp_shape_fiss + 2);
222 int rawcycpp_shape_topup_commod[1] = {-1};
224 int rawcycpp_shape_topup_pref[1] = {-1};
226 int rawcycpp_shape_topup_recipe[1] = {-1};
228 int rawcycpp_shape_topup_size[1] = {-1};
230 int rawcycpp_shape_topup[2] = {-1, -1};
231 cycpp_shape_topup = std::vector<int>(rawcycpp_shape_topup, rawcycpp_shape_topup + 2);
232 int rawcycpp_shape_outcommod[1] = {-1};
234 int rawcycpp_shape_throughput[1] = {-1};
236 int rawcycpp_shape_spectrum[1] = {-1};
238 int rawcycpp_shape_latitude[1] = {-1};
240 int rawcycpp_shape_longitude[1] = {-1};
242 cyclus::InfileTree* sub = tree->SubTree(
"config/*");
246 cyclus::InfileTree* bub = sub->SubTree(
"fill_commods", 0);
247 cyclus::InfileTree* sub = bub;
248 int n1 = sub->NMatches(
"val");
249 std::vector< std::string > fill_commods_val;
250 fill_commods_val.resize(n1);
251 for (
int i1 = 0; i1 < n1; ++i1) {
254 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
257 fill_commods_val[i1] = elem;
261 if (sub->NMatches(
"fill_commod_prefs") > 0) {
263 cyclus::InfileTree* bub = sub->SubTree(
"fill_commod_prefs", 0);
264 cyclus::InfileTree* sub = bub;
265 int n1 = sub->NMatches(
"val");
266 std::vector< double > fill_commod_prefs_val;
267 fill_commod_prefs_val.resize(n1);
268 for (
int i1 = 0; i1 < n1; ++i1) {
271 double elem_in = cyclus::Query<double>(sub,
"val", i1);
274 fill_commod_prefs_val[i1] = elem;
279 std::vector< double > fill_commod_prefs_tmp;
280 fill_commod_prefs_tmp.resize(0);
286 std::string fill_recipe_val = cyclus::Query<std::string>(sub,
"fill_recipe");
290 double fill_size_val = cyclus::Query<double>(sub,
"fill_size");
294 cyclus::InfileTree* bub = sub->SubTree(
"fiss_commods", 0);
295 cyclus::InfileTree* sub = bub;
296 int n1 = sub->NMatches(
"val");
297 std::vector< std::string > fiss_commods_val;
298 fiss_commods_val.resize(n1);
299 for (
int i1 = 0; i1 < n1; ++i1) {
302 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
305 fiss_commods_val[i1] = elem;
309 if (sub->NMatches(
"fiss_commod_prefs") > 0) {
311 cyclus::InfileTree* bub = sub->SubTree(
"fiss_commod_prefs", 0);
312 cyclus::InfileTree* sub = bub;
313 int n1 = sub->NMatches(
"val");
314 std::vector< double > fiss_commod_prefs_val;
315 fiss_commod_prefs_val.resize(n1);
316 for (
int i1 = 0; i1 < n1; ++i1) {
319 double elem_in = cyclus::Query<double>(sub,
"val", i1);
322 fiss_commod_prefs_val[i1] = elem;
327 std::vector< double > fiss_commod_prefs_tmp;
328 fiss_commod_prefs_tmp.resize(0);
333 if (sub->NMatches(
"fiss_recipe") > 0) {
335 std::string fiss_recipe_val = cyclus::Query<std::string>(sub,
"fiss_recipe");
339 std::string fiss_recipe_tmp(
"");
343 double fiss_size_val = cyclus::Query<double>(sub,
"fiss_size");
346 if (sub->NMatches(
"topup_commod") > 0) {
348 std::string topup_commod_val = cyclus::Query<std::string>(sub,
"topup_commod");
352 std::string topup_commod_tmp(
"");
355 if (sub->NMatches(
"topup_pref") > 0) {
357 double topup_pref_val = cyclus::Query<double>(sub,
"topup_pref");
361 double topup_pref_tmp = 1.0;
364 if (sub->NMatches(
"topup_recipe") > 0) {
366 std::string topup_recipe_val = cyclus::Query<std::string>(sub,
"topup_recipe");
370 std::string topup_recipe_tmp(
"");
373 if (sub->NMatches(
"topup_size") > 0) {
375 double topup_size_val = cyclus::Query<double>(sub,
"topup_size");
379 double topup_size_tmp = 0;
383 std::string outcommod_val = cyclus::Query<std::string>(sub,
"outcommod");
386 if (sub->NMatches(
"throughput") > 0) {
388 double throughput_val = cyclus::Query<double>(sub,
"throughput");
392 double throughput_tmp = 1e+299;
396 std::string spectrum_val = cyclus::Query<std::string>(sub,
"spectrum");
399 if (sub->NMatches(
"latitude") > 0) {
401 double latitude_val = cyclus::Query<double>(sub,
"latitude");
405 double latitude_tmp = 0.0;
408 if (sub->NMatches(
"longitude") > 0) {
410 double longitude_val = cyclus::Query<double>(sub,
"longitude");
414 double longitude_tmp = 0.0;