Skip to content

Commit

Permalink
typo + formating
Browse files Browse the repository at this point in the history
  • Loading branch information
bam241 committed Dec 11, 2024
1 parent bd5bfe4 commit eb7c22d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/dagmc/dagmcmetadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,7 @@ void dagmcMetaData::parse_boundary_data() {

std::string bc_string = dagmc_util::to_lower(boundary_assignment[0]);

if (bc_string.find(dagmc_util::to_lower(reflecting_str())) !=
std::string::npos)
if (bc_string.find(dagmc_util::to_lower(reflecting_str())) != std::string::npos)
surface_boundary_data_eh[eh] = reflecting_str();
if (bc_string.find(dagmc_util::to_lower(white_str())) !=
std::string::npos)
Expand Down
6 changes: 3 additions & 3 deletions src/mcnp/mcnp_funcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ void write_cell_cards(std::ostringstream& lcadfile,
} else {
std::string mat_name = DMD->volume_material_property_data_eh[entity];
// if we not vacuum or graveyard
if (dagmc_util::to_lower(mat_num) !=
if (dagmc_util::to_lower(mat_num) !=
dagmc_util::to_lower(DMD->graveyard_mat_str()) &&
dagmc_util::to_lower(mat_num) !=
dagmc_util::to_lower(mat_num) !=
dagmc_util::to_lower(DMD->vacuum_mat_str())) {
if (workflow_data->material_library.count(mat_name) == 0) {
std::cerr << "Material with name " << mat_name << " not found "
Expand Down Expand Up @@ -272,7 +272,7 @@ void write_cell_cards(std::ostringstream& lcadfile,
}
double imp = 1.0;
// if we find graveyard always have importance 0.0
if (dagmc_util::to_lower(mat_num) == dagmc_util::to_lower(DMD->graveyard_mat_str()) {
if (dagmc_util::to_lower(mat_num) == dagmc_util::to_lower(DMD->graveyard_mat_str())) {
imp = 0.0;
// no splitting can happenin vacuum set to 1
} else if (dagmc_util::to_lower(mat_num) == dagmc_util::to_lower(DMD->vacuum_mat_str())) {
Expand Down

0 comments on commit eb7c22d

Please sign in to comment.