Skip to content

Commit

Permalink
propagating change
Browse files Browse the repository at this point in the history
  • Loading branch information
bam241 committed Dec 11, 2024
1 parent 033a7af commit c205c03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mcnp/mcnp_funcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,10 @@ void write_cell_cards(std::ostringstream& lcadfile,
}
double imp = 1.0;
// if we find graveyard always have importance 0.0
if (DMD->to_lower(mat_num) == DMD->to_lower(DMD->graveyard_mat_str()) {
if (DMD->to_lower(mat_nanme) == DMD->to_lower(DMD->graveyard_mat_str()) {
imp = 0.0;
// no splitting can happenin vacuum set to 1
} else if (DMD->to_lower(mat_num) != DMD->to_lower(DMD->vacuum_mat_str())) {
} else if (DMD->to_lower(mat_nanme) == DMD->to_lower(DMD->vacuum_mat_str())) {
imp = 1.0;
// otherwise as the map says
} else {
Expand All @@ -280,15 +280,15 @@ void write_cell_cards(std::ostringstream& lcadfile,
}
// its possible no importances were assigned
if (set.size() == 0) {
if (mat_name != DMD->graveyard_mat_str()) {
if (DMD->to_lower(mat_nanme) != DMD->to_lower(DMD->graveyard_mat_str()) {
importances = "imp:n=1";
} else {
importances = "imp:n=0";
}
}

// add descriptive comments for special volumes
if (mat_name == DMD->graveyard_mat_str()) {
if (DMD->to_lower(mat_nanme) == DMD->to_lower(DMD->graveyard_mat_str()) {
importances += " $ graveyard";
} else if (DAG->is_implicit_complement(entity)) {
importances += " $ implicit complement";
Expand Down

0 comments on commit c205c03

Please sign in to comment.