Skip to content

Commit

Permalink
Merge branch 'scientific_in_code_generation' into 'master'
Browse files Browse the repository at this point in the history
[code generation] literal output scientific (fixes long int to SIMD<double> ambiguity)

See merge request jschoeberl/ngsolve!285
  • Loading branch information
JSchoeberl committed Jan 15, 2018
2 parents 1c9a6b1 + 929f815 commit 6f89a6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fem/code_generation.hpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace ngfem
ss << " /* (" << std::setprecision(16) << std::scientific; ss << " /* (" << std::setprecision(16) << std::scientific;
ss << val << ") */"; ss << val << ") */";
#else #else
ss << std::setprecision(16); ss << std::setprecision(16) << std::scientific;
ss << val; ss << val;
#endif #endif
return ss.str(); return ss.str();
Expand Down

0 comments on commit 6f89a6e

Please sign in to comment.