URI:
       tconstants.cuh - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
  HTML git clone git://src.adamsgaard.dk/sphere
   DIR Log
   DIR Files
   DIR Refs
   DIR LICENSE
       ---
       tconstants.cuh (970B)
       ---
            1 #ifndef CONSTANTS_CUH_
            2 #define CONSTANTS_CUH_
            3 
            4 #include "datatypes.h"
            5 
            6 // Most constant memory variables are stored in
            7 // structures, see datatypes.cuh
            8 
            9 // Constant memory size: 64 kb
           10 __constant__ unsigned int devC_nd;   // Number of dimensions
           11 __constant__ unsigned int devC_np;   // Number of particles
           12 __constant__ unsigned int devC_nw;   // Number of dynamic walls
           13 __constant__ int   devC_nc;   // Max. number of contacts a particle can have
           14 __constant__ Float devC_dt;   // Computational time step length
           15 __constant__ unsigned int devC_nb0;  // Number of inter-particle bonds at t=0
           16 
           17 // Device constant memory structures
           18 __constant__ Params devC_params;
           19 __constant__ Grid   devC_grid;
           20 
           21 // Raytracer constants
           22 __constant__ float3 devC_u;
           23 __constant__ float3 devC_v;
           24 __constant__ float3 devC_w;
           25 __constant__ float3 devC_eye;
           26 __constant__ float4 devC_imgplane;
           27 __constant__ float  devC_d;
           28 __constant__ float3 devC_light;
           29 __constant__ unsigned int devC_pixels;
           30 
           31 #endif