From e079784896734636821991931ca7247241af4e5c Mon Sep 17 00:00:00 2001 From: Baptiste Mouginot Date: Wed, 11 Dec 2024 18:09:45 +0100 Subject: [PATCH] using DMD to_lower --- src/mcnp/mcnp_funcs.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/mcnp/mcnp_funcs.cpp b/src/mcnp/mcnp_funcs.cpp index 4b15a5eba..3a6393aa1 100644 --- a/src/mcnp/mcnp_funcs.cpp +++ b/src/mcnp/mcnp_funcs.cpp @@ -1,7 +1,6 @@ #include "mcnp_funcs.h" #include "DagMC.hpp" -#include "dagmcmetadata.hpp" #include "util.hpp" using moab::DagMC; @@ -202,10 +201,10 @@ void write_cell_cards(std::ostringstream& lcadfile, // that material numbers are assigned mat_num = DMD->volume_material_data_eh[entity]; // if we cant make an int from the mat_num - if (dagmc_util::lowercase_str(mat_num) != - dagmc_util::lowercase_str(DMD->graveyard_mat_str()) && - dagmc_util::lowercase_str(mat_num) != - dagmc_util::lowercase_str(DMD->vacuum_mat_str())) { + if (DMD->to_lower(mat_num) != + DMD->to_lower(DMD->graveyard_mat_str()) && + DMD->to_lower(mat_num) != + DMD->to_lower(DMD->vacuum_mat_str())) { if (!DMD->try_to_make_int(mat_num)) { std::cerr << "Failed to cast material number to an integer" << std::endl;