Update of /cvsroot/opal/opal/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27140/src
Modified Files:
OpalMath.h
Log Message:
Added a compile-time flag OPAL_USE_DOUBLE which determines whether OPAL's reals are floats or doubles. Also added a run-time check when a physics engine-specific Simulator (e.g. ODESimulator) is created to make sure OPAL's reals are the same size as the physics engine's reals.
Index: OpalMath.h
===================================================================
RCS file: /cvsroot/opal/opal/src/OpalMath.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** OpalMath.h 2 May 2005 16:40:59 -0000 1.13
--- OpalMath.h 24 Jun 2005 16:40:49 -0000 1.14
***************
*** 33,37 ****
namespace opal
{
! typedef float real;
namespace globals
--- 33,41 ----
namespace opal
{
! #ifdef OPAL_USE_DOUBLE
! typedef double real;
! #else
! typedef float real;
! #endif
namespace globals
|