reduction of std::pow calls; stronger usage of

Cartesian- and CylinderCoordinate objects
This commit is contained in:
2025-06-02 11:09:57 +02:00
parent f510d0a39a
commit d6578e540d
19 changed files with 120 additions and 77 deletions
+1 -1
View File
@@ -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;
}