548 cyclus::Facility::InfileToDb(tree, di);
549 int rawcycpp_shape_fuel_incommods[2] = {-1, -1};
551 int rawcycpp_shape_fuel_inrecipes[2] = {-1, -1};
553 int rawcycpp_shape_fuel_prefs[2] = {-1, -1};
555 int rawcycpp_shape_fuel_outcommods[2] = {-1, -1};
557 int rawcycpp_shape_fuel_outrecipes[2] = {-1, -1};
559 int rawcycpp_shape_recipe_change_times[2] = {-1, -1};
561 int rawcycpp_shape_recipe_change_commods[2] = {-1, -1};
563 int rawcycpp_shape_recipe_change_in[2] = {-1, -1};
565 int rawcycpp_shape_recipe_change_out[2] = {-1, -1};
567 int rawcycpp_shape_assem_size[1] = {-1};
569 int rawcycpp_shape_n_assem_batch[1] = {-1};
571 int rawcycpp_shape_n_assem_core[1] = {-1};
573 int rawcycpp_shape_n_assem_fresh[1] = {-1};
575 int rawcycpp_shape_n_assem_spent[1] = {-1};
577 int rawcycpp_shape_cycle_time[1] = {-1};
579 int rawcycpp_shape_refuel_time[1] = {-1};
581 int rawcycpp_shape_cycle_step[1] = {-1};
583 int rawcycpp_shape_power_cap[1] = {-1};
585 int rawcycpp_shape_power_name[1] = {-1};
587 int rawcycpp_shape_side_products[2] = {-1, -1};
589 int rawcycpp_shape_side_product_quantity[2] = {-1, -1};
591 int rawcycpp_shape_hybrid_[1] = {-1};
592 cycpp_shape_hybrid_ = std::vector<int>(rawcycpp_shape_hybrid_, rawcycpp_shape_hybrid_ + 1);
593 int rawcycpp_shape_decom_transmute_all[1] = {-1};
595 int rawcycpp_shape_pref_change_times[2] = {-1, -1};
597 int rawcycpp_shape_pref_change_commods[2] = {-1, -1};
599 int rawcycpp_shape_pref_change_values[2] = {-1, -1};
601 int rawcycpp_shape_keep_packaging[1] = {-1};
603 int rawcycpp_shape_fresh[2] = {-1, -1};
604 cycpp_shape_fresh = std::vector<int>(rawcycpp_shape_fresh, rawcycpp_shape_fresh + 2);
605 int rawcycpp_shape_core[2] = {-1, -1};
606 cycpp_shape_core = std::vector<int>(rawcycpp_shape_core, rawcycpp_shape_core + 2);
607 int rawcycpp_shape_spent[2] = {-1, -1};
608 cycpp_shape_spent = std::vector<int>(rawcycpp_shape_spent, rawcycpp_shape_spent + 2);
609 int rawcycpp_shape_discharged[1] = {-1};
611 int rawcycpp_shape_res_indexes[3] = {-1, -1, -1};
613 int rawcycpp_shape_latitude[1] = {-1};
615 int rawcycpp_shape_longitude[1] = {-1};
617 cyclus::InfileTree* sub = tree->SubTree(
"config/*");
621 cyclus::InfileTree* bub = sub->SubTree(
"fuel_incommods", 0);
622 cyclus::InfileTree* sub = bub;
623 int n1 = sub->NMatches(
"val");
624 std::vector< std::string > fuel_incommods_val;
625 fuel_incommods_val.resize(n1);
626 for (
int i1 = 0; i1 < n1; ++i1) {
629 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
632 fuel_incommods_val[i1] = elem;
637 cyclus::InfileTree* bub = sub->SubTree(
"fuel_inrecipes", 0);
638 cyclus::InfileTree* sub = bub;
639 int n1 = sub->NMatches(
"val");
640 std::vector< std::string > fuel_inrecipes_val;
641 fuel_inrecipes_val.resize(n1);
642 for (
int i1 = 0; i1 < n1; ++i1) {
645 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
648 fuel_inrecipes_val[i1] = elem;
652 if (sub->NMatches(
"fuel_prefs") > 0) {
654 cyclus::InfileTree* bub = sub->SubTree(
"fuel_prefs", 0);
655 cyclus::InfileTree* sub = bub;
656 int n1 = sub->NMatches(
"val");
657 std::vector< double > fuel_prefs_val;
658 fuel_prefs_val.resize(n1);
659 for (
int i1 = 0; i1 < n1; ++i1) {
662 double elem_in = cyclus::Query<double>(sub,
"val", i1);
665 fuel_prefs_val[i1] = elem;
670 std::vector< double > fuel_prefs_tmp;
671 fuel_prefs_tmp.resize(0);
677 cyclus::InfileTree* bub = sub->SubTree(
"fuel_outcommods", 0);
678 cyclus::InfileTree* sub = bub;
679 int n1 = sub->NMatches(
"val");
680 std::vector< std::string > fuel_outcommods_val;
681 fuel_outcommods_val.resize(n1);
682 for (
int i1 = 0; i1 < n1; ++i1) {
685 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
688 fuel_outcommods_val[i1] = elem;
693 cyclus::InfileTree* bub = sub->SubTree(
"fuel_outrecipes", 0);
694 cyclus::InfileTree* sub = bub;
695 int n1 = sub->NMatches(
"val");
696 std::vector< std::string > fuel_outrecipes_val;
697 fuel_outrecipes_val.resize(n1);
698 for (
int i1 = 0; i1 < n1; ++i1) {
701 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
704 fuel_outrecipes_val[i1] = elem;
708 if (sub->NMatches(
"recipe_change_times") > 0) {
710 cyclus::InfileTree* bub = sub->SubTree(
"recipe_change_times", 0);
711 cyclus::InfileTree* sub = bub;
712 int n1 = sub->NMatches(
"val");
713 std::vector< int > recipe_change_times_val;
714 recipe_change_times_val.resize(n1);
715 for (
int i1 = 0; i1 < n1; ++i1) {
718 int elem_in = cyclus::Query<int>(sub,
"val", i1);
721 recipe_change_times_val[i1] = elem;
726 std::vector< int > recipe_change_times_tmp;
727 recipe_change_times_tmp.resize(0);
732 if (sub->NMatches(
"recipe_change_commods") > 0) {
734 cyclus::InfileTree* bub = sub->SubTree(
"recipe_change_commods", 0);
735 cyclus::InfileTree* sub = bub;
736 int n1 = sub->NMatches(
"val");
737 std::vector< std::string > recipe_change_commods_val;
738 recipe_change_commods_val.resize(n1);
739 for (
int i1 = 0; i1 < n1; ++i1) {
742 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
745 recipe_change_commods_val[i1] = elem;
750 std::vector< std::string > recipe_change_commods_tmp;
751 recipe_change_commods_tmp.resize(0);
756 if (sub->NMatches(
"recipe_change_in") > 0) {
758 cyclus::InfileTree* bub = sub->SubTree(
"recipe_change_in", 0);
759 cyclus::InfileTree* sub = bub;
760 int n1 = sub->NMatches(
"val");
761 std::vector< std::string > recipe_change_in_val;
762 recipe_change_in_val.resize(n1);
763 for (
int i1 = 0; i1 < n1; ++i1) {
766 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
769 recipe_change_in_val[i1] = elem;
774 std::vector< std::string > recipe_change_in_tmp;
775 recipe_change_in_tmp.resize(0);
780 if (sub->NMatches(
"recipe_change_out") > 0) {
782 cyclus::InfileTree* bub = sub->SubTree(
"recipe_change_out", 0);
783 cyclus::InfileTree* sub = bub;
784 int n1 = sub->NMatches(
"val");
785 std::vector< std::string > recipe_change_out_val;
786 recipe_change_out_val.resize(n1);
787 for (
int i1 = 0; i1 < n1; ++i1) {
790 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
793 recipe_change_out_val[i1] = elem;
798 std::vector< std::string > recipe_change_out_tmp;
799 recipe_change_out_tmp.resize(0);
805 double assem_size_val = cyclus::Query<double>(sub,
"assem_size");
809 int n_assem_batch_val = cyclus::Query<int>(sub,
"n_assem_batch");
812 if (sub->NMatches(
"n_assem_core") > 0) {
814 int n_assem_core_val = cyclus::Query<int>(sub,
"n_assem_core");
818 int n_assem_core_tmp = 3;
821 if (sub->NMatches(
"n_assem_fresh") > 0) {
823 int n_assem_fresh_val = cyclus::Query<int>(sub,
"n_assem_fresh");
827 int n_assem_fresh_tmp = 0;
830 if (sub->NMatches(
"n_assem_spent") > 0) {
832 int n_assem_spent_val = cyclus::Query<int>(sub,
"n_assem_spent");
836 int n_assem_spent_tmp = 1000000000;
839 if (sub->NMatches(
"cycle_time") > 0) {
841 int cycle_time_val = cyclus::Query<int>(sub,
"cycle_time");
845 int cycle_time_tmp = 18;
848 if (sub->NMatches(
"refuel_time") > 0) {
850 int refuel_time_val = cyclus::Query<int>(sub,
"refuel_time");
854 int refuel_time_tmp = 1;
857 if (sub->NMatches(
"cycle_step") > 0) {
859 int cycle_step_val = cyclus::Query<int>(sub,
"cycle_step");
863 int cycle_step_tmp = 0;
866 if (sub->NMatches(
"power_cap") > 0) {
868 double power_cap_val = cyclus::Query<double>(sub,
"power_cap");
872 double power_cap_tmp = 0;
875 if (sub->NMatches(
"power_name") > 0) {
877 std::string power_name_val = cyclus::Query<std::string>(sub,
"power_name");
881 std::string power_name_tmp(
"power");
884 if (sub->NMatches(
"side_products") > 0) {
886 cyclus::InfileTree* bub = sub->SubTree(
"side_products", 0);
887 cyclus::InfileTree* sub = bub;
888 int n1 = sub->NMatches(
"val");
889 std::vector< std::string > side_products_val;
890 side_products_val.resize(n1);
891 for (
int i1 = 0; i1 < n1; ++i1) {
894 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
897 side_products_val[i1] = elem;
902 std::vector< std::string > side_products_tmp;
903 side_products_tmp.resize(0);
908 if (sub->NMatches(
"side_product_quantity") > 0) {
910 cyclus::InfileTree* bub = sub->SubTree(
"side_product_quantity", 0);
911 cyclus::InfileTree* sub = bub;
912 int n1 = sub->NMatches(
"val");
913 std::vector< double > side_product_quantity_val;
914 side_product_quantity_val.resize(n1);
915 for (
int i1 = 0; i1 < n1; ++i1) {
918 double elem_in = cyclus::Query<double>(sub,
"val", i1);
921 side_product_quantity_val[i1] = elem;
926 std::vector< double > side_product_quantity_tmp;
927 side_product_quantity_tmp.resize(0);
932 bool hybrid__tmp =
true;
934 if (sub->NMatches(
"decom_transmute_all") > 0) {
936 bool decom_transmute_all_val = cyclus::Query<bool>(sub,
"decom_transmute_all");
940 bool decom_transmute_all_tmp =
false;
943 if (sub->NMatches(
"pref_change_times") > 0) {
945 cyclus::InfileTree* bub = sub->SubTree(
"pref_change_times", 0);
946 cyclus::InfileTree* sub = bub;
947 int n1 = sub->NMatches(
"val");
948 std::vector< int > pref_change_times_val;
949 pref_change_times_val.resize(n1);
950 for (
int i1 = 0; i1 < n1; ++i1) {
953 int elem_in = cyclus::Query<int>(sub,
"val", i1);
956 pref_change_times_val[i1] = elem;
961 std::vector< int > pref_change_times_tmp;
962 pref_change_times_tmp.resize(0);
967 if (sub->NMatches(
"pref_change_commods") > 0) {
969 cyclus::InfileTree* bub = sub->SubTree(
"pref_change_commods", 0);
970 cyclus::InfileTree* sub = bub;
971 int n1 = sub->NMatches(
"val");
972 std::vector< std::string > pref_change_commods_val;
973 pref_change_commods_val.resize(n1);
974 for (
int i1 = 0; i1 < n1; ++i1) {
977 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
980 pref_change_commods_val[i1] = elem;
985 std::vector< std::string > pref_change_commods_tmp;
986 pref_change_commods_tmp.resize(0);
991 if (sub->NMatches(
"pref_change_values") > 0) {
993 cyclus::InfileTree* bub = sub->SubTree(
"pref_change_values", 0);
994 cyclus::InfileTree* sub = bub;
995 int n1 = sub->NMatches(
"val");
996 std::vector< double > pref_change_values_val;
997 pref_change_values_val.resize(n1);
998 for (
int i1 = 0; i1 < n1; ++i1) {
1001 double elem_in = cyclus::Query<double>(sub,
"val", i1);
1004 pref_change_values_val[i1] = elem;
1009 std::vector< double > pref_change_values_tmp;
1010 pref_change_values_tmp.resize(0);
1015 if (sub->NMatches(
"keep_packaging") > 0) {
1017 bool keep_packaging_val = cyclus::Query<bool>(sub,
"keep_packaging");
1021 bool keep_packaging_tmp =
true;
1024 bool discharged_tmp =
false;
1026 std::map< int, int > res_indexes_tmp;
1030 if (sub->NMatches(
"latitude") > 0) {
1032 double latitude_val = cyclus::Query<double>(sub,
"latitude");
1036 double latitude_tmp = 0.0;
1039 if (sub->NMatches(
"longitude") > 0) {
1041 double longitude_val = cyclus::Query<double>(sub,
"longitude");
1045 double longitude_tmp = 0.0;
1142 int rawcycpp_shape_fuel_incommods[2] = {-1, -1};
1144 int rawcycpp_shape_fuel_inrecipes[2] = {-1, -1};
1146 int rawcycpp_shape_fuel_prefs[2] = {-1, -1};
1148 int rawcycpp_shape_fuel_outcommods[2] = {-1, -1};
1150 int rawcycpp_shape_fuel_outrecipes[2] = {-1, -1};
1152 int rawcycpp_shape_recipe_change_times[2] = {-1, -1};
1154 int rawcycpp_shape_recipe_change_commods[2] = {-1, -1};
1156 int rawcycpp_shape_recipe_change_in[2] = {-1, -1};
1158 int rawcycpp_shape_recipe_change_out[2] = {-1, -1};
1160 int rawcycpp_shape_assem_size[1] = {-1};
1162 int rawcycpp_shape_n_assem_batch[1] = {-1};
1164 int rawcycpp_shape_n_assem_core[1] = {-1};
1166 int rawcycpp_shape_n_assem_fresh[1] = {-1};
1168 int rawcycpp_shape_n_assem_spent[1] = {-1};
1170 int rawcycpp_shape_cycle_time[1] = {-1};
1172 int rawcycpp_shape_refuel_time[1] = {-1};
1174 int rawcycpp_shape_cycle_step[1] = {-1};
1176 int rawcycpp_shape_power_cap[1] = {-1};
1178 int rawcycpp_shape_power_name[1] = {-1};
1180 int rawcycpp_shape_side_products[2] = {-1, -1};
1182 int rawcycpp_shape_side_product_quantity[2] = {-1, -1};
1184 int rawcycpp_shape_hybrid_[1] = {-1};
1185 cycpp_shape_hybrid_ = std::vector<int>(rawcycpp_shape_hybrid_, rawcycpp_shape_hybrid_ + 1);
1186 int rawcycpp_shape_decom_transmute_all[1] = {-1};
1188 int rawcycpp_shape_pref_change_times[2] = {-1, -1};
1190 int rawcycpp_shape_pref_change_commods[2] = {-1, -1};
1192 int rawcycpp_shape_pref_change_values[2] = {-1, -1};
1194 int rawcycpp_shape_keep_packaging[1] = {-1};
1196 int rawcycpp_shape_fresh[2] = {-1, -1};
1197 cycpp_shape_fresh = std::vector<int>(rawcycpp_shape_fresh, rawcycpp_shape_fresh + 2);
1198 int rawcycpp_shape_core[2] = {-1, -1};
1199 cycpp_shape_core = std::vector<int>(rawcycpp_shape_core, rawcycpp_shape_core + 2);
1200 int rawcycpp_shape_spent[2] = {-1, -1};
1201 cycpp_shape_spent = std::vector<int>(rawcycpp_shape_spent, rawcycpp_shape_spent + 2);
1202 int rawcycpp_shape_discharged[1] = {-1};
1204 int rawcycpp_shape_res_indexes[3] = {-1, -1, -1};
1206 int rawcycpp_shape_latitude[1] = {-1};
1208 int rawcycpp_shape_longitude[1] = {-1};
1244#line 46 "/cycamore/src/reactor.cc"
1245 cyclus::toolkit::CommodityProducer::Copy(m);
1249 int rawcycpp_shape_fuel_incommods[2] = {-1, -1};
1251 int rawcycpp_shape_fuel_inrecipes[2] = {-1, -1};
1253 int rawcycpp_shape_fuel_prefs[2] = {-1, -1};
1255 int rawcycpp_shape_fuel_outcommods[2] = {-1, -1};
1257 int rawcycpp_shape_fuel_outrecipes[2] = {-1, -1};
1259 int rawcycpp_shape_recipe_change_times[2] = {-1, -1};
1261 int rawcycpp_shape_recipe_change_commods[2] = {-1, -1};
1263 int rawcycpp_shape_recipe_change_in[2] = {-1, -1};
1265 int rawcycpp_shape_recipe_change_out[2] = {-1, -1};
1267 int rawcycpp_shape_assem_size[1] = {-1};
1269 int rawcycpp_shape_n_assem_batch[1] = {-1};
1271 int rawcycpp_shape_n_assem_core[1] = {-1};
1273 int rawcycpp_shape_n_assem_fresh[1] = {-1};
1275 int rawcycpp_shape_n_assem_spent[1] = {-1};
1277 int rawcycpp_shape_cycle_time[1] = {-1};
1279 int rawcycpp_shape_refuel_time[1] = {-1};
1281 int rawcycpp_shape_cycle_step[1] = {-1};
1283 int rawcycpp_shape_power_cap[1] = {-1};
1285 int rawcycpp_shape_power_name[1] = {-1};
1287 int rawcycpp_shape_side_products[2] = {-1, -1};
1289 int rawcycpp_shape_side_product_quantity[2] = {-1, -1};
1291 int rawcycpp_shape_hybrid_[1] = {-1};
1292 cycpp_shape_hybrid_ = std::vector<int>(rawcycpp_shape_hybrid_, rawcycpp_shape_hybrid_ + 1);
1293 int rawcycpp_shape_decom_transmute_all[1] = {-1};
1295 int rawcycpp_shape_pref_change_times[2] = {-1, -1};
1297 int rawcycpp_shape_pref_change_commods[2] = {-1, -1};
1299 int rawcycpp_shape_pref_change_values[2] = {-1, -1};
1301 int rawcycpp_shape_keep_packaging[1] = {-1};
1303 int rawcycpp_shape_fresh[2] = {-1, -1};
1304 cycpp_shape_fresh = std::vector<int>(rawcycpp_shape_fresh, rawcycpp_shape_fresh + 2);
1305 int rawcycpp_shape_core[2] = {-1, -1};
1306 cycpp_shape_core = std::vector<int>(rawcycpp_shape_core, rawcycpp_shape_core + 2);
1307 int rawcycpp_shape_spent[2] = {-1, -1};
1308 cycpp_shape_spent = std::vector<int>(rawcycpp_shape_spent, rawcycpp_shape_spent + 2);
1309 int rawcycpp_shape_discharged[1] = {-1};
1311 int rawcycpp_shape_res_indexes[3] = {-1, -1, -1};
1313 int rawcycpp_shape_latitude[1] = {-1};
1315 int rawcycpp_shape_longitude[1] = {-1};
1317 cyclus::QueryResult qr = b->Query(
"Info", NULL);
1318 fuel_incommods = qr.GetVal<std::vector< std::string > >(
"fuel_incommods");
1319 fuel_inrecipes = qr.GetVal<std::vector< std::string > >(
"fuel_inrecipes");
1320 fuel_prefs = qr.GetVal<std::vector< double > >(
"fuel_prefs");
1321 fuel_outcommods = qr.GetVal<std::vector< std::string > >(
"fuel_outcommods");
1322 fuel_outrecipes = qr.GetVal<std::vector< std::string > >(
"fuel_outrecipes");
1325 recipe_change_in = qr.GetVal<std::vector< std::string > >(
"recipe_change_in");
1326 recipe_change_out = qr.GetVal<std::vector< std::string > >(
"recipe_change_out");
1327 assem_size = qr.GetVal<
double>(
"assem_size");
1335 power_cap = qr.GetVal<
double>(
"power_cap");
1336 power_name = qr.GetVal<std::string>(
"power_name");
1337 side_products = qr.GetVal<std::vector< std::string > >(
"side_products");
1339 hybrid_ = qr.GetVal<
bool>(
"hybrid_");
1346 res_indexes = qr.GetVal<std::map< int, int > >(
"res_indexes");
1347 latitude = qr.GetVal<
double>(
"latitude");
1348 longitude = qr.GetVal<
double>(
"longitude");
1352#line 51 "/cycamore/src/reactor.cc"
1354 namespace tk = cyclus::toolkit;
1355 tk::CommodityProducer::Add(tk::Commodity(
power_name),