]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Minor: portability on MacOS
authorabn <adrien.bruneton@cea.fr>
Fri, 27 Jan 2023 15:34:50 +0000 (16:34 +0100)
committerabn <adrien.bruneton@cea.fr>
Fri, 27 Jan 2023 15:36:14 +0000 (16:36 +0100)
src/INTERP_KERNEL/GaussPoints/InterpKernelGaussCoords.cxx

index 657e4a898befd9ab820f4e3b9d3d0abcdf827b49..a74a5948fe2991b4ba2249fb919255055c21364c 100644 (file)
@@ -25,6 +25,7 @@
 #include <math.h>
 #include <algorithm>
 #include <sstream>
+#include <cmath>
 
 using namespace INTERP_KERNEL;
 
@@ -502,8 +503,9 @@ std::vector<double> GaussInfo::GetDefaultReferenceCoordinatesOf(NormalizedCellTy
       return std::vector<double>(HEXA20A_REF,HEXA20A_REF+sizeof(HEXA20A_REF)/sizeof(double));
     case INTERP_KERNEL::NORM_HEXA27:
       return std::vector<double>(HEXA27A_REF,HEXA27A_REF+sizeof(HEXA27A_REF)/sizeof(double));
+    default:
+      THROW_IK_EXCEPTION("Input type " << ct << "is not managed by GetDefaultReferenceCoordinatesOf")
   }
-  THROW_IK_EXCEPTION("Input type " << ct << "is not managed by GetDefaultReferenceCoordinatesOf")
 }
 
 /*!