Skip to content

Commit 58f2a21

Browse files
authored
Hotfix: Remove errant openmc.Settings.random_ray check and removed of not useful warning in MG mode (#3344)
1 parent 906548d commit 58f2a21

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

openmc/settings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,6 @@ def random_ray(self, random_ray: dict):
11741174
raise ValueError(
11751175
f'Invalid domain type: {type(domain)}. Expected '
11761176
'openmc.Material, openmc.Cell, or openmc.Universe.')
1177-
cv.check_type('adjoint', value, bool)
11781177
elif key == 'sample_method':
11791178
cv.check_value('sample method', value,
11801179
('prng', 'halton'))

src/scattdata.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,12 @@ void ScattData::base_init(int order, const xt::xtensor<int, 1>& in_gmin,
3737
mult[gin] = in_mult[gin];
3838

3939
// Make sure the multiplicity does not have 0s
40-
unsigned long int num_converted = 0;
4140
for (int go = 0; go < mult[gin].size(); go++) {
4241
if (mult[gin][go] == 0.) {
43-
num_converted += 1;
4442
mult[gin][go] = 1.;
4543
}
4644
}
4745

48-
if (num_converted > 0) {
49-
// Raise a warning to the user if we did have to do the conversion
50-
std::string msg =
51-
std::to_string(num_converted) +
52-
" entries in the Multiplicity Matrix were changed from 0 to 1";
53-
warning(msg);
54-
}
55-
5646
// Make sure the energy is normalized
5747
double norm = std::accumulate(energy[gin].begin(), energy[gin].end(), 0.);
5848

0 commit comments

Comments
 (0)