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 <algorithm>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#if !defined(linux) && (defined (__sparc) || defined (__sparc__))
|
#if (defined (__sun__) || defined (__sun)) || (!defined(linux) && (defined (__sparc) || defined (__sparc__)))
|
||||||
#include <ieeefp.h>
|
#include <ieeefp.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// just use default rounding for platforms where its not available
|
// just use default rounding for platforms where its not available
|
||||||
#ifndef round
|
#ifndef round
|
||||||
#define round(x) (x)
|
#define round(x) (x)
|
||||||
#endif
|
#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
|
* Constructor
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
@@ -11,15 +11,10 @@
|
|||||||
#include "solver_relax.h"
|
#include "solver_relax.h"
|
||||||
#include "particletracer.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>
|
#include <ieeefp.h>
|
||||||
#endif
|
#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
|
//! coarse step functions
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@@ -13,14 +13,10 @@
|
|||||||
#include "loop_tools.h"
|
#include "loop_tools.h"
|
||||||
#include <stdlib.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>
|
#include <ieeefp.h>
|
||||||
#endif
|
#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 */
|
/*! perform a single LBM step */
|
||||||
|
Reference in New Issue
Block a user