reduction of std::pow calls; stronger usage of
Cartesian- and CylinderCoordinate objects
This commit is contained in:
@@ -44,7 +44,7 @@ blitz::Array<double, 3> initiateVolumeArray(
|
||||
const double z2 = (iz + 1) * position_spacing(2);
|
||||
|
||||
const double bin_volume =
|
||||
M_PI * (std::pow(r2, 2) - std::pow(r1, 2)) * (z2 - z1) / phi.length();
|
||||
M_PI * ((r2*r2) - (r1*r1)) * (z2 - z1) / phi.length();
|
||||
|
||||
volume(ir, blitz::Range::all(), iz) = bin_volume;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user