577 cyclus::Facility::InfileToDb(tree, di);
578 int rawcycpp_shape_in_commods[2] = {-1, -1};
580 int rawcycpp_shape_in_commod_prefs[2] = {-1, -1};
582 int rawcycpp_shape_out_commods[2] = {-1, -1};
584 int rawcycpp_shape_in_recipe[1] = {-1};
586 int rawcycpp_shape_residence_time[1] = {-1};
588 int rawcycpp_shape_sell_quantity[1] = {-1};
590 int rawcycpp_shape_throughput[1] = {-1};
592 int rawcycpp_shape_max_inv_size[1] = {-1};
594 int rawcycpp_shape_discrete_handling[1] = {-1};
596 int rawcycpp_shape_active_buying_frequency_type[1] = {-1};
598 int rawcycpp_shape_active_buying_val[1] = {-1};
600 int rawcycpp_shape_active_buying_min[1] = {-1};
602 int rawcycpp_shape_active_buying_max[1] = {-1};
604 int rawcycpp_shape_active_buying_mean[1] = {-1};
606 int rawcycpp_shape_active_buying_stddev[1] = {-1};
608 int rawcycpp_shape_dormant_buying_frequency_type[1] = {-1};
610 int rawcycpp_shape_dormant_buying_val[1] = {-1};
612 int rawcycpp_shape_dormant_buying_min[1] = {-1};
614 int rawcycpp_shape_dormant_buying_max[1] = {-1};
616 int rawcycpp_shape_dormant_buying_mean[1] = {-1};
618 int rawcycpp_shape_dormant_buying_stddev[1] = {-1};
620 int rawcycpp_shape_buying_size_type[1] = {-1};
622 int rawcycpp_shape_buying_size_val[1] = {-1};
624 int rawcycpp_shape_buying_size_min[1] = {-1};
626 int rawcycpp_shape_buying_size_max[1] = {-1};
628 int rawcycpp_shape_buying_size_mean[1] = {-1};
630 int rawcycpp_shape_buying_size_stddev[1] = {-1};
632 int rawcycpp_shape_reorder_point[1] = {-1};
634 int rawcycpp_shape_reorder_quantity[1] = {-1};
636 int rawcycpp_shape_cumulative_cap[1] = {-1};
638 int rawcycpp_shape_package[1] = {-1};
639 cycpp_shape_package = std::vector<int>(rawcycpp_shape_package, rawcycpp_shape_package + 1);
640 int rawcycpp_shape_transport_unit[1] = {-1};
642 int rawcycpp_shape_inventory[2] = {-1, -1};
644 int rawcycpp_shape_stocks[2] = {-1, -1};
645 cycpp_shape_stocks = std::vector<int>(rawcycpp_shape_stocks, rawcycpp_shape_stocks + 2);
646 int rawcycpp_shape_ready[2] = {-1, -1};
647 cycpp_shape_ready = std::vector<int>(rawcycpp_shape_ready, rawcycpp_shape_ready + 2);
648 int rawcycpp_shape_processing[2] = {-1, -1};
650 int rawcycpp_shape_inventory_tracker[1] = {-1};
652 int rawcycpp_shape_latitude[1] = {-1};
654 int rawcycpp_shape_longitude[1] = {-1};
656 cyclus::InfileTree* sub = tree->SubTree(
"config/*");
660 cyclus::InfileTree* bub = sub->SubTree(
"in_commods", 0);
661 cyclus::InfileTree* sub = bub;
662 int n1 = sub->NMatches(
"val");
663 std::vector< std::string > in_commods_val;
664 in_commods_val.resize(n1);
665 for (
int i1 = 0; i1 < n1; ++i1) {
668 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
671 in_commods_val[i1] = elem;
675 if (sub->NMatches(
"in_commod_prefs") > 0) {
677 cyclus::InfileTree* bub = sub->SubTree(
"in_commod_prefs", 0);
678 cyclus::InfileTree* sub = bub;
679 int n1 = sub->NMatches(
"val");
680 std::vector< double > in_commod_prefs_val;
681 in_commod_prefs_val.resize(n1);
682 for (
int i1 = 0; i1 < n1; ++i1) {
685 double elem_in = cyclus::Query<double>(sub,
"val", i1);
688 in_commod_prefs_val[i1] = elem;
693 std::vector< double > in_commod_prefs_tmp;
694 in_commod_prefs_tmp.resize(0);
700 cyclus::InfileTree* bub = sub->SubTree(
"out_commods", 0);
701 cyclus::InfileTree* sub = bub;
702 int n1 = sub->NMatches(
"val");
703 std::vector< std::string > out_commods_val;
704 out_commods_val.resize(n1);
705 for (
int i1 = 0; i1 < n1; ++i1) {
708 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
711 out_commods_val[i1] = elem;
715 if (sub->NMatches(
"in_recipe") > 0) {
717 std::string in_recipe_val = cyclus::Query<std::string>(sub,
"in_recipe");
721 std::string in_recipe_tmp(
"");
724 if (sub->NMatches(
"residence_time") > 0) {
726 int residence_time_val = cyclus::Query<int>(sub,
"residence_time");
730 int residence_time_tmp = 0;
733 if (sub->NMatches(
"sell_quantity") > 0) {
735 double sell_quantity_val = cyclus::Query<double>(sub,
"sell_quantity");
739 double sell_quantity_tmp = 0;
742 if (sub->NMatches(
"throughput") > 0) {
744 double throughput_val = cyclus::Query<double>(sub,
"throughput");
748 double throughput_tmp = 1e+299;
751 if (sub->NMatches(
"max_inv_size") > 0) {
753 double max_inv_size_val = cyclus::Query<double>(sub,
"max_inv_size");
757 double max_inv_size_tmp = 1e+299;
760 if (sub->NMatches(
"discrete_handling") > 0) {
762 bool discrete_handling_val = cyclus::Query<bool>(sub,
"discrete_handling");
766 bool discrete_handling_tmp =
false;
769 if (sub->NMatches(
"active_buying_frequency_type") > 0) {
771 std::string active_buying_frequency_type_val = cyclus::Query<std::string>(sub,
"active_buying_frequency_type");
775 std::string active_buying_frequency_type_tmp(
"Fixed");
778 if (sub->NMatches(
"active_buying_val") > 0) {
780 int active_buying_val_val = cyclus::Query<int>(sub,
"active_buying_val");
784 int active_buying_val_tmp = -1;
787 if (sub->NMatches(
"active_buying_min") > 0) {
789 int active_buying_min_val = cyclus::Query<int>(sub,
"active_buying_min");
793 int active_buying_min_tmp = -1;
796 if (sub->NMatches(
"active_buying_max") > 0) {
798 int active_buying_max_val = cyclus::Query<int>(sub,
"active_buying_max");
802 int active_buying_max_tmp = -1;
805 if (sub->NMatches(
"active_buying_mean") > 0) {
807 double active_buying_mean_val = cyclus::Query<double>(sub,
"active_buying_mean");
811 double active_buying_mean_tmp = -1;
814 if (sub->NMatches(
"active_buying_stddev") > 0) {
816 double active_buying_stddev_val = cyclus::Query<double>(sub,
"active_buying_stddev");
820 double active_buying_stddev_tmp = -1;
823 if (sub->NMatches(
"dormant_buying_frequency_type") > 0) {
825 std::string dormant_buying_frequency_type_val = cyclus::Query<std::string>(sub,
"dormant_buying_frequency_type");
829 std::string dormant_buying_frequency_type_tmp(
"Fixed");
832 if (sub->NMatches(
"dormant_buying_val") > 0) {
834 int dormant_buying_val_val = cyclus::Query<int>(sub,
"dormant_buying_val");
838 int dormant_buying_val_tmp = -1;
841 if (sub->NMatches(
"dormant_buying_min") > 0) {
843 int dormant_buying_min_val = cyclus::Query<int>(sub,
"dormant_buying_min");
847 int dormant_buying_min_tmp = -1;
850 if (sub->NMatches(
"dormant_buying_max") > 0) {
852 int dormant_buying_max_val = cyclus::Query<int>(sub,
"dormant_buying_max");
856 int dormant_buying_max_tmp = -1;
859 if (sub->NMatches(
"dormant_buying_mean") > 0) {
861 double dormant_buying_mean_val = cyclus::Query<double>(sub,
"dormant_buying_mean");
865 double dormant_buying_mean_tmp = -1;
868 if (sub->NMatches(
"dormant_buying_stddev") > 0) {
870 double dormant_buying_stddev_val = cyclus::Query<double>(sub,
"dormant_buying_stddev");
874 double dormant_buying_stddev_tmp = -1;
877 if (sub->NMatches(
"buying_size_type") > 0) {
879 std::string buying_size_type_val = cyclus::Query<std::string>(sub,
"buying_size_type");
883 std::string buying_size_type_tmp(
"Fixed");
886 if (sub->NMatches(
"buying_size_val") > 0) {
888 double buying_size_val_val = cyclus::Query<double>(sub,
"buying_size_val");
892 double buying_size_val_tmp = 1.0;
895 if (sub->NMatches(
"buying_size_min") > 0) {
897 double buying_size_min_val = cyclus::Query<double>(sub,
"buying_size_min");
901 double buying_size_min_tmp = -1.0;
904 if (sub->NMatches(
"buying_size_max") > 0) {
906 double buying_size_max_val = cyclus::Query<double>(sub,
"buying_size_max");
910 double buying_size_max_tmp = -1.0;
913 if (sub->NMatches(
"buying_size_mean") > 0) {
915 double buying_size_mean_val = cyclus::Query<double>(sub,
"buying_size_mean");
919 double buying_size_mean_tmp = -1.0;
922 if (sub->NMatches(
"buying_size_stddev") > 0) {
924 double buying_size_stddev_val = cyclus::Query<double>(sub,
"buying_size_stddev");
928 double buying_size_stddev_tmp = -1.0;
931 if (sub->NMatches(
"reorder_point") > 0) {
933 double reorder_point_val = cyclus::Query<double>(sub,
"reorder_point");
937 double reorder_point_tmp = -1;
940 if (sub->NMatches(
"reorder_quantity") > 0) {
942 double reorder_quantity_val = cyclus::Query<double>(sub,
"reorder_quantity");
946 double reorder_quantity_tmp = -1;
949 if (sub->NMatches(
"cumulative_cap") > 0) {
951 double cumulative_cap_val = cyclus::Query<double>(sub,
"cumulative_cap");
955 double cumulative_cap_tmp = -1;
958 if (sub->NMatches(
"package") > 0) {
960 std::string package_val = cyclus::Query<std::string>(sub,
"package");
961 package = package_val;
964 std::string package_tmp(
"unpackaged");
965 package = package_tmp;
967 if (sub->NMatches(
"transport_unit") > 0) {
969 std::string transport_unit_val = cyclus::Query<std::string>(sub,
"transport_unit");
973 std::string transport_unit_tmp(
"unrestricted");
976 if (sub->NMatches(
"latitude") > 0) {
978 double latitude_val = cyclus::Query<double>(sub,
"latitude");
982 double latitude_tmp = 0.0;
985 if (sub->NMatches(
"longitude") > 0) {
987 double longitude_val = cyclus::Query<double>(sub,
"longitude");
991 double longitude_tmp = 0.0;
1082 int rawcycpp_shape_in_commods[2] = {-1, -1};
1084 int rawcycpp_shape_in_commod_prefs[2] = {-1, -1};
1086 int rawcycpp_shape_out_commods[2] = {-1, -1};
1088 int rawcycpp_shape_in_recipe[1] = {-1};
1090 int rawcycpp_shape_residence_time[1] = {-1};
1092 int rawcycpp_shape_sell_quantity[1] = {-1};
1094 int rawcycpp_shape_throughput[1] = {-1};
1096 int rawcycpp_shape_max_inv_size[1] = {-1};
1098 int rawcycpp_shape_discrete_handling[1] = {-1};
1100 int rawcycpp_shape_active_buying_frequency_type[1] = {-1};
1102 int rawcycpp_shape_active_buying_val[1] = {-1};
1104 int rawcycpp_shape_active_buying_min[1] = {-1};
1106 int rawcycpp_shape_active_buying_max[1] = {-1};
1108 int rawcycpp_shape_active_buying_mean[1] = {-1};
1110 int rawcycpp_shape_active_buying_stddev[1] = {-1};
1112 int rawcycpp_shape_dormant_buying_frequency_type[1] = {-1};
1114 int rawcycpp_shape_dormant_buying_val[1] = {-1};
1116 int rawcycpp_shape_dormant_buying_min[1] = {-1};
1118 int rawcycpp_shape_dormant_buying_max[1] = {-1};
1120 int rawcycpp_shape_dormant_buying_mean[1] = {-1};
1122 int rawcycpp_shape_dormant_buying_stddev[1] = {-1};
1124 int rawcycpp_shape_buying_size_type[1] = {-1};
1126 int rawcycpp_shape_buying_size_val[1] = {-1};
1128 int rawcycpp_shape_buying_size_min[1] = {-1};
1130 int rawcycpp_shape_buying_size_max[1] = {-1};
1132 int rawcycpp_shape_buying_size_mean[1] = {-1};
1134 int rawcycpp_shape_buying_size_stddev[1] = {-1};
1136 int rawcycpp_shape_reorder_point[1] = {-1};
1138 int rawcycpp_shape_reorder_quantity[1] = {-1};
1140 int rawcycpp_shape_cumulative_cap[1] = {-1};
1142 int rawcycpp_shape_package[1] = {-1};
1143 cycpp_shape_package = std::vector<int>(rawcycpp_shape_package, rawcycpp_shape_package + 1);
1144 int rawcycpp_shape_transport_unit[1] = {-1};
1146 int rawcycpp_shape_inventory[2] = {-1, -1};
1148 int rawcycpp_shape_stocks[2] = {-1, -1};
1149 cycpp_shape_stocks = std::vector<int>(rawcycpp_shape_stocks, rawcycpp_shape_stocks + 2);
1150 int rawcycpp_shape_ready[2] = {-1, -1};
1151 cycpp_shape_ready = std::vector<int>(rawcycpp_shape_ready, rawcycpp_shape_ready + 2);
1152 int rawcycpp_shape_processing[2] = {-1, -1};
1154 int rawcycpp_shape_inventory_tracker[1] = {-1};
1156 int rawcycpp_shape_latitude[1] = {-1};
1158 int rawcycpp_shape_longitude[1] = {-1};
1190 package = m->package;
1194 inventory.capacity(m->inventory.capacity());
1195 stocks.capacity(m->stocks.capacity());
1196 ready.capacity(m->ready.capacity());
1197 processing.capacity(m->processing.capacity());
1199#line 37 "/cycamore/src/storage.cc"
1200 cyclus::toolkit::CommodityProducer::Copy(m);
1205 int rawcycpp_shape_in_commods[2] = {-1, -1};
1207 int rawcycpp_shape_in_commod_prefs[2] = {-1, -1};
1209 int rawcycpp_shape_out_commods[2] = {-1, -1};
1211 int rawcycpp_shape_in_recipe[1] = {-1};
1213 int rawcycpp_shape_residence_time[1] = {-1};
1215 int rawcycpp_shape_sell_quantity[1] = {-1};
1217 int rawcycpp_shape_throughput[1] = {-1};
1219 int rawcycpp_shape_max_inv_size[1] = {-1};
1221 int rawcycpp_shape_discrete_handling[1] = {-1};
1223 int rawcycpp_shape_active_buying_frequency_type[1] = {-1};
1225 int rawcycpp_shape_active_buying_val[1] = {-1};
1227 int rawcycpp_shape_active_buying_min[1] = {-1};
1229 int rawcycpp_shape_active_buying_max[1] = {-1};
1231 int rawcycpp_shape_active_buying_mean[1] = {-1};
1233 int rawcycpp_shape_active_buying_stddev[1] = {-1};
1235 int rawcycpp_shape_dormant_buying_frequency_type[1] = {-1};
1237 int rawcycpp_shape_dormant_buying_val[1] = {-1};
1239 int rawcycpp_shape_dormant_buying_min[1] = {-1};
1241 int rawcycpp_shape_dormant_buying_max[1] = {-1};
1243 int rawcycpp_shape_dormant_buying_mean[1] = {-1};
1245 int rawcycpp_shape_dormant_buying_stddev[1] = {-1};
1247 int rawcycpp_shape_buying_size_type[1] = {-1};
1249 int rawcycpp_shape_buying_size_val[1] = {-1};
1251 int rawcycpp_shape_buying_size_min[1] = {-1};
1253 int rawcycpp_shape_buying_size_max[1] = {-1};
1255 int rawcycpp_shape_buying_size_mean[1] = {-1};
1257 int rawcycpp_shape_buying_size_stddev[1] = {-1};
1259 int rawcycpp_shape_reorder_point[1] = {-1};
1261 int rawcycpp_shape_reorder_quantity[1] = {-1};
1263 int rawcycpp_shape_cumulative_cap[1] = {-1};
1265 int rawcycpp_shape_package[1] = {-1};
1266 cycpp_shape_package = std::vector<int>(rawcycpp_shape_package, rawcycpp_shape_package + 1);
1267 int rawcycpp_shape_transport_unit[1] = {-1};
1269 int rawcycpp_shape_inventory[2] = {-1, -1};
1271 int rawcycpp_shape_stocks[2] = {-1, -1};
1272 cycpp_shape_stocks = std::vector<int>(rawcycpp_shape_stocks, rawcycpp_shape_stocks + 2);
1273 int rawcycpp_shape_ready[2] = {-1, -1};
1274 cycpp_shape_ready = std::vector<int>(rawcycpp_shape_ready, rawcycpp_shape_ready + 2);
1275 int rawcycpp_shape_processing[2] = {-1, -1};
1277 int rawcycpp_shape_inventory_tracker[1] = {-1};
1279 int rawcycpp_shape_latitude[1] = {-1};
1281 int rawcycpp_shape_longitude[1] = {-1};
1283 cyclus::QueryResult qr = b->Query(
"Info", NULL);
1284 in_commods = qr.GetVal<std::vector< std::string > >(
"in_commods");
1285 in_commod_prefs = qr.GetVal<std::vector< double > >(
"in_commod_prefs");
1286 out_commods = qr.GetVal<std::vector< std::string > >(
"out_commods");
1287 in_recipe = qr.GetVal<std::string>(
"in_recipe");
1290 throughput = qr.GetVal<
double>(
"throughput");
1314 package = qr.GetVal<std::string>("package");
1316 latitude = qr.GetVal<
double>(
"latitude");
1317 longitude = qr.GetVal<
double>(
"longitude");
1320 ready.capacity(1e+300);
1323#line 43 "/cycamore/src/storage.cc"
1325 cyclus::toolkit::Commodity commod = cyclus::toolkit::Commodity(
out_commods.front());
1326 cyclus::toolkit::CommodityProducer::Add(commod);
1327 cyclus::toolkit::CommodityProducer::SetCapacity(commod,
throughput);