blueCFD / Core

Coordination repository for the blueCFD-Core: Issue tracking, Wiki, project webpage and miscellaneous scripts
http://bluecfd.github.io/Core
53 stars 10 forks source link

Long double Bessel functions needed... #156

Open wyldckat opened 4 years ago

wyldckat commented 4 years ago

In commit 0c250164dd5cc0e1c1bdb63b96e811c39630a3d5, on blueCFD-Core-8, was introduced a hack where we do the same hack as in the scalar float file... namely in the file src/OpenFOAM/primitives/Scalar/longDoubleScalar/longDoubleScalar.H we have this:

#if (defined( WIN32 ) || defined( WIN64 )) && defined(__STRICT_ANSI__)
#undef __STRICT_ANSI__
#define REDEFINE_SA__
#endif

#include <cmath>

#if defined( WIN32 ) || defined( WIN64 )
#ifdef REDEFINE_SA__
#define __STRICT_ANSI__ 1
#endif

#define j0l _j0
#define j1l _j1
#define jnl _jn
#define y0l _y0
#define y1l _y1
#define ynl _yn
#endif

This isn't a good idea, given that it gives us a lower definition of the values.

mingwex Allegedly has these functions implemented, but I have not idea how real this is or not.