central interpolation energy drawing
This commit is contained in:
@@ -225,8 +225,8 @@ CartesianVector VelocityDistributionFromDensityField::drawVelocity(
|
|||||||
// DEBUG(out.str());
|
// DEBUG(out.str());
|
||||||
// #endif
|
// #endif
|
||||||
} else {
|
} else {
|
||||||
// check missing for if nl or nr = 0! -> what alpha to choose?
|
double nl = density_field_->particleNumber(index -
|
||||||
double nl = density_field_->particleNumber(index);
|
blitz::TinyVector<int, 5>(0,0,0,0,1));
|
||||||
double nr = density_field_->particleNumber(index +
|
double nr = density_field_->particleNumber(index +
|
||||||
blitz::TinyVector<int, 5>(0,0,0,0,1));
|
blitz::TinyVector<int, 5>(0,0,0,0,1));
|
||||||
|
|
||||||
@@ -237,6 +237,8 @@ CartesianVector VelocityDistributionFromDensityField::drawVelocity(
|
|||||||
alpha = 1;
|
alpha = 1;
|
||||||
} else if (nr == 0) {
|
} else if (nr == 0) {
|
||||||
alpha = -1;
|
alpha = -1;
|
||||||
|
} else if (nr == 0 && nl == 0) {
|
||||||
|
alpha = 0;
|
||||||
}
|
}
|
||||||
if(alpha == -1) {
|
if(alpha == -1) {
|
||||||
energy_eV = (std::pow(2, theta_distribution_(*engine)) - 1)*energy_step
|
energy_eV = (std::pow(2, theta_distribution_(*engine)) - 1)*energy_step
|
||||||
|
|||||||
Reference in New Issue
Block a user