   glutPostRedisplay();
 }
 
+// Idle function for GLUT, called when nothing is happening
 __host__ void idleSim() {
   glutPostRedisplay();
 }

}

__host__ int main (int argc, char* argv[]) {

   for (int i = 1; i < argc; ++i) {
#define check_index(i,str) \
   if ((i) >= argc) \

  // Unregister with CUDA
  checkCudaErrors( cudaGraphicsUnregisterResource(vbo_res) );

  // Delete VBO and free pointer
  glBindBuffer(1, *vbo);
  glDeleteBuffers(1, vbo);

  *vbo = 0;
}

// Main render function for GLUT which loops until exit
__host__ void Render() {

  // Launch Kernel
