Translate print_results to C++

This commit is contained in:
Paul Romano 2019-02-05 12:06:26 -06:00
parent a7b0babb96
commit a732efbe51
8 changed files with 98 additions and 74 deletions

View file

@ -34,7 +34,7 @@ extern "C" double normal_percentile(double p);
//! \return The requested percentile
//==============================================================================
extern "C" double t_percentile_c(double p, int df);
extern "C" double t_percentile(double p, int df);
//==============================================================================
//! Calculate the n-th order Legendre polynomials at the value of x.

View file

@ -5,6 +5,7 @@
#define OPENMC_OUTPUT_H
#include <string>
#include <utility> // for pair
#include "openmc/particle.h"
@ -65,5 +66,13 @@ void print_batch_keff();
void print_runtime();
//! Display results for global tallies including k-effective estimators
void print_results();
//! Calculate the mean and standard deviation for a tally result
std::pair<double, double> mean_stdev(const double* x, int n);
} // namespace openmc
#endif // OPENMC_OUTPUT_H