Commit b1ea9ad4 authored by mjg226's avatar mjg226
Browse files

added build option passed to kernels for GPU mode (mainly for GP systems)

fixed the decimal precision output to fixed decimals as claimed instead of significant figures
parent 7eb4f1be
......@@ -1948,6 +1948,10 @@ namespace CA {
_building_options += " -D CA_OCL_NATIVE=0";
#endif
#ifdef CA2D_GPU
_building_options += " -D CA2D_GPU=1";
#endif
// Prepare the build info
if(_build_info)
{
......
......@@ -222,6 +222,7 @@ namespace CA {
decimal_places = 6;
onfile.unsetf(std::ios::floatfield);
onfile << std::fixed;
onfile.precision(decimal_places);
// Loop through the data.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment