Included pitch angle binning in the json file;
minor changes to debug output
This commit is contained in:
@@ -723,14 +723,14 @@ blitz::TinyVector<double, 5> DynamicDensityFieldWithPitchAngle::
|
||||
DEBUG_LEVEL_3("Size pitchangle binning: " + std::to_string(mu_bins.size()));
|
||||
DEBUG_LEVEL_3("Size timeinbin: " + std::to_string(time_in_bin_s_.extent(3)));
|
||||
|
||||
auto test = time_in_bin_s_(position_bin(0), position_bin(1), position_bin(2),
|
||||
auto values_mu = time_in_bin_s_(position_bin(0), position_bin(1), position_bin(2),
|
||||
blitz::Range(0, pitch_angle_binning_.binIndexMax()-1),
|
||||
energy_bin);
|
||||
|
||||
// remove the under- and overflow bins for the constant distribution
|
||||
// for now use only the time_in_bin_s_ array (should make no difference but might be worse?)
|
||||
std::piecewise_constant_distribution<double> mu_distribution(
|
||||
mu_bins.begin(), mu_bins.end(), test.begin());
|
||||
mu_bins.begin(), mu_bins.end(), values_mu.begin());
|
||||
|
||||
double random_mu = mu_distribution(*engine);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user