mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Update src/distribution.cpp
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
72a6f77b0c
commit
9bb1ef4369
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ DiscreteIndex::DiscreteIndex(pugi::xml_node node)
|
|||
auto params = get_node_array<double>(node, "parameters");
|
||||
std::size_t n = params.size() / 2;
|
||||
|
||||
assign(&(*params.begin()) + n, n);
|
||||
assign(params.data() + n, n);
|
||||
}
|
||||
|
||||
DiscreteIndex::DiscreteIndex(const double* p, int n)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue