OpenFPM_pdata
4.1.0
Project that contain the implementation of distributed structures
Loading...
Searching...
No Matches
grid_gpu.hpp
1
/*
2
* grid_gpu.hpp
3
*
4
* Created on: Oct 31, 2015
5
* Author: i-bird
6
*/
7
8
#ifndef OPENFPM_DATA_SRC_GRID_GRID_GPU_HPP_
9
#define OPENFPM_DATA_SRC_GRID_GRID_GPU_HPP_
10
27
//template<unsigned int dim, typename T, typename S>
28
//class grid_cpu<dim,T,S,typename memory_traits_inte<T>::type> : public grid_base_impl<dim,T,S,typename memory_traits_inte<T>::type, memory_traits_inte>
29
//{
30
// //! grid layout
31
// typedef typename memory_traits_inte<T>::type layout;
32
//
33
//public:
34
//
35
// //! Object container for T, it is the return type of get_o it return a object type trough
36
// // you can access all the properties of T
37
// typedef typename grid_base_impl<dim,T,S,typename memory_traits_inte<T>::type, memory_traits_inte>::container container;
38
//
39
// //! Default constructor
40
// inline grid_cpu() THROW
41
// :grid_base_impl<dim,T,S,layout,memory_traits_inte>()
42
// {
43
// }
44
//
45
// /*! \brief create a grid from another grid
46
// *
47
// * \param g the grid to copy
48
// *
49
// */
50
// inline grid_cpu(const grid_cpu & g) THROW
51
// :grid_base_impl<dim,T,S,layout,memory_traits_inte>(g)
52
// {
53
// }
54
//
55
// /*! \brief create a grid of size sz on each direction
56
// *
57
// * \param sz grid size in each direction
58
// *
59
// */
60
// inline grid_cpu(const size_t & sz) THROW
61
// :grid_base_impl<dim,T,S,layout,memory_traits_inte>(sz)
62
// {
63
// }
64
//
65
// //! Constructor allocate memory and give them a representation
66
// inline grid_cpu(const size_t (& sz)[dim]) THROW
67
// :grid_base_impl<dim,T,S,layout,memory_traits_inte>(sz)
68
// {
69
// }
70
//};
71
//
73
//template <unsigned int dim, typename T> using grid_gpu = grid_cpu<dim,T,CudaMemory,typename memory_traits_inte<T>::type>;
74
75
76
#endif
/* OPENFPM_DATA_SRC_GRID_GRID_GPU_HPP_ */
openfpm_data
src
Grid
grid_gpu.hpp
Generated by
1.9.8