We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e895f55 commit 6e8b942Copy full SHA for 6e8b942
src/mcnp/mcnp_funcs.cpp
@@ -201,11 +201,8 @@ void write_cell_cards(std::ostringstream& lcadfile,
201
// that material numbers are assigned
202
mat_num = DMD->volume_material_data_eh[entity];
203
// if we cant make an int from the mat_num
204
- if (DMD->to_lower(mat_num) != DMD->to_lower(DMD->graveyard_mat_str()) &&
+ if (DMD->to_lower(mat_num) != DMD->to_lower(DMD->graveyard_mat_str()) &&
205
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;
209
if (!DMD->try_to_make_int(mat_num)) {
210
std::cerr << "Failed to cast material number to an integer"
211
<< std::endl;
0 commit comments