Commit fc14489c authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Prevent an FPE in the cooling code created by the Intel compiler's over-enthusiastic vectorizer.

parent 4edeaaf1
......@@ -294,6 +294,9 @@ void read_cooling_header(const char *fname,
/* Compute inverse of solar mass fractions */
#if defined(__ICC)
#pragma novec
for (int i = 0; i < N_SolarAbundances; ++i) {
cooling->SolarAbundances_inv[i] = 1.f / cooling->SolarAbundances[i];
  • Seeing:

    icc: command line remark #10120: overriding '-O0' with '-O3'
    cooling/EAGLE/cooling_tables.c(298): error #161: unrecognized #pragma
      #pragma novec

    Shouldn't this be novector?

  • That compiled, so will push the fix.

  • Thanks. I should not be editing code on my laptop and cosma at the same time...

Supports Markdown
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