From 92a7a39bfbb27b28eff11afa4942cce7de8e772c Mon Sep 17 00:00:00 2001 From: Baptiste Mouginot Date: Wed, 11 Dec 2024 21:18:25 +0100 Subject: [PATCH] typo + formating --- src/dagmc/dagmcmetadata.cpp | 3 ++- src/mcnp/mcnp_funcs.cpp | 10 ++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/dagmc/dagmcmetadata.cpp b/src/dagmc/dagmcmetadata.cpp index 07e5d77f4..5a9f118b1 100644 --- a/src/dagmc/dagmcmetadata.cpp +++ b/src/dagmc/dagmcmetadata.cpp @@ -378,7 +378,8 @@ 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) diff --git a/src/mcnp/mcnp_funcs.cpp b/src/mcnp/mcnp_funcs.cpp index b07ac50fb..ec2be8471 100644 --- a/src/mcnp/mcnp_funcs.cpp +++ b/src/mcnp/mcnp_funcs.cpp @@ -272,10 +272,12 @@ 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())) { + } else if (dagmc_util::to_lower(mat_num) == + dagmc_util::to_lower(DMD->vacuum_mat_str())) { imp = 1.0; // otherwise as the map says } else { @@ -285,7 +287,7 @@ void write_cell_cards(std::ostringstream& lcadfile, } // its possible no importances were assigned if (set.size() == 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())) { importances = "imp:n=1"; } else { importances = "imp:n=0"; @@ -293,7 +295,7 @@ void write_cell_cards(std::ostringstream& lcadfile, } // add descriptive comments for special volumes - 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())) { importances += " $ graveyard"; } else if (DAG->is_implicit_complement(entity)) { importances += " $ implicit complement";