https://github.com/N-BodyShop/changa
Raw File
Tip revision: 07f4b23ea692a4e235929bb6eea4b134350e0cf8 authored by Lukasz Wesolowski on 14 April 2014, 20:28:11 UTC
Replace floats with cudatype where appropriate and add missing variable assignment in momEval for CUDA
Tip revision: 07f4b23
cosmoType.h
#ifndef __COSMOTYPE_H__
#define __COSMOTYPE_H__

/* #define COSMO_FLOAT */

#ifdef COSMO_FLOAT
#define CONVERT_TO_COSMO_TYPE (float)
typedef float cosmoType;
#define COSMO_CONST(val) val##f
#else
#define CONVERT_TO_COSMO_TYPE
typedef double cosmoType;
#define COSMO_CONST(val) val
#endif

#endif
back to top