comments
This commit is contained in:
@@ -28,7 +28,7 @@ species::ImplementedSpecies SpeciesAlias::alias(const std::string& name) {
|
||||
if (isAlias(name)) {
|
||||
return specie_aliases.at(name);
|
||||
} else {
|
||||
ERROR("This specie has no alias." + name);
|
||||
ERROR("This specie has no alias: " + name);
|
||||
return specie_aliases.at(name);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,6 +32,8 @@ int EnergyBinning::bin(double energy_eV) const {
|
||||
return (it - energy_bin_borders_.begin()) - 1;
|
||||
}
|
||||
|
||||
// max index for energy_bin_borders_ (i.e. number of bins that
|
||||
// have both a lower and upper bound)
|
||||
int EnergyBinning::numBins() const {
|
||||
return energy_bin_borders_.size() - 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user