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);
|
||||
|
||||
|
||||
@@ -500,12 +500,12 @@ std::vector<particle::Particle> Simulation::determineInjectedDensityParticles(
|
||||
DEBUG_LEVEL_3("No particles in density of species: " + pair.second->name());
|
||||
continue;
|
||||
}
|
||||
if (current == 0 || true) {
|
||||
if (current == 0) {
|
||||
std::stringstream out;
|
||||
out << pair.second->name();
|
||||
out << "difference: ";
|
||||
out << std::fabs(particleNumberFromDensity_ - particleNumberFromDensity)/particleNumberFromDensity;
|
||||
DEBUG_LEVEL_0(out.str());
|
||||
DEBUG_LEVEL_3(out.str());
|
||||
}
|
||||
injector_->rollNewParticleFromDensityField(random->engine(),
|
||||
pair.second,
|
||||
|
||||
Reference in New Issue
Block a user