Skip to content

Commit

Permalink
fixing mcnp bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bam241 committed Dec 11, 2024
1 parent a170860 commit 00b0d05
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/mcnp/mcnp_funcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#include "DagMC.hpp"
#include "dagmcmetadata.hpp"
#include "util.hpp"

using moab::DagMC;

#include <assert.h>
Expand Down Expand Up @@ -200,8 +202,8 @@ 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 (dagmcMetaData::to_lower(mat_num) != dagmcMetaData::to_lower(DMD->graveyard_mat_str()) &&
dagmcMetaData::to_lower(mat_num) != dagmcMetaData::to_lower(DMD->vacuum_mat_str())) {
if (dagmc_utils::lowercase_str(mat_num) != dagmc_utils::lowercase_str(DMD->graveyard_mat_str()) &&
dagmc_utils::lowercase_str(mat_num) != dagmc_utils::lowercase_str(DMD->vacuum_mat_str())) {
if (!DMD->try_to_make_int(mat_num)) {
std::cerr << "Failed to cast material number to an integer"
<< std::endl;
Expand Down

0 comments on commit 00b0d05

Please sign in to comment.