changes from double to float to check if
error is indeed cancellation error
This commit is contained in:
@@ -36,6 +36,8 @@ class CpuSynchronizer {
|
||||
*/
|
||||
void sumToAll(blitz::Array<double, 4>& array,
|
||||
blitz::Array<double, 4>& last_sync_array);
|
||||
void sumToAll(blitz::Array<float, 5>& array,
|
||||
blitz::Array<float, 5>& last_sync_array);
|
||||
void sumToAll(blitz::Array<double, 5>& array,
|
||||
blitz::Array<double, 5>& last_sync_array);
|
||||
void sumToAll(blitz::Array<double, 3>& array,
|
||||
|
||||
@@ -57,7 +57,7 @@ class DynamicDensityField : public DensityField {
|
||||
|
||||
blitz::Array<double, 3> densityArray();
|
||||
blitz::Array<double, 4> spectrumArray();
|
||||
blitz::Array<double, 5> timeInBinArray() const;
|
||||
blitz::Array<float, 5> timeInBinArray() const;
|
||||
// blitz::Array<long int, 5> deletedParticlesArray() const;
|
||||
blitz::Array<double, 3> binVolumeArray() const;
|
||||
|
||||
@@ -68,7 +68,7 @@ class DynamicDensityField : public DensityField {
|
||||
|
||||
// return an array of the time in bin at the Coordinate position and the energy
|
||||
// energy_eV (only pitch angle direction left); over and underflow bin are removed
|
||||
blitz::Array<double, 1> sliceTimeInBinArray(const Coordinate& position,
|
||||
blitz::Array<float, 1> sliceTimeInBinArray(const Coordinate& position,
|
||||
double energy_eV) const;
|
||||
|
||||
const EnergyBinning* energyBinning() const;
|
||||
@@ -94,10 +94,10 @@ class DynamicDensityField : public DensityField {
|
||||
// time in bin now contains the physical particle number per bin
|
||||
// (not renamed, since that would require many, many changes due to
|
||||
// renaming of the functions)
|
||||
blitz::Array<double, 5> time_in_bin_s_;
|
||||
blitz::Array<float, 5> time_in_bin_s_;
|
||||
// blitz::Array<long int, 5> deleted_particles_;
|
||||
|
||||
blitz::Array<double, 5> sync_time_in_bin_s_;
|
||||
blitz::Array<float, 5> sync_time_in_bin_s_;
|
||||
// blitz::Array<long int, 5> sync_deleted_particles_;
|
||||
|
||||
blitz::Array<double, 4> density_per_m3_;
|
||||
|
||||
Reference in New Issue
Block a user