Build fail with intel compiler 11.1

Post Reply
ehagen

Build fail with intel compiler 11.1

Post by ehagen »

Hi,
Had some problems building revision 842 with the intel compiler installed on my cluster, which i resolved with the following "fix";

Code: Select all

diff -r 0ac0ad194d99 src/nrniv/geometry3d.cpp
--- a/src/nrniv/geometry3d.cpp	Tue Apr 02 08:12:23 2013 -0400
+++ b/src/nrniv/geometry3d.cpp	Thu Apr 04 11:37:11 2013 +0200
@@ -336,7 +336,7 @@
         return;
     }
     double mu = v1 / delta_v;
-    if (std::isnan(mu)) {
+    if (isnan(mu)) {
         printf("geometry3d_vi error. delta_v = %g, v1 = %g, v2 = %g\n", delta_v, v1, v2);
     }
     out[0] = p1[0] + mu * (p2[0] - p1[0]);
Best regards,
Espen
hines
Site Admin
Posts: 1682
Joined: Wed May 18, 2005 3:32 pm

Re: Build fail with intel compiler 11.1

Post by hines »

Thanks,That's a compiler bug that has been fixed in a more recent version of the intel compiler. Nevertheless, since that is being experienced
too often, the implementation has been change to include the c version of math.h. The change is in the hg repository.
http://www.neuron.yale.edu/hg/neuron/nr ... bd5a5f50a9
Post Reply