mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Make sure openmc_energy_filter_set_bins returns an int
This commit is contained in:
parent
4983cdd35f
commit
3df09f542f
1 changed files with 1 additions and 0 deletions
|
|
@ -180,6 +180,7 @@ openmc_energy_filter_set_bins(int32_t index, int32_t n, const double* energies)
|
|||
for (int i = 0; i < n; i++) filt->bins_[i] = energies[i];
|
||||
filt->n_bins_ = n - 1;
|
||||
filter_update_n_bins(index);
|
||||
return 0;
|
||||
}
|
||||
|
||||
}// namespace openmc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue