| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 | /** * \file pvfmm_common.hpp * \author Dhairya Malhotra, dhairya.malhotra@gmail.com * \date 12-10-2010 * \brief This file contains common definitions. */#include "pvfmm_config.h"#ifndef _PVFMM_COMMON_HPP_#define _PVFMM_COMMON_HPP_//Define NULL#ifndef NULL#define NULL 0#endif//Disable assert checks.//#define NDEBUG//Enable profiling#define __PROFILE__ 5//Verbose#define __VERBOSE__#define MAX_DEPTH 15#define BC_LEVELS 15#define RAD0 1.05 //Radius of upward equivalent (downward check) surface.#define RAD1 2.95 //Radius of downward equivalent (upward check) surface.#define COORD_DIM 3#define COLLEAGUE_COUNT 27 // 3^COORD_DIM#define MEM_ALIGN 64#define DEVICE_BUFFER_SIZE 1024 //in MB#define V_BLK_SIZE 256#define UNUSED(x) (void)(x) // to ignore unused variable warning.#include <cstdlib>#include <cassert>#ifndef NDEBUG#define ASSERT_WITH_MSG(cond, msg) do \{ if (!(cond)) { std::cerr<<"Error: "<<msg<<'\n'; assert(cond); } \} while(0)#else#define ASSERT_WITH_MSG(cond, msg)#endif#endif //_PVFMM_COMMON_HPP_
 |