include <ieeefp.h> on solaris and remove incorrect macro so finite() is now correct
This commit is contained in:
@@ -13,21 +13,15 @@
|
||||
#include <algorithm>
|
||||
#include <stdio.h>
|
||||
|
||||
#if !defined(linux) && (defined (__sparc) || defined (__sparc__))
|
||||
#if (defined (__sun__) || defined (__sun)) || (!defined(linux) && (defined (__sparc) || defined (__sparc__)))
|
||||
#include <ieeefp.h>
|
||||
#endif
|
||||
|
||||
|
||||
// just use default rounding for platforms where its not available
|
||||
#ifndef round
|
||||
#define round(x) (x)
|
||||
#endif
|
||||
|
||||
// GCC 3.4.3 on solaris 10 dosnt have finite, win32 also just does this
|
||||
#ifndef finite
|
||||
# define finite(x) (x>=0.0)
|
||||
#endif
|
||||
|
||||
/******************************************************************************
|
||||
* Constructor
|
||||
*****************************************************************************/
|
||||
|
@@ -11,15 +11,10 @@
|
||||
#include "solver_relax.h"
|
||||
#include "particletracer.h"
|
||||
|
||||
#if !defined(linux) && (defined (__sparc) || defined (__sparc__))
|
||||
#if (defined (__sun__) || defined (__sun)) || (!defined(linux) && (defined (__sparc) || defined (__sparc__)))
|
||||
#include <ieeefp.h>
|
||||
#endif
|
||||
|
||||
// GCC 3.4.3 on solaris 10 dosnt have finite, win32 also just does this
|
||||
#ifndef finite
|
||||
# define finite(x) (x>=0.0)
|
||||
#endif
|
||||
|
||||
/*****************************************************************************/
|
||||
//! coarse step functions
|
||||
/*****************************************************************************/
|
||||
|
@@ -13,14 +13,10 @@
|
||||
#include "loop_tools.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
#if !defined(linux) && (defined (__sparc) || defined (__sparc__))
|
||||
#if (defined (__sun__) || defined (__sun)) || (!defined(linux) && (defined (__sparc) || defined (__sparc__)))
|
||||
#include <ieeefp.h>
|
||||
#endif
|
||||
|
||||
// GCC 3.4.3 on solaris 10 dosnt have finite, win32 also just does this
|
||||
#ifndef finite
|
||||
# define finite(x) (x>=0.0)
|
||||
#endif
|
||||
|
||||
/*****************************************************************************/
|
||||
/*! perform a single LBM step */
|
||||
|
Reference in New Issue
Block a user