723 cyclus::Facility::InfileToDb(tree, di);
724 int rawcycpp_shape_in_commods[2] = {-1, -1};
726 int rawcycpp_shape_in_commod_prefs[2] = {-1, -1};
728 int rawcycpp_shape_out_commods[2] = {-1, -1};
730 int rawcycpp_shape_in_recipe[1] = {-1};
732 int rawcycpp_shape_residence_time[1] = {-1};
734 int rawcycpp_shape_sell_quantity[1] = {-1};
736 int rawcycpp_shape_throughput[1] = {-1};
738 int rawcycpp_shape_max_inv_size[1] = {-1};
740 int rawcycpp_shape_discrete_handling[1] = {-1};
742 int rawcycpp_shape_active_buying_frequency_type[1] = {-1};
744 int rawcycpp_shape_active_buying_val[1] = {-1};
746 int rawcycpp_shape_active_buying_min[1] = {-1};
748 int rawcycpp_shape_active_buying_max[1] = {-1};
750 int rawcycpp_shape_active_buying_mean[1] = {-1};
752 int rawcycpp_shape_active_buying_stddev[1] = {-1};
754 int rawcycpp_shape_active_buying_end_probability[1] = {-1};
756 int rawcycpp_shape_active_buying_disruption_probability[1] = {-1};
758 int rawcycpp_shape_active_buying_disruption[1] = {-1};
760 int rawcycpp_shape_dormant_buying_frequency_type[1] = {-1};
762 int rawcycpp_shape_dormant_buying_val[1] = {-1};
764 int rawcycpp_shape_dormant_buying_min[1] = {-1};
766 int rawcycpp_shape_dormant_buying_max[1] = {-1};
768 int rawcycpp_shape_dormant_buying_mean[1] = {-1};
770 int rawcycpp_shape_dormant_buying_stddev[1] = {-1};
772 int rawcycpp_shape_dormant_buying_end_probability[1] = {-1};
774 int rawcycpp_shape_dormant_buying_disruption_probability[1] = {-1};
776 int rawcycpp_shape_dormant_buying_disruption[1] = {-1};
778 int rawcycpp_shape_buying_size_type[1] = {-1};
780 int rawcycpp_shape_buying_size_val[1] = {-1};
782 int rawcycpp_shape_buying_size_min[1] = {-1};
784 int rawcycpp_shape_buying_size_max[1] = {-1};
786 int rawcycpp_shape_buying_size_mean[1] = {-1};
788 int rawcycpp_shape_buying_size_stddev[1] = {-1};
790 int rawcycpp_shape_reorder_point[1] = {-1};
792 int rawcycpp_shape_reorder_quantity[1] = {-1};
794 int rawcycpp_shape_cumulative_cap[1] = {-1};
796 int rawcycpp_shape_package[1] = {-1};
797 cycpp_shape_package = std::vector<int>(rawcycpp_shape_package, rawcycpp_shape_package + 1);
798 int rawcycpp_shape_transport_unit[1] = {-1};
800 int rawcycpp_shape_inventory[2] = {-1, -1};
802 int rawcycpp_shape_stocks[2] = {-1, -1};
803 cycpp_shape_stocks = std::vector<int>(rawcycpp_shape_stocks, rawcycpp_shape_stocks + 2);
804 int rawcycpp_shape_ready[2] = {-1, -1};
805 cycpp_shape_ready = std::vector<int>(rawcycpp_shape_ready, rawcycpp_shape_ready + 2);
806 int rawcycpp_shape_processing[2] = {-1, -1};
808 int rawcycpp_shape_inventory_tracker[1] = {-1};
810 int rawcycpp_shape_latitude[1] = {-1};
812 int rawcycpp_shape_longitude[1] = {-1};
814 cyclus::InfileTree* sub = tree->SubTree(
"config/*");
818 cyclus::InfileTree* bub = sub->SubTree(
"in_commods", 0);
819 cyclus::InfileTree* sub = bub;
820 int n1 = sub->NMatches(
"val");
821 std::vector< std::string > in_commods_val;
822 in_commods_val.resize(n1);
823 for (
int i1 = 0; i1 < n1; ++i1) {
826 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
829 in_commods_val[i1] = elem;
833 if (sub->NMatches(
"in_commod_prefs") > 0) {
835 cyclus::InfileTree* bub = sub->SubTree(
"in_commod_prefs", 0);
836 cyclus::InfileTree* sub = bub;
837 int n1 = sub->NMatches(
"val");
838 std::vector< double > in_commod_prefs_val;
839 in_commod_prefs_val.resize(n1);
840 for (
int i1 = 0; i1 < n1; ++i1) {
843 double elem_in = cyclus::Query<double>(sub,
"val", i1);
846 in_commod_prefs_val[i1] = elem;
851 std::vector< double > in_commod_prefs_tmp;
852 in_commod_prefs_tmp.resize(0);
858 cyclus::InfileTree* bub = sub->SubTree(
"out_commods", 0);
859 cyclus::InfileTree* sub = bub;
860 int n1 = sub->NMatches(
"val");
861 std::vector< std::string > out_commods_val;
862 out_commods_val.resize(n1);
863 for (
int i1 = 0; i1 < n1; ++i1) {
866 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
869 out_commods_val[i1] = elem;
873 if (sub->NMatches(
"in_recipe") > 0) {
875 std::string in_recipe_val = cyclus::Query<std::string>(sub,
"in_recipe");
879 std::string in_recipe_tmp(
"");
882 if (sub->NMatches(
"residence_time") > 0) {
884 int residence_time_val = cyclus::Query<int>(sub,
"residence_time");
888 int residence_time_tmp = 0;
891 if (sub->NMatches(
"sell_quantity") > 0) {
893 double sell_quantity_val = cyclus::Query<double>(sub,
"sell_quantity");
897 double sell_quantity_tmp = 0;
900 if (sub->NMatches(
"throughput") > 0) {
902 double throughput_val = cyclus::Query<double>(sub,
"throughput");
906 double throughput_tmp = 1e+299;
909 if (sub->NMatches(
"max_inv_size") > 0) {
911 double max_inv_size_val = cyclus::Query<double>(sub,
"max_inv_size");
915 double max_inv_size_tmp = 1e+299;
918 if (sub->NMatches(
"discrete_handling") > 0) {
920 bool discrete_handling_val = cyclus::Query<bool>(sub,
"discrete_handling");
924 bool discrete_handling_tmp =
false;
927 if (sub->NMatches(
"active_buying_frequency_type") > 0) {
929 std::string active_buying_frequency_type_val = cyclus::Query<std::string>(sub,
"active_buying_frequency_type");
933 std::string active_buying_frequency_type_tmp(
"Fixed");
936 if (sub->NMatches(
"active_buying_val") > 0) {
938 int active_buying_val_val = cyclus::Query<int>(sub,
"active_buying_val");
942 int active_buying_val_tmp = -1;
945 if (sub->NMatches(
"active_buying_min") > 0) {
947 int active_buying_min_val = cyclus::Query<int>(sub,
"active_buying_min");
951 int active_buying_min_tmp = -1;
954 if (sub->NMatches(
"active_buying_max") > 0) {
956 int active_buying_max_val = cyclus::Query<int>(sub,
"active_buying_max");
960 int active_buying_max_tmp = -1;
963 if (sub->NMatches(
"active_buying_mean") > 0) {
965 double active_buying_mean_val = cyclus::Query<double>(sub,
"active_buying_mean");
969 double active_buying_mean_tmp = -1;
972 if (sub->NMatches(
"active_buying_stddev") > 0) {
974 double active_buying_stddev_val = cyclus::Query<double>(sub,
"active_buying_stddev");
978 double active_buying_stddev_tmp = -1;
981 if (sub->NMatches(
"active_buying_end_probability") > 0) {
983 double active_buying_end_probability_val = cyclus::Query<double>(sub,
"active_buying_end_probability");
987 double active_buying_end_probability_tmp = 0;
990 if (sub->NMatches(
"active_buying_disruption_probability") > 0) {
992 double active_buying_disruption_probability_val = cyclus::Query<double>(sub,
"active_buying_disruption_probability");
996 double active_buying_disruption_probability_tmp = 0;
999 if (sub->NMatches(
"active_buying_disruption") > 0) {
1001 int active_buying_disruption_val = cyclus::Query<int>(sub,
"active_buying_disruption");
1005 int active_buying_disruption_tmp = -1;
1008 if (sub->NMatches(
"dormant_buying_frequency_type") > 0) {
1010 std::string dormant_buying_frequency_type_val = cyclus::Query<std::string>(sub,
"dormant_buying_frequency_type");
1014 std::string dormant_buying_frequency_type_tmp(
"Fixed");
1017 if (sub->NMatches(
"dormant_buying_val") > 0) {
1019 int dormant_buying_val_val = cyclus::Query<int>(sub,
"dormant_buying_val");
1023 int dormant_buying_val_tmp = -1;
1026 if (sub->NMatches(
"dormant_buying_min") > 0) {
1028 int dormant_buying_min_val = cyclus::Query<int>(sub,
"dormant_buying_min");
1032 int dormant_buying_min_tmp = -1;
1035 if (sub->NMatches(
"dormant_buying_max") > 0) {
1037 int dormant_buying_max_val = cyclus::Query<int>(sub,
"dormant_buying_max");
1041 int dormant_buying_max_tmp = -1;
1044 if (sub->NMatches(
"dormant_buying_mean") > 0) {
1046 double dormant_buying_mean_val = cyclus::Query<double>(sub,
"dormant_buying_mean");
1050 double dormant_buying_mean_tmp = -1;
1053 if (sub->NMatches(
"dormant_buying_stddev") > 0) {
1055 double dormant_buying_stddev_val = cyclus::Query<double>(sub,
"dormant_buying_stddev");
1059 double dormant_buying_stddev_tmp = -1;
1062 if (sub->NMatches(
"dormant_buying_end_probability") > 0) {
1064 double dormant_buying_end_probability_val = cyclus::Query<double>(sub,
"dormant_buying_end_probability");
1068 double dormant_buying_end_probability_tmp = 0;
1071 if (sub->NMatches(
"dormant_buying_disruption_probability") > 0) {
1073 double dormant_buying_disruption_probability_val = cyclus::Query<double>(sub,
"dormant_buying_disruption_probability");
1077 double dormant_buying_disruption_probability_tmp = 0;
1080 if (sub->NMatches(
"dormant_buying_disruption") > 0) {
1082 int dormant_buying_disruption_val = cyclus::Query<int>(sub,
"dormant_buying_disruption");
1086 int dormant_buying_disruption_tmp = -1;
1089 if (sub->NMatches(
"buying_size_type") > 0) {
1091 std::string buying_size_type_val = cyclus::Query<std::string>(sub,
"buying_size_type");
1095 std::string buying_size_type_tmp(
"Fixed");
1098 if (sub->NMatches(
"buying_size_val") > 0) {
1100 double buying_size_val_val = cyclus::Query<double>(sub,
"buying_size_val");
1104 double buying_size_val_tmp = 1.0;
1107 if (sub->NMatches(
"buying_size_min") > 0) {
1109 double buying_size_min_val = cyclus::Query<double>(sub,
"buying_size_min");
1113 double buying_size_min_tmp = -1.0;
1116 if (sub->NMatches(
"buying_size_max") > 0) {
1118 double buying_size_max_val = cyclus::Query<double>(sub,
"buying_size_max");
1122 double buying_size_max_tmp = -1.0;
1125 if (sub->NMatches(
"buying_size_mean") > 0) {
1127 double buying_size_mean_val = cyclus::Query<double>(sub,
"buying_size_mean");
1131 double buying_size_mean_tmp = -1.0;
1134 if (sub->NMatches(
"buying_size_stddev") > 0) {
1136 double buying_size_stddev_val = cyclus::Query<double>(sub,
"buying_size_stddev");
1140 double buying_size_stddev_tmp = -1.0;
1143 if (sub->NMatches(
"reorder_point") > 0) {
1145 double reorder_point_val = cyclus::Query<double>(sub,
"reorder_point");
1149 double reorder_point_tmp = -1;
1152 if (sub->NMatches(
"reorder_quantity") > 0) {
1154 double reorder_quantity_val = cyclus::Query<double>(sub,
"reorder_quantity");
1158 double reorder_quantity_tmp = -1;
1161 if (sub->NMatches(
"cumulative_cap") > 0) {
1163 double cumulative_cap_val = cyclus::Query<double>(sub,
"cumulative_cap");
1167 double cumulative_cap_tmp = -1;
1170 if (sub->NMatches(
"package") > 0) {
1172 std::string package_val = cyclus::Query<std::string>(sub,
"package");
1173 package = package_val;
1176 std::string package_tmp(
"unpackaged");
1177 package = package_tmp;
1179 if (sub->NMatches(
"transport_unit") > 0) {
1181 std::string transport_unit_val = cyclus::Query<std::string>(sub,
"transport_unit");
1185 std::string transport_unit_tmp(
"unrestricted");
1188 if (sub->NMatches(
"latitude") > 0) {
1190 double latitude_val = cyclus::Query<double>(sub,
"latitude");
1194 double latitude_tmp = 0.0;
1197 if (sub->NMatches(
"longitude") > 0) {
1199 double longitude_val = cyclus::Query<double>(sub,
"longitude");
1203 double longitude_tmp = 0.0;
1306 int rawcycpp_shape_in_commods[2] = {-1, -1};
1308 int rawcycpp_shape_in_commod_prefs[2] = {-1, -1};
1310 int rawcycpp_shape_out_commods[2] = {-1, -1};
1312 int rawcycpp_shape_in_recipe[1] = {-1};
1314 int rawcycpp_shape_residence_time[1] = {-1};
1316 int rawcycpp_shape_sell_quantity[1] = {-1};
1318 int rawcycpp_shape_throughput[1] = {-1};
1320 int rawcycpp_shape_max_inv_size[1] = {-1};
1322 int rawcycpp_shape_discrete_handling[1] = {-1};
1324 int rawcycpp_shape_active_buying_frequency_type[1] = {-1};
1326 int rawcycpp_shape_active_buying_val[1] = {-1};
1328 int rawcycpp_shape_active_buying_min[1] = {-1};
1330 int rawcycpp_shape_active_buying_max[1] = {-1};
1332 int rawcycpp_shape_active_buying_mean[1] = {-1};
1334 int rawcycpp_shape_active_buying_stddev[1] = {-1};
1336 int rawcycpp_shape_active_buying_end_probability[1] = {-1};
1338 int rawcycpp_shape_active_buying_disruption_probability[1] = {-1};
1340 int rawcycpp_shape_active_buying_disruption[1] = {-1};
1342 int rawcycpp_shape_dormant_buying_frequency_type[1] = {-1};
1344 int rawcycpp_shape_dormant_buying_val[1] = {-1};
1346 int rawcycpp_shape_dormant_buying_min[1] = {-1};
1348 int rawcycpp_shape_dormant_buying_max[1] = {-1};
1350 int rawcycpp_shape_dormant_buying_mean[1] = {-1};
1352 int rawcycpp_shape_dormant_buying_stddev[1] = {-1};
1354 int rawcycpp_shape_dormant_buying_end_probability[1] = {-1};
1356 int rawcycpp_shape_dormant_buying_disruption_probability[1] = {-1};
1358 int rawcycpp_shape_dormant_buying_disruption[1] = {-1};
1360 int rawcycpp_shape_buying_size_type[1] = {-1};
1362 int rawcycpp_shape_buying_size_val[1] = {-1};
1364 int rawcycpp_shape_buying_size_min[1] = {-1};
1366 int rawcycpp_shape_buying_size_max[1] = {-1};
1368 int rawcycpp_shape_buying_size_mean[1] = {-1};
1370 int rawcycpp_shape_buying_size_stddev[1] = {-1};
1372 int rawcycpp_shape_reorder_point[1] = {-1};
1374 int rawcycpp_shape_reorder_quantity[1] = {-1};
1376 int rawcycpp_shape_cumulative_cap[1] = {-1};
1378 int rawcycpp_shape_package[1] = {-1};
1379 cycpp_shape_package = std::vector<int>(rawcycpp_shape_package, rawcycpp_shape_package + 1);
1380 int rawcycpp_shape_transport_unit[1] = {-1};
1382 int rawcycpp_shape_inventory[2] = {-1, -1};
1384 int rawcycpp_shape_stocks[2] = {-1, -1};
1385 cycpp_shape_stocks = std::vector<int>(rawcycpp_shape_stocks, rawcycpp_shape_stocks + 2);
1386 int rawcycpp_shape_ready[2] = {-1, -1};
1387 cycpp_shape_ready = std::vector<int>(rawcycpp_shape_ready, rawcycpp_shape_ready + 2);
1388 int rawcycpp_shape_processing[2] = {-1, -1};
1390 int rawcycpp_shape_inventory_tracker[1] = {-1};
1392 int rawcycpp_shape_latitude[1] = {-1};
1394 int rawcycpp_shape_longitude[1] = {-1};
1432 package = m->package;
1441#line 37 "/cycamore/src/storage.cc"
1442 cyclus::toolkit::CommodityProducer::Copy(m);
1447 int rawcycpp_shape_in_commods[2] = {-1, -1};
1449 int rawcycpp_shape_in_commod_prefs[2] = {-1, -1};
1451 int rawcycpp_shape_out_commods[2] = {-1, -1};
1453 int rawcycpp_shape_in_recipe[1] = {-1};
1455 int rawcycpp_shape_residence_time[1] = {-1};
1457 int rawcycpp_shape_sell_quantity[1] = {-1};
1459 int rawcycpp_shape_throughput[1] = {-1};
1461 int rawcycpp_shape_max_inv_size[1] = {-1};
1463 int rawcycpp_shape_discrete_handling[1] = {-1};
1465 int rawcycpp_shape_active_buying_frequency_type[1] = {-1};
1467 int rawcycpp_shape_active_buying_val[1] = {-1};
1469 int rawcycpp_shape_active_buying_min[1] = {-1};
1471 int rawcycpp_shape_active_buying_max[1] = {-1};
1473 int rawcycpp_shape_active_buying_mean[1] = {-1};
1475 int rawcycpp_shape_active_buying_stddev[1] = {-1};
1477 int rawcycpp_shape_active_buying_end_probability[1] = {-1};
1479 int rawcycpp_shape_active_buying_disruption_probability[1] = {-1};
1481 int rawcycpp_shape_active_buying_disruption[1] = {-1};
1483 int rawcycpp_shape_dormant_buying_frequency_type[1] = {-1};
1485 int rawcycpp_shape_dormant_buying_val[1] = {-1};
1487 int rawcycpp_shape_dormant_buying_min[1] = {-1};
1489 int rawcycpp_shape_dormant_buying_max[1] = {-1};
1491 int rawcycpp_shape_dormant_buying_mean[1] = {-1};
1493 int rawcycpp_shape_dormant_buying_stddev[1] = {-1};
1495 int rawcycpp_shape_dormant_buying_end_probability[1] = {-1};
1497 int rawcycpp_shape_dormant_buying_disruption_probability[1] = {-1};
1499 int rawcycpp_shape_dormant_buying_disruption[1] = {-1};
1501 int rawcycpp_shape_buying_size_type[1] = {-1};
1503 int rawcycpp_shape_buying_size_val[1] = {-1};
1505 int rawcycpp_shape_buying_size_min[1] = {-1};
1507 int rawcycpp_shape_buying_size_max[1] = {-1};
1509 int rawcycpp_shape_buying_size_mean[1] = {-1};
1511 int rawcycpp_shape_buying_size_stddev[1] = {-1};
1513 int rawcycpp_shape_reorder_point[1] = {-1};
1515 int rawcycpp_shape_reorder_quantity[1] = {-1};
1517 int rawcycpp_shape_cumulative_cap[1] = {-1};
1519 int rawcycpp_shape_package[1] = {-1};
1520 cycpp_shape_package = std::vector<int>(rawcycpp_shape_package, rawcycpp_shape_package + 1);
1521 int rawcycpp_shape_transport_unit[1] = {-1};
1523 int rawcycpp_shape_inventory[2] = {-1, -1};
1525 int rawcycpp_shape_stocks[2] = {-1, -1};
1526 cycpp_shape_stocks = std::vector<int>(rawcycpp_shape_stocks, rawcycpp_shape_stocks + 2);
1527 int rawcycpp_shape_ready[2] = {-1, -1};
1528 cycpp_shape_ready = std::vector<int>(rawcycpp_shape_ready, rawcycpp_shape_ready + 2);
1529 int rawcycpp_shape_processing[2] = {-1, -1};
1531 int rawcycpp_shape_inventory_tracker[1] = {-1};
1533 int rawcycpp_shape_latitude[1] = {-1};
1535 int rawcycpp_shape_longitude[1] = {-1};
1537 cyclus::QueryResult qr = b->Query(
"Info", NULL);
1538 in_commods = qr.GetVal<std::vector< std::string > >(
"in_commods");
1539 in_commod_prefs = qr.GetVal<std::vector< double > >(
"in_commod_prefs");
1540 out_commods = qr.GetVal<std::vector< std::string > >(
"out_commods");
1541 in_recipe = qr.GetVal<std::string>(
"in_recipe");
1544 throughput = qr.GetVal<
double>(
"throughput");
1574 package = qr.GetVal<std::string>("package");
1576 latitude = qr.GetVal<
double>(
"latitude");
1577 longitude = qr.GetVal<
double>(
"longitude");
1580 ready.capacity(1e+300);
1583#line 43 "/cycamore/src/storage.cc"
1585 cyclus::toolkit::Commodity commod = cyclus::toolkit::Commodity(
out_commods.front());
1586 cyclus::toolkit::CommodityProducer::Add(commod);
1587 cyclus::toolkit::CommodityProducer::SetCapacity(commod,
throughput);