do not mess around with GCC's optimizations

generally, this is a bad idea because GCC is very good at determining
which optimizations should be enabled or not and also, this may
interfere with some compilers. (e.g., it produces a warning on icc)
This commit is contained in:
Andreas Lauser 2018-03-03 13:04:14 +01:00
parent 0db0e83843
commit 732d86613e

View File

@ -324,12 +324,6 @@ inline VFPEvaluation operator*(
/**
* Helper function which interpolates data using the indices etc. given in the inputs.
*/
#ifdef __GNUC__
#pragma GCC push_options
#pragma GCC optimize ("unroll-loops")
#endif
inline VFPEvaluation interpolate(
const VFPProdTable::array_type& array,
const InterpData& flo_i,
@ -502,17 +496,6 @@ inline VFPEvaluation interpolate(
return nn[0][0];
}
#ifdef __GNUC__
#pragma GCC pop_options //unroll loops
#endif
inline VFPEvaluation bhp(const VFPProdTable* table,
const double& aqua,
const double& liquid,