Skip to content
Snippets Groups Projects
Commit 60ce91de authored by LEGOLAS\lenz's avatar LEGOLAS\lenz
Browse files

set Accumulator type to double to ensure deterministic results

parent 0868f9da
No related branches found
No related tags found
No related merge requests found
......@@ -3,8 +3,18 @@
namespace GksGpu {
typedef float realAccumulator;
//typedef double realAccumulator;
// This file is used to control the data type of accumulator variables.
// Accumulator variables are variables, where cell values are written
// during the flux computation, which is per face. Since the face evaluation
// order on GPUs is arbitrary, the cutoff errors for these accumulators are non
// deterministic. This deficiency can be solved for single precision calculations
// by setting the accumulator data type to double. The deviations are then
// so small, that they are cut off during the downcast to single.
// using double precision accumulators has some performance implications,
// especially on consumer hardware.
//typedef float realAccumulator;
typedef double realAccumulator;
} // namespace GksGpu
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment