686 cyclus::Facility::InfileToDb(tree, di);
687 int rawcycpp_shape_in_commods[2] = {-1, -1};
689 int rawcycpp_shape_in_commod_prefs[2] = {-1, -1};
691 int rawcycpp_shape_out_commods[2] = {-1, -1};
693 int rawcycpp_shape_in_recipe[1] = {-1};
695 int rawcycpp_shape_residence_time[1] = {-1};
697 int rawcycpp_shape_sell_quantity[1] = {-1};
699 int rawcycpp_shape_throughput[1] = {-1};
701 int rawcycpp_shape_max_inv_size[1] = {-1};
703 int rawcycpp_shape_discrete_handling[1] = {-1};
705 int rawcycpp_shape_active_buying_frequency_type[1] = {-1};
707 int rawcycpp_shape_active_buying_val[1] = {-1};
709 int rawcycpp_shape_active_buying_min[1] = {-1};
711 int rawcycpp_shape_active_buying_max[1] = {-1};
713 int rawcycpp_shape_active_buying_mean[1] = {-1};
715 int rawcycpp_shape_active_buying_stddev[1] = {-1};
717 int rawcycpp_shape_active_buying_end_probability[1] = {-1};
719 int rawcycpp_shape_active_buying_disruption_probability[1] = {-1};
721 int rawcycpp_shape_active_buying_disruption[1] = {-1};
723 int rawcycpp_shape_dormant_buying_frequency_type[1] = {-1};
725 int rawcycpp_shape_dormant_buying_val[1] = {-1};
727 int rawcycpp_shape_dormant_buying_min[1] = {-1};
729 int rawcycpp_shape_dormant_buying_max[1] = {-1};
731 int rawcycpp_shape_dormant_buying_mean[1] = {-1};
733 int rawcycpp_shape_dormant_buying_stddev[1] = {-1};
735 int rawcycpp_shape_dormant_buying_end_probability[1] = {-1};
737 int rawcycpp_shape_dormant_buying_disruption_probability[1] = {-1};
739 int rawcycpp_shape_dormant_buying_disruption[1] = {-1};
741 int rawcycpp_shape_buying_size_type[1] = {-1};
743 int rawcycpp_shape_buying_size_val[1] = {-1};
745 int rawcycpp_shape_buying_size_min[1] = {-1};
747 int rawcycpp_shape_buying_size_max[1] = {-1};
749 int rawcycpp_shape_buying_size_mean[1] = {-1};
751 int rawcycpp_shape_buying_size_stddev[1] = {-1};
753 int rawcycpp_shape_reorder_point[1] = {-1};
755 int rawcycpp_shape_reorder_quantity[1] = {-1};
757 int rawcycpp_shape_cumulative_cap[1] = {-1};
759 int rawcycpp_shape_package[1] = {-1};
760 cycpp_shape_package = std::vector<int>(rawcycpp_shape_package, rawcycpp_shape_package + 1);
761 int rawcycpp_shape_transport_unit[1] = {-1};
763 int rawcycpp_shape_inventory[2] = {-1, -1};
765 int rawcycpp_shape_stocks[2] = {-1, -1};
766 cycpp_shape_stocks = std::vector<int>(rawcycpp_shape_stocks, rawcycpp_shape_stocks + 2);
767 int rawcycpp_shape_ready[2] = {-1, -1};
768 cycpp_shape_ready = std::vector<int>(rawcycpp_shape_ready, rawcycpp_shape_ready + 2);
769 int rawcycpp_shape_processing[2] = {-1, -1};
771 int rawcycpp_shape_inventory_tracker[1] = {-1};
773 int rawcycpp_shape_latitude[1] = {-1};
775 int rawcycpp_shape_longitude[1] = {-1};
777 cyclus::InfileTree* sub = tree->SubTree(
"config/*");
781 cyclus::InfileTree* bub = sub->SubTree(
"in_commods", 0);
782 cyclus::InfileTree* sub = bub;
783 int n1 = sub->NMatches(
"val");
784 std::vector< std::string > in_commods_val;
785 in_commods_val.resize(n1);
786 for (
int i1 = 0; i1 < n1; ++i1) {
789 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
792 in_commods_val[i1] = elem;
796 if (sub->NMatches(
"in_commod_prefs") > 0) {
798 cyclus::InfileTree* bub = sub->SubTree(
"in_commod_prefs", 0);
799 cyclus::InfileTree* sub = bub;
800 int n1 = sub->NMatches(
"val");
801 std::vector< double > in_commod_prefs_val;
802 in_commod_prefs_val.resize(n1);
803 for (
int i1 = 0; i1 < n1; ++i1) {
806 double elem_in = cyclus::Query<double>(sub,
"val", i1);
809 in_commod_prefs_val[i1] = elem;
814 std::vector< double > in_commod_prefs_tmp;
815 in_commod_prefs_tmp.resize(0);
821 cyclus::InfileTree* bub = sub->SubTree(
"out_commods", 0);
822 cyclus::InfileTree* sub = bub;
823 int n1 = sub->NMatches(
"val");
824 std::vector< std::string > out_commods_val;
825 out_commods_val.resize(n1);
826 for (
int i1 = 0; i1 < n1; ++i1) {
829 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
832 out_commods_val[i1] = elem;
836 if (sub->NMatches(
"in_recipe") > 0) {
838 std::string in_recipe_val = cyclus::Query<std::string>(sub,
"in_recipe");
842 std::string in_recipe_tmp(
"");
845 if (sub->NMatches(
"residence_time") > 0) {
847 int residence_time_val = cyclus::Query<int>(sub,
"residence_time");
851 int residence_time_tmp = 0;
854 if (sub->NMatches(
"sell_quantity") > 0) {
856 double sell_quantity_val = cyclus::Query<double>(sub,
"sell_quantity");
860 double sell_quantity_tmp = 0;
863 if (sub->NMatches(
"throughput") > 0) {
865 double throughput_val = cyclus::Query<double>(sub,
"throughput");
869 double throughput_tmp = 1e+299;
872 if (sub->NMatches(
"max_inv_size") > 0) {
874 double max_inv_size_val = cyclus::Query<double>(sub,
"max_inv_size");
878 double max_inv_size_tmp = 1e+299;
881 if (sub->NMatches(
"discrete_handling") > 0) {
883 bool discrete_handling_val = cyclus::Query<bool>(sub,
"discrete_handling");
887 bool discrete_handling_tmp =
false;
890 if (sub->NMatches(
"active_buying_frequency_type") > 0) {
892 std::string active_buying_frequency_type_val = cyclus::Query<std::string>(sub,
"active_buying_frequency_type");
896 std::string active_buying_frequency_type_tmp(
"Fixed");
899 if (sub->NMatches(
"active_buying_val") > 0) {
901 int active_buying_val_val = cyclus::Query<int>(sub,
"active_buying_val");
905 int active_buying_val_tmp = -1;
908 if (sub->NMatches(
"active_buying_min") > 0) {
910 int active_buying_min_val = cyclus::Query<int>(sub,
"active_buying_min");
914 int active_buying_min_tmp = -1;
917 if (sub->NMatches(
"active_buying_max") > 0) {
919 int active_buying_max_val = cyclus::Query<int>(sub,
"active_buying_max");
923 int active_buying_max_tmp = -1;
926 if (sub->NMatches(
"active_buying_mean") > 0) {
928 double active_buying_mean_val = cyclus::Query<double>(sub,
"active_buying_mean");
932 double active_buying_mean_tmp = -1;
935 if (sub->NMatches(
"active_buying_stddev") > 0) {
937 double active_buying_stddev_val = cyclus::Query<double>(sub,
"active_buying_stddev");
941 double active_buying_stddev_tmp = -1;
944 if (sub->NMatches(
"active_buying_end_probability") > 0) {
946 double active_buying_end_probability_val = cyclus::Query<double>(sub,
"active_buying_end_probability");
950 double active_buying_end_probability_tmp = 0;
953 if (sub->NMatches(
"active_buying_disruption_probability") > 0) {
955 double active_buying_disruption_probability_val = cyclus::Query<double>(sub,
"active_buying_disruption_probability");
959 double active_buying_disruption_probability_tmp = 0;
962 if (sub->NMatches(
"active_buying_disruption") > 0) {
964 int active_buying_disruption_val = cyclus::Query<int>(sub,
"active_buying_disruption");
968 int active_buying_disruption_tmp = -1;
971 if (sub->NMatches(
"dormant_buying_frequency_type") > 0) {
973 std::string dormant_buying_frequency_type_val = cyclus::Query<std::string>(sub,
"dormant_buying_frequency_type");
977 std::string dormant_buying_frequency_type_tmp(
"Fixed");
980 if (sub->NMatches(
"dormant_buying_val") > 0) {
982 int dormant_buying_val_val = cyclus::Query<int>(sub,
"dormant_buying_val");
986 int dormant_buying_val_tmp = -1;
989 if (sub->NMatches(
"dormant_buying_min") > 0) {
991 int dormant_buying_min_val = cyclus::Query<int>(sub,
"dormant_buying_min");
995 int dormant_buying_min_tmp = -1;
998 if (sub->NMatches(
"dormant_buying_max") > 0) {
1000 int dormant_buying_max_val = cyclus::Query<int>(sub,
"dormant_buying_max");
1004 int dormant_buying_max_tmp = -1;
1007 if (sub->NMatches(
"dormant_buying_mean") > 0) {
1009 double dormant_buying_mean_val = cyclus::Query<double>(sub,
"dormant_buying_mean");
1013 double dormant_buying_mean_tmp = -1;
1016 if (sub->NMatches(
"dormant_buying_stddev") > 0) {
1018 double dormant_buying_stddev_val = cyclus::Query<double>(sub,
"dormant_buying_stddev");
1022 double dormant_buying_stddev_tmp = -1;
1025 if (sub->NMatches(
"dormant_buying_end_probability") > 0) {
1027 double dormant_buying_end_probability_val = cyclus::Query<double>(sub,
"dormant_buying_end_probability");
1031 double dormant_buying_end_probability_tmp = 0;
1034 if (sub->NMatches(
"dormant_buying_disruption_probability") > 0) {
1036 double dormant_buying_disruption_probability_val = cyclus::Query<double>(sub,
"dormant_buying_disruption_probability");
1040 double dormant_buying_disruption_probability_tmp = 0;
1043 if (sub->NMatches(
"dormant_buying_disruption") > 0) {
1045 int dormant_buying_disruption_val = cyclus::Query<int>(sub,
"dormant_buying_disruption");
1049 int dormant_buying_disruption_tmp = -1;
1052 if (sub->NMatches(
"buying_size_type") > 0) {
1054 std::string buying_size_type_val = cyclus::Query<std::string>(sub,
"buying_size_type");
1058 std::string buying_size_type_tmp(
"Fixed");
1061 if (sub->NMatches(
"buying_size_val") > 0) {
1063 double buying_size_val_val = cyclus::Query<double>(sub,
"buying_size_val");
1067 double buying_size_val_tmp = 1.0;
1070 if (sub->NMatches(
"buying_size_min") > 0) {
1072 double buying_size_min_val = cyclus::Query<double>(sub,
"buying_size_min");
1076 double buying_size_min_tmp = -1.0;
1079 if (sub->NMatches(
"buying_size_max") > 0) {
1081 double buying_size_max_val = cyclus::Query<double>(sub,
"buying_size_max");
1085 double buying_size_max_tmp = -1.0;
1088 if (sub->NMatches(
"buying_size_mean") > 0) {
1090 double buying_size_mean_val = cyclus::Query<double>(sub,
"buying_size_mean");
1094 double buying_size_mean_tmp = -1.0;
1097 if (sub->NMatches(
"buying_size_stddev") > 0) {
1099 double buying_size_stddev_val = cyclus::Query<double>(sub,
"buying_size_stddev");
1103 double buying_size_stddev_tmp = -1.0;
1106 if (sub->NMatches(
"reorder_point") > 0) {
1108 double reorder_point_val = cyclus::Query<double>(sub,
"reorder_point");
1112 double reorder_point_tmp = -1;
1115 if (sub->NMatches(
"reorder_quantity") > 0) {
1117 double reorder_quantity_val = cyclus::Query<double>(sub,
"reorder_quantity");
1121 double reorder_quantity_tmp = -1;
1124 if (sub->NMatches(
"cumulative_cap") > 0) {
1126 double cumulative_cap_val = cyclus::Query<double>(sub,
"cumulative_cap");
1130 double cumulative_cap_tmp = -1;
1133 if (sub->NMatches(
"package") > 0) {
1135 std::string package_val = cyclus::Query<std::string>(sub,
"package");
1136 package = package_val;
1139 std::string package_tmp(
"unpackaged");
1140 package = package_tmp;
1142 if (sub->NMatches(
"transport_unit") > 0) {
1144 std::string transport_unit_val = cyclus::Query<std::string>(sub,
"transport_unit");
1148 std::string transport_unit_tmp(
"unrestricted");
1151 if (sub->NMatches(
"latitude") > 0) {
1153 double latitude_val = cyclus::Query<double>(sub,
"latitude");
1157 double latitude_tmp = 0.0;
1160 if (sub->NMatches(
"longitude") > 0) {
1162 double longitude_val = cyclus::Query<double>(sub,
"longitude");
1166 double longitude_tmp = 0.0;
1269 int rawcycpp_shape_in_commods[2] = {-1, -1};
1271 int rawcycpp_shape_in_commod_prefs[2] = {-1, -1};
1273 int rawcycpp_shape_out_commods[2] = {-1, -1};
1275 int rawcycpp_shape_in_recipe[1] = {-1};
1277 int rawcycpp_shape_residence_time[1] = {-1};
1279 int rawcycpp_shape_sell_quantity[1] = {-1};
1281 int rawcycpp_shape_throughput[1] = {-1};
1283 int rawcycpp_shape_max_inv_size[1] = {-1};
1285 int rawcycpp_shape_discrete_handling[1] = {-1};
1287 int rawcycpp_shape_active_buying_frequency_type[1] = {-1};
1289 int rawcycpp_shape_active_buying_val[1] = {-1};
1291 int rawcycpp_shape_active_buying_min[1] = {-1};
1293 int rawcycpp_shape_active_buying_max[1] = {-1};
1295 int rawcycpp_shape_active_buying_mean[1] = {-1};
1297 int rawcycpp_shape_active_buying_stddev[1] = {-1};
1299 int rawcycpp_shape_active_buying_end_probability[1] = {-1};
1301 int rawcycpp_shape_active_buying_disruption_probability[1] = {-1};
1303 int rawcycpp_shape_active_buying_disruption[1] = {-1};
1305 int rawcycpp_shape_dormant_buying_frequency_type[1] = {-1};
1307 int rawcycpp_shape_dormant_buying_val[1] = {-1};
1309 int rawcycpp_shape_dormant_buying_min[1] = {-1};
1311 int rawcycpp_shape_dormant_buying_max[1] = {-1};
1313 int rawcycpp_shape_dormant_buying_mean[1] = {-1};
1315 int rawcycpp_shape_dormant_buying_stddev[1] = {-1};
1317 int rawcycpp_shape_dormant_buying_end_probability[1] = {-1};
1319 int rawcycpp_shape_dormant_buying_disruption_probability[1] = {-1};
1321 int rawcycpp_shape_dormant_buying_disruption[1] = {-1};
1323 int rawcycpp_shape_buying_size_type[1] = {-1};
1325 int rawcycpp_shape_buying_size_val[1] = {-1};
1327 int rawcycpp_shape_buying_size_min[1] = {-1};
1329 int rawcycpp_shape_buying_size_max[1] = {-1};
1331 int rawcycpp_shape_buying_size_mean[1] = {-1};
1333 int rawcycpp_shape_buying_size_stddev[1] = {-1};
1335 int rawcycpp_shape_reorder_point[1] = {-1};
1337 int rawcycpp_shape_reorder_quantity[1] = {-1};
1339 int rawcycpp_shape_cumulative_cap[1] = {-1};
1341 int rawcycpp_shape_package[1] = {-1};
1342 cycpp_shape_package = std::vector<int>(rawcycpp_shape_package, rawcycpp_shape_package + 1);
1343 int rawcycpp_shape_transport_unit[1] = {-1};
1345 int rawcycpp_shape_inventory[2] = {-1, -1};
1347 int rawcycpp_shape_stocks[2] = {-1, -1};
1348 cycpp_shape_stocks = std::vector<int>(rawcycpp_shape_stocks, rawcycpp_shape_stocks + 2);
1349 int rawcycpp_shape_ready[2] = {-1, -1};
1350 cycpp_shape_ready = std::vector<int>(rawcycpp_shape_ready, rawcycpp_shape_ready + 2);
1351 int rawcycpp_shape_processing[2] = {-1, -1};
1353 int rawcycpp_shape_inventory_tracker[1] = {-1};
1355 int rawcycpp_shape_latitude[1] = {-1};
1357 int rawcycpp_shape_longitude[1] = {-1};
1395 package = m->package;
1404#line 37 "/cycamore/src/storage.cc"
1405 cyclus::toolkit::CommodityProducer::Copy(m);
1410 int rawcycpp_shape_in_commods[2] = {-1, -1};
1412 int rawcycpp_shape_in_commod_prefs[2] = {-1, -1};
1414 int rawcycpp_shape_out_commods[2] = {-1, -1};
1416 int rawcycpp_shape_in_recipe[1] = {-1};
1418 int rawcycpp_shape_residence_time[1] = {-1};
1420 int rawcycpp_shape_sell_quantity[1] = {-1};
1422 int rawcycpp_shape_throughput[1] = {-1};
1424 int rawcycpp_shape_max_inv_size[1] = {-1};
1426 int rawcycpp_shape_discrete_handling[1] = {-1};
1428 int rawcycpp_shape_active_buying_frequency_type[1] = {-1};
1430 int rawcycpp_shape_active_buying_val[1] = {-1};
1432 int rawcycpp_shape_active_buying_min[1] = {-1};
1434 int rawcycpp_shape_active_buying_max[1] = {-1};
1436 int rawcycpp_shape_active_buying_mean[1] = {-1};
1438 int rawcycpp_shape_active_buying_stddev[1] = {-1};
1440 int rawcycpp_shape_active_buying_end_probability[1] = {-1};
1442 int rawcycpp_shape_active_buying_disruption_probability[1] = {-1};
1444 int rawcycpp_shape_active_buying_disruption[1] = {-1};
1446 int rawcycpp_shape_dormant_buying_frequency_type[1] = {-1};
1448 int rawcycpp_shape_dormant_buying_val[1] = {-1};
1450 int rawcycpp_shape_dormant_buying_min[1] = {-1};
1452 int rawcycpp_shape_dormant_buying_max[1] = {-1};
1454 int rawcycpp_shape_dormant_buying_mean[1] = {-1};
1456 int rawcycpp_shape_dormant_buying_stddev[1] = {-1};
1458 int rawcycpp_shape_dormant_buying_end_probability[1] = {-1};
1460 int rawcycpp_shape_dormant_buying_disruption_probability[1] = {-1};
1462 int rawcycpp_shape_dormant_buying_disruption[1] = {-1};
1464 int rawcycpp_shape_buying_size_type[1] = {-1};
1466 int rawcycpp_shape_buying_size_val[1] = {-1};
1468 int rawcycpp_shape_buying_size_min[1] = {-1};
1470 int rawcycpp_shape_buying_size_max[1] = {-1};
1472 int rawcycpp_shape_buying_size_mean[1] = {-1};
1474 int rawcycpp_shape_buying_size_stddev[1] = {-1};
1476 int rawcycpp_shape_reorder_point[1] = {-1};
1478 int rawcycpp_shape_reorder_quantity[1] = {-1};
1480 int rawcycpp_shape_cumulative_cap[1] = {-1};
1482 int rawcycpp_shape_package[1] = {-1};
1483 cycpp_shape_package = std::vector<int>(rawcycpp_shape_package, rawcycpp_shape_package + 1);
1484 int rawcycpp_shape_transport_unit[1] = {-1};
1486 int rawcycpp_shape_inventory[2] = {-1, -1};
1488 int rawcycpp_shape_stocks[2] = {-1, -1};
1489 cycpp_shape_stocks = std::vector<int>(rawcycpp_shape_stocks, rawcycpp_shape_stocks + 2);
1490 int rawcycpp_shape_ready[2] = {-1, -1};
1491 cycpp_shape_ready = std::vector<int>(rawcycpp_shape_ready, rawcycpp_shape_ready + 2);
1492 int rawcycpp_shape_processing[2] = {-1, -1};
1494 int rawcycpp_shape_inventory_tracker[1] = {-1};
1496 int rawcycpp_shape_latitude[1] = {-1};
1498 int rawcycpp_shape_longitude[1] = {-1};
1500 cyclus::QueryResult qr = b->Query(
"Info", NULL);
1501 in_commods = qr.GetVal<std::vector< std::string > >(
"in_commods");
1502 in_commod_prefs = qr.GetVal<std::vector< double > >(
"in_commod_prefs");
1503 out_commods = qr.GetVal<std::vector< std::string > >(
"out_commods");
1504 in_recipe = qr.GetVal<std::string>(
"in_recipe");
1507 throughput = qr.GetVal<
double>(
"throughput");
1537 package = qr.GetVal<std::string>("package");
1539 latitude = qr.GetVal<
double>(
"latitude");
1540 longitude = qr.GetVal<
double>(
"longitude");
1543 ready.capacity(1e+300);
1546#line 43 "/cycamore/src/storage.cc"
1548 cyclus::toolkit::Commodity commod = cyclus::toolkit::Commodity(
out_commods.front());
1549 cyclus::toolkit::CommodityProducer::Add(commod);
1550 cyclus::toolkit::CommodityProducer::SetCapacity(commod,
throughput);