Skip to content

Commit 6e8b942

Browse files
committed
fix typo
1 parent e895f55 commit 6e8b942

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/mcnp/mcnp_funcs.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,8 @@ void write_cell_cards(std::ostringstream& lcadfile,
201201
// that material numbers are assigned
202202
mat_num = DMD->volume_material_data_eh[entity];
203203
// if we cant make an int from the mat_num
204-
if (DMD->to_lower(mat_num) != DMD->to_lower(DMD->graveyard_mat_str()) &&
204+
if (DMD->to_lower(mat_num) != DMD->to_lower(DMD->graveyard_mat_str()) &&
205205
DMD->to_lower(mat_num) != DMD->to_lower(DMD->vacuum_mat_str())) {
206-
if (!DMD->try_to_make_int(mat_num)) {
207-
std::cerr << "Failed to cast material number to an integer"
208-
<< std::endl;
209206
if (!DMD->try_to_make_int(mat_num)) {
210207
std::cerr << "Failed to cast material number to an integer"
211208
<< std::endl;

0 commit comments

Comments
 (0)