Commit de3e7cff authored by mjg226's avatar mjg226
Browse files

added default constructor, temporarily to Grid.hpp

parent 1d33c019
......@@ -94,6 +94,8 @@ namespace CA {
{
public:
Grid();
//! Create the square regular grid of the CA. It is possible to
//! have implementation specific options set by using the options
//! list.
......@@ -473,6 +475,57 @@ namespace CA {
/// ----- Inline implementation ----- ///
inline Grid::Grid() :
_cagrid(),
_cagrid_short(),
// former static variables.
initcl(false),
_warp(32),
_context(),
_platforms(),
_platforms_num(),
_devices(),
_platform_name(),
_device_type(CL_DEVICE_TYPE_GPU),
_devices_num(0),
_device_fission(false),
_device_cu(0),
_queue(),
_kernels_program(),
_building_options(),
_queue_properties(0),
_build_info(false),
_kernel_setValueReal(),
_kernel_setValueState(),
_kernel_opValueReal(),
_kernel_opValueState(),
_kernel_reduceReal(),
_kernel_reduceState(),
_kernel_copyHLineReal(),
_kernel_copyVLineReal(),
_kernel_copyHLineState(),
_kernel_copyVLineState(),
_kernel_copyPointReal(),
_kernel_copyPointState(),
_config_filename("config_NVIDIA_GPU.csv"),
_hash_ranges(),
_programsMap(),
#if defined _WIN32 || defined __CYGWIN__
_datadir(".\\")
#else
_datadir("./")
#endif
{
}
inline Grid::Grid(Unsigned x_num, Unsigned y_num, Real length, Real x_coo, Real y_coo,
const Options& options):
......
......@@ -60,6 +60,8 @@ namespace CA {
{
public:
Grid();
//! Create the square regular grid of the CA. It is possible to
//! have implementation specific options set by using the options
//! list.
......@@ -200,6 +202,10 @@ namespace CA {
/// ----- Inline implementation ----- ///
inline Grid::Grid()
{
}
inline Grid::Grid(Unsigned x_num, Unsigned y_num, Real length, Real x_coo, Real y_coo,
const Options& options):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment