Avoid implicit construction of TallyDerivative

This commit is contained in:
Sterling Harper 2019-02-13 01:05:50 -05:00
parent 8b61bc1a77
commit 2bc8b9a5ff
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ struct TallyDerivative {
double flux_deriv; //!< Derivative of the current particle's weight
TallyDerivative() {}
TallyDerivative(pugi::xml_node node);
explicit TallyDerivative(pugi::xml_node node);
};
//==============================================================================

View file

@ -87,7 +87,7 @@ read_tally_derivatives(pugi::xml_node* node)
#pragma omp parallel
{
for (auto deriv_node : node->children("derivative"))
model::tally_derivs.push_back(deriv_node);
model::tally_derivs.emplace_back(deriv_node);
}
// Fill the derivative map.