Finish moving apply_derivative_to_score to C++

This commit is contained in:
Sterling Harper 2019-02-10 21:45:54 -05:00
parent e29931fef7
commit ddaed7311b
4 changed files with 275 additions and 409 deletions

View file

@ -1,6 +1,8 @@
#ifndef OPENMC_TALLIES_DERIVATIVE_H
#define OPENMC_TALLIES_DERIVATIVE_H
#include "openmc/particle.h"
#include <unordered_map>
#include <vector>
@ -23,6 +25,16 @@ extern "C" struct TallyDerivative {
TallyDerivative(pugi::xml_node node);
};
//==============================================================================
// Non-method functions
//==============================================================================
//! Scale the given score by its logarithmic derivative
void
apply_derivative_to_score(Particle* p, int i_tally, int i_nuclide,
double atom_density, int score_bin, double* score);
} // namespace openmc
//==============================================================================