Apply @pshriwise suggestions from code review

Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
This commit is contained in:
Paul Romano 2020-09-17 22:18:20 -05:00 committed by GitHub
parent 18c132ab67
commit ce6bfa47b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -228,7 +228,7 @@ class ReactionRateHelper(ABC):
Responsible for generating reaction rate tallies for burnable materials,
given nuclides and scores from the operator.
Reaction rates are passed back to the operator for be used in an
Reaction rates are passed back to the operator to be used by an
:class:`openmc.deplete.OperatorResult` instance.
Parameters

View file

@ -108,7 +108,7 @@ class DirectReactionRateHelper(ReactionRateHelper):
class FluxCollapseHelper(ReactionRateHelper):
"""Class that generating one-group reaction rates using multigroup flux
"""Class that generates one-group reaction rates using multigroup flux
This class generates a multigroup flux tally that is used afterward to
calculate a one-group reaction rate by collapsing it with continuous-energy

View file

@ -1111,7 +1111,7 @@ openmc_nuclide_collapse_rate(int index, int MT, double temperature,
*xs = data::nuclides[index]->collapse_rate(MT, temperature,
{energy, energy + n + 1}, {flux, flux + n});
} catch (const std::out_of_range& e) {
fmt::print("Cuaght error\n");
fmt::print("Caught error\n");
set_errmsg(e.what());
return OPENMC_E_OUT_OF_BOUNDS;
}