534 cyclus::Facility::InfileToDb(tree, di);
535 int rawcycpp_shape_fuel_incommods[2] = {-1, -1};
537 int rawcycpp_shape_fuel_inrecipes[2] = {-1, -1};
539 int rawcycpp_shape_fuel_prefs[2] = {-1, -1};
541 int rawcycpp_shape_fuel_outcommods[2] = {-1, -1};
543 int rawcycpp_shape_fuel_outrecipes[2] = {-1, -1};
545 int rawcycpp_shape_recipe_change_times[2] = {-1, -1};
547 int rawcycpp_shape_recipe_change_commods[2] = {-1, -1};
549 int rawcycpp_shape_recipe_change_in[2] = {-1, -1};
551 int rawcycpp_shape_recipe_change_out[2] = {-1, -1};
553 int rawcycpp_shape_assem_size[1] = {-1};
555 int rawcycpp_shape_n_assem_batch[1] = {-1};
557 int rawcycpp_shape_n_assem_core[1] = {-1};
559 int rawcycpp_shape_n_assem_fresh[1] = {-1};
561 int rawcycpp_shape_n_assem_spent[1] = {-1};
563 int rawcycpp_shape_cycle_time[1] = {-1};
565 int rawcycpp_shape_refuel_time[1] = {-1};
567 int rawcycpp_shape_cycle_step[1] = {-1};
569 int rawcycpp_shape_power_cap[1] = {-1};
571 int rawcycpp_shape_power_name[1] = {-1};
573 int rawcycpp_shape_side_products[2] = {-1, -1};
575 int rawcycpp_shape_side_product_quantity[2] = {-1, -1};
577 int rawcycpp_shape_hybrid_[1] = {-1};
578 cycpp_shape_hybrid_ = std::vector<int>(rawcycpp_shape_hybrid_, rawcycpp_shape_hybrid_ + 1);
579 int rawcycpp_shape_decom_transmute_all[1] = {-1};
581 int rawcycpp_shape_pref_change_times[2] = {-1, -1};
583 int rawcycpp_shape_pref_change_commods[2] = {-1, -1};
585 int rawcycpp_shape_pref_change_values[2] = {-1, -1};
587 int rawcycpp_shape_keep_packaging[1] = {-1};
589 int rawcycpp_shape_fresh[2] = {-1, -1};
590 cycpp_shape_fresh = std::vector<int>(rawcycpp_shape_fresh, rawcycpp_shape_fresh + 2);
591 int rawcycpp_shape_core[2] = {-1, -1};
592 cycpp_shape_core = std::vector<int>(rawcycpp_shape_core, rawcycpp_shape_core + 2);
593 int rawcycpp_shape_spent[2] = {-1, -1};
594 cycpp_shape_spent = std::vector<int>(rawcycpp_shape_spent, rawcycpp_shape_spent + 2);
595 int rawcycpp_shape_discharged[1] = {-1};
597 int rawcycpp_shape_res_indexes[3] = {-1, -1, -1};
599 int rawcycpp_shape_latitude[1] = {-1};
601 int rawcycpp_shape_longitude[1] = {-1};
603 cyclus::InfileTree* sub = tree->SubTree(
"config/*");
607 cyclus::InfileTree* bub = sub->SubTree(
"fuel_incommods", 0);
608 cyclus::InfileTree* sub = bub;
609 int n1 = sub->NMatches(
"val");
610 std::vector< std::string > fuel_incommods_val;
611 fuel_incommods_val.resize(n1);
612 for (
int i1 = 0; i1 < n1; ++i1) {
615 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
618 fuel_incommods_val[i1] = elem;
623 cyclus::InfileTree* bub = sub->SubTree(
"fuel_inrecipes", 0);
624 cyclus::InfileTree* sub = bub;
625 int n1 = sub->NMatches(
"val");
626 std::vector< std::string > fuel_inrecipes_val;
627 fuel_inrecipes_val.resize(n1);
628 for (
int i1 = 0; i1 < n1; ++i1) {
631 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
634 fuel_inrecipes_val[i1] = elem;
638 if (sub->NMatches(
"fuel_prefs") > 0) {
640 cyclus::InfileTree* bub = sub->SubTree(
"fuel_prefs", 0);
641 cyclus::InfileTree* sub = bub;
642 int n1 = sub->NMatches(
"val");
643 std::vector< double > fuel_prefs_val;
644 fuel_prefs_val.resize(n1);
645 for (
int i1 = 0; i1 < n1; ++i1) {
648 double elem_in = cyclus::Query<double>(sub,
"val", i1);
651 fuel_prefs_val[i1] = elem;
656 std::vector< double > fuel_prefs_tmp;
657 fuel_prefs_tmp.resize(0);
663 cyclus::InfileTree* bub = sub->SubTree(
"fuel_outcommods", 0);
664 cyclus::InfileTree* sub = bub;
665 int n1 = sub->NMatches(
"val");
666 std::vector< std::string > fuel_outcommods_val;
667 fuel_outcommods_val.resize(n1);
668 for (
int i1 = 0; i1 < n1; ++i1) {
671 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
674 fuel_outcommods_val[i1] = elem;
679 cyclus::InfileTree* bub = sub->SubTree(
"fuel_outrecipes", 0);
680 cyclus::InfileTree* sub = bub;
681 int n1 = sub->NMatches(
"val");
682 std::vector< std::string > fuel_outrecipes_val;
683 fuel_outrecipes_val.resize(n1);
684 for (
int i1 = 0; i1 < n1; ++i1) {
687 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
690 fuel_outrecipes_val[i1] = elem;
694 if (sub->NMatches(
"recipe_change_times") > 0) {
696 cyclus::InfileTree* bub = sub->SubTree(
"recipe_change_times", 0);
697 cyclus::InfileTree* sub = bub;
698 int n1 = sub->NMatches(
"val");
699 std::vector< int > recipe_change_times_val;
700 recipe_change_times_val.resize(n1);
701 for (
int i1 = 0; i1 < n1; ++i1) {
704 int elem_in = cyclus::Query<int>(sub,
"val", i1);
707 recipe_change_times_val[i1] = elem;
712 std::vector< int > recipe_change_times_tmp;
713 recipe_change_times_tmp.resize(0);
718 if (sub->NMatches(
"recipe_change_commods") > 0) {
720 cyclus::InfileTree* bub = sub->SubTree(
"recipe_change_commods", 0);
721 cyclus::InfileTree* sub = bub;
722 int n1 = sub->NMatches(
"val");
723 std::vector< std::string > recipe_change_commods_val;
724 recipe_change_commods_val.resize(n1);
725 for (
int i1 = 0; i1 < n1; ++i1) {
728 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
731 recipe_change_commods_val[i1] = elem;
736 std::vector< std::string > recipe_change_commods_tmp;
737 recipe_change_commods_tmp.resize(0);
742 if (sub->NMatches(
"recipe_change_in") > 0) {
744 cyclus::InfileTree* bub = sub->SubTree(
"recipe_change_in", 0);
745 cyclus::InfileTree* sub = bub;
746 int n1 = sub->NMatches(
"val");
747 std::vector< std::string > recipe_change_in_val;
748 recipe_change_in_val.resize(n1);
749 for (
int i1 = 0; i1 < n1; ++i1) {
752 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
755 recipe_change_in_val[i1] = elem;
760 std::vector< std::string > recipe_change_in_tmp;
761 recipe_change_in_tmp.resize(0);
766 if (sub->NMatches(
"recipe_change_out") > 0) {
768 cyclus::InfileTree* bub = sub->SubTree(
"recipe_change_out", 0);
769 cyclus::InfileTree* sub = bub;
770 int n1 = sub->NMatches(
"val");
771 std::vector< std::string > recipe_change_out_val;
772 recipe_change_out_val.resize(n1);
773 for (
int i1 = 0; i1 < n1; ++i1) {
776 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
779 recipe_change_out_val[i1] = elem;
784 std::vector< std::string > recipe_change_out_tmp;
785 recipe_change_out_tmp.resize(0);
791 double assem_size_val = cyclus::Query<double>(sub,
"assem_size");
795 int n_assem_batch_val = cyclus::Query<int>(sub,
"n_assem_batch");
798 if (sub->NMatches(
"n_assem_core") > 0) {
800 int n_assem_core_val = cyclus::Query<int>(sub,
"n_assem_core");
804 int n_assem_core_tmp = 3;
807 if (sub->NMatches(
"n_assem_fresh") > 0) {
809 int n_assem_fresh_val = cyclus::Query<int>(sub,
"n_assem_fresh");
813 int n_assem_fresh_tmp = 0;
816 if (sub->NMatches(
"n_assem_spent") > 0) {
818 int n_assem_spent_val = cyclus::Query<int>(sub,
"n_assem_spent");
822 int n_assem_spent_tmp = 1000000000;
825 if (sub->NMatches(
"cycle_time") > 0) {
827 int cycle_time_val = cyclus::Query<int>(sub,
"cycle_time");
831 int cycle_time_tmp = 18;
834 if (sub->NMatches(
"refuel_time") > 0) {
836 int refuel_time_val = cyclus::Query<int>(sub,
"refuel_time");
840 int refuel_time_tmp = 1;
843 if (sub->NMatches(
"cycle_step") > 0) {
845 int cycle_step_val = cyclus::Query<int>(sub,
"cycle_step");
849 int cycle_step_tmp = 0;
852 if (sub->NMatches(
"power_cap") > 0) {
854 double power_cap_val = cyclus::Query<double>(sub,
"power_cap");
858 double power_cap_tmp = 0;
861 if (sub->NMatches(
"power_name") > 0) {
863 std::string power_name_val = cyclus::Query<std::string>(sub,
"power_name");
867 std::string power_name_tmp(
"power");
870 if (sub->NMatches(
"side_products") > 0) {
872 cyclus::InfileTree* bub = sub->SubTree(
"side_products", 0);
873 cyclus::InfileTree* sub = bub;
874 int n1 = sub->NMatches(
"val");
875 std::vector< std::string > side_products_val;
876 side_products_val.resize(n1);
877 for (
int i1 = 0; i1 < n1; ++i1) {
880 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
883 side_products_val[i1] = elem;
888 std::vector< std::string > side_products_tmp;
889 side_products_tmp.resize(0);
894 if (sub->NMatches(
"side_product_quantity") > 0) {
896 cyclus::InfileTree* bub = sub->SubTree(
"side_product_quantity", 0);
897 cyclus::InfileTree* sub = bub;
898 int n1 = sub->NMatches(
"val");
899 std::vector< double > side_product_quantity_val;
900 side_product_quantity_val.resize(n1);
901 for (
int i1 = 0; i1 < n1; ++i1) {
904 double elem_in = cyclus::Query<double>(sub,
"val", i1);
907 side_product_quantity_val[i1] = elem;
912 std::vector< double > side_product_quantity_tmp;
913 side_product_quantity_tmp.resize(0);
918 bool hybrid__tmp =
true;
920 if (sub->NMatches(
"decom_transmute_all") > 0) {
922 bool decom_transmute_all_val = cyclus::Query<bool>(sub,
"decom_transmute_all");
926 bool decom_transmute_all_tmp =
false;
929 if (sub->NMatches(
"pref_change_times") > 0) {
931 cyclus::InfileTree* bub = sub->SubTree(
"pref_change_times", 0);
932 cyclus::InfileTree* sub = bub;
933 int n1 = sub->NMatches(
"val");
934 std::vector< int > pref_change_times_val;
935 pref_change_times_val.resize(n1);
936 for (
int i1 = 0; i1 < n1; ++i1) {
939 int elem_in = cyclus::Query<int>(sub,
"val", i1);
942 pref_change_times_val[i1] = elem;
947 std::vector< int > pref_change_times_tmp;
948 pref_change_times_tmp.resize(0);
953 if (sub->NMatches(
"pref_change_commods") > 0) {
955 cyclus::InfileTree* bub = sub->SubTree(
"pref_change_commods", 0);
956 cyclus::InfileTree* sub = bub;
957 int n1 = sub->NMatches(
"val");
958 std::vector< std::string > pref_change_commods_val;
959 pref_change_commods_val.resize(n1);
960 for (
int i1 = 0; i1 < n1; ++i1) {
963 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
966 pref_change_commods_val[i1] = elem;
971 std::vector< std::string > pref_change_commods_tmp;
972 pref_change_commods_tmp.resize(0);
977 if (sub->NMatches(
"pref_change_values") > 0) {
979 cyclus::InfileTree* bub = sub->SubTree(
"pref_change_values", 0);
980 cyclus::InfileTree* sub = bub;
981 int n1 = sub->NMatches(
"val");
982 std::vector< double > pref_change_values_val;
983 pref_change_values_val.resize(n1);
984 for (
int i1 = 0; i1 < n1; ++i1) {
987 double elem_in = cyclus::Query<double>(sub,
"val", i1);
990 pref_change_values_val[i1] = elem;
995 std::vector< double > pref_change_values_tmp;
996 pref_change_values_tmp.resize(0);
1001 if (sub->NMatches(
"keep_packaging") > 0) {
1003 bool keep_packaging_val = cyclus::Query<bool>(sub,
"keep_packaging");
1007 bool keep_packaging_tmp =
true;
1010 bool discharged_tmp =
false;
1012 std::map< int, int > res_indexes_tmp;
1016 if (sub->NMatches(
"latitude") > 0) {
1018 double latitude_val = cyclus::Query<double>(sub,
"latitude");
1022 double latitude_tmp = 0.0;
1025 if (sub->NMatches(
"longitude") > 0) {
1027 double longitude_val = cyclus::Query<double>(sub,
"longitude");
1031 double longitude_tmp = 0.0;
1128 int rawcycpp_shape_fuel_incommods[2] = {-1, -1};
1130 int rawcycpp_shape_fuel_inrecipes[2] = {-1, -1};
1132 int rawcycpp_shape_fuel_prefs[2] = {-1, -1};
1134 int rawcycpp_shape_fuel_outcommods[2] = {-1, -1};
1136 int rawcycpp_shape_fuel_outrecipes[2] = {-1, -1};
1138 int rawcycpp_shape_recipe_change_times[2] = {-1, -1};
1140 int rawcycpp_shape_recipe_change_commods[2] = {-1, -1};
1142 int rawcycpp_shape_recipe_change_in[2] = {-1, -1};
1144 int rawcycpp_shape_recipe_change_out[2] = {-1, -1};
1146 int rawcycpp_shape_assem_size[1] = {-1};
1148 int rawcycpp_shape_n_assem_batch[1] = {-1};
1150 int rawcycpp_shape_n_assem_core[1] = {-1};
1152 int rawcycpp_shape_n_assem_fresh[1] = {-1};
1154 int rawcycpp_shape_n_assem_spent[1] = {-1};
1156 int rawcycpp_shape_cycle_time[1] = {-1};
1158 int rawcycpp_shape_refuel_time[1] = {-1};
1160 int rawcycpp_shape_cycle_step[1] = {-1};
1162 int rawcycpp_shape_power_cap[1] = {-1};
1164 int rawcycpp_shape_power_name[1] = {-1};
1166 int rawcycpp_shape_side_products[2] = {-1, -1};
1168 int rawcycpp_shape_side_product_quantity[2] = {-1, -1};
1170 int rawcycpp_shape_hybrid_[1] = {-1};
1171 cycpp_shape_hybrid_ = std::vector<int>(rawcycpp_shape_hybrid_, rawcycpp_shape_hybrid_ + 1);
1172 int rawcycpp_shape_decom_transmute_all[1] = {-1};
1174 int rawcycpp_shape_pref_change_times[2] = {-1, -1};
1176 int rawcycpp_shape_pref_change_commods[2] = {-1, -1};
1178 int rawcycpp_shape_pref_change_values[2] = {-1, -1};
1180 int rawcycpp_shape_keep_packaging[1] = {-1};
1182 int rawcycpp_shape_fresh[2] = {-1, -1};
1183 cycpp_shape_fresh = std::vector<int>(rawcycpp_shape_fresh, rawcycpp_shape_fresh + 2);
1184 int rawcycpp_shape_core[2] = {-1, -1};
1185 cycpp_shape_core = std::vector<int>(rawcycpp_shape_core, rawcycpp_shape_core + 2);
1186 int rawcycpp_shape_spent[2] = {-1, -1};
1187 cycpp_shape_spent = std::vector<int>(rawcycpp_shape_spent, rawcycpp_shape_spent + 2);
1188 int rawcycpp_shape_discharged[1] = {-1};
1190 int rawcycpp_shape_res_indexes[3] = {-1, -1, -1};
1192 int rawcycpp_shape_latitude[1] = {-1};
1194 int rawcycpp_shape_longitude[1] = {-1};
1227 fresh.capacity(m->fresh.capacity());
1228 core.capacity(m->core.capacity());
1229 spent.capacity(m->spent.capacity());
1230#line 46 "/cycamore/src/reactor.cc"
1231 cyclus::toolkit::CommodityProducer::Copy(m);
1235 int rawcycpp_shape_fuel_incommods[2] = {-1, -1};
1237 int rawcycpp_shape_fuel_inrecipes[2] = {-1, -1};
1239 int rawcycpp_shape_fuel_prefs[2] = {-1, -1};
1241 int rawcycpp_shape_fuel_outcommods[2] = {-1, -1};
1243 int rawcycpp_shape_fuel_outrecipes[2] = {-1, -1};
1245 int rawcycpp_shape_recipe_change_times[2] = {-1, -1};
1247 int rawcycpp_shape_recipe_change_commods[2] = {-1, -1};
1249 int rawcycpp_shape_recipe_change_in[2] = {-1, -1};
1251 int rawcycpp_shape_recipe_change_out[2] = {-1, -1};
1253 int rawcycpp_shape_assem_size[1] = {-1};
1255 int rawcycpp_shape_n_assem_batch[1] = {-1};
1257 int rawcycpp_shape_n_assem_core[1] = {-1};
1259 int rawcycpp_shape_n_assem_fresh[1] = {-1};
1261 int rawcycpp_shape_n_assem_spent[1] = {-1};
1263 int rawcycpp_shape_cycle_time[1] = {-1};
1265 int rawcycpp_shape_refuel_time[1] = {-1};
1267 int rawcycpp_shape_cycle_step[1] = {-1};
1269 int rawcycpp_shape_power_cap[1] = {-1};
1271 int rawcycpp_shape_power_name[1] = {-1};
1273 int rawcycpp_shape_side_products[2] = {-1, -1};
1275 int rawcycpp_shape_side_product_quantity[2] = {-1, -1};
1277 int rawcycpp_shape_hybrid_[1] = {-1};
1278 cycpp_shape_hybrid_ = std::vector<int>(rawcycpp_shape_hybrid_, rawcycpp_shape_hybrid_ + 1);
1279 int rawcycpp_shape_decom_transmute_all[1] = {-1};
1281 int rawcycpp_shape_pref_change_times[2] = {-1, -1};
1283 int rawcycpp_shape_pref_change_commods[2] = {-1, -1};
1285 int rawcycpp_shape_pref_change_values[2] = {-1, -1};
1287 int rawcycpp_shape_keep_packaging[1] = {-1};
1289 int rawcycpp_shape_fresh[2] = {-1, -1};
1290 cycpp_shape_fresh = std::vector<int>(rawcycpp_shape_fresh, rawcycpp_shape_fresh + 2);
1291 int rawcycpp_shape_core[2] = {-1, -1};
1292 cycpp_shape_core = std::vector<int>(rawcycpp_shape_core, rawcycpp_shape_core + 2);
1293 int rawcycpp_shape_spent[2] = {-1, -1};
1294 cycpp_shape_spent = std::vector<int>(rawcycpp_shape_spent, rawcycpp_shape_spent + 2);
1295 int rawcycpp_shape_discharged[1] = {-1};
1297 int rawcycpp_shape_res_indexes[3] = {-1, -1, -1};
1299 int rawcycpp_shape_latitude[1] = {-1};
1301 int rawcycpp_shape_longitude[1] = {-1};
1303 cyclus::QueryResult qr = b->Query(
"Info", NULL);
1304 fuel_incommods = qr.GetVal<std::vector< std::string > >(
"fuel_incommods");
1305 fuel_inrecipes = qr.GetVal<std::vector< std::string > >(
"fuel_inrecipes");
1306 fuel_prefs = qr.GetVal<std::vector< double > >(
"fuel_prefs");
1307 fuel_outcommods = qr.GetVal<std::vector< std::string > >(
"fuel_outcommods");
1308 fuel_outrecipes = qr.GetVal<std::vector< std::string > >(
"fuel_outrecipes");
1311 recipe_change_in = qr.GetVal<std::vector< std::string > >(
"recipe_change_in");
1312 recipe_change_out = qr.GetVal<std::vector< std::string > >(
"recipe_change_out");
1313 assem_size = qr.GetVal<
double>(
"assem_size");
1321 power_cap = qr.GetVal<
double>(
"power_cap");
1322 power_name = qr.GetVal<std::string>(
"power_name");
1323 side_products = qr.GetVal<std::vector< std::string > >(
"side_products");
1325 hybrid_ = qr.GetVal<
bool>(
"hybrid_");
1332 res_indexes = qr.GetVal<std::map< int, int > >(
"res_indexes");
1333 latitude = qr.GetVal<
double>(
"latitude");
1334 longitude = qr.GetVal<
double>(
"longitude");
1338#line 51 "/cycamore/src/reactor.cc"
1340 namespace tk = cyclus::toolkit;
1341 tk::CommodityProducer::Add(tk::Commodity(
power_name),