diff --git a/openmc/settings.py b/openmc/settings.py index ead2c0d002..17c24ba81e 100644 --- a/openmc/settings.py +++ b/openmc/settings.py @@ -1174,7 +1174,6 @@ class Settings: raise ValueError( f'Invalid domain type: {type(domain)}. Expected ' 'openmc.Material, openmc.Cell, or openmc.Universe.') - cv.check_type('adjoint', value, bool) elif key == 'sample_method': cv.check_value('sample method', value, ('prng', 'halton')) diff --git a/src/scattdata.cpp b/src/scattdata.cpp index 813f9e19b5..21b18cbd92 100644 --- a/src/scattdata.cpp +++ b/src/scattdata.cpp @@ -37,22 +37,12 @@ void ScattData::base_init(int order, const xt::xtensor& in_gmin, mult[gin] = in_mult[gin]; // Make sure the multiplicity does not have 0s - unsigned long int num_converted = 0; for (int go = 0; go < mult[gin].size(); go++) { if (mult[gin][go] == 0.) { - num_converted += 1; mult[gin][go] = 1.; } } - if (num_converted > 0) { - // Raise a warning to the user if we did have to do the conversion - std::string msg = - std::to_string(num_converted) + - " entries in the Multiplicity Matrix were changed from 0 to 1"; - warning(msg); - } - // Make sure the energy is normalized double norm = std::accumulate(energy[gin].begin(), energy[gin].end(), 0.);