mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-22 09:16:27 -06:00
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:
parent
0db0e83843
commit
732d86613e
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user