|
| template<typename H > |
| | staggered_grid_dist (const grid_dist_id< dim, St, H, typename Decomposition::base_type, Memory, grid_cpu< dim, H >> &g, const Ghost< dim, long int > &gh, Box< dim, size_t > ext) |
| | This constructor is special, it construct an expanded grid that perfectly overlap with the previous. More...
|
| |
| | staggered_grid_dist (const size_t(&g_sz)[dim], const Box< dim, St > &domain, const Ghost< dim, St > &ghost) |
| | Constructor. More...
|
| |
| | staggered_grid_dist (const size_t(&g_sz)[dim], const Box< dim, St > &domain, const Ghost< dim, long int > &ghost) |
| | Constructor. More...
|
| |
| | staggered_grid_dist (const size_t(&g_sz)[dim], const Box< dim, St > &domain, const Ghost< dim, long int > &g, const periodicity< dim > &p) |
| |
| | staggered_grid_dist (const Decomposition &dec, const size_t(&g_sz)[dim], const Ghost< dim, long int > &g) |
| |
| | staggered_grid_dist (const Decomposition &dec, const size_t(&g_sz)[dim], const Ghost< dim, St > &ghost) |
| |
| template<unsigned int p> |
| void | setStagPosition (openfpm::vector< comb< dim >> &cmb) |
| | set the staggered positions of the properties More...
|
| |
|
void | setDefaultStagPosition () |
| | It set all the properties defined to be staggered on the default location.
|
| |
| template<typename Grid_dst , unsigned int ... pos> |
| bool | to_normal (Grid_dst &g_dst, const Padding< dim > &pd, const long int(&start)[dim], const long int(&stop)[dim]) |
| | Copy the staggered grid into a normal one. More...
|
| |
| const | openfpm::vector (&getStagPositions())[T |
| | Get the staggered positions. More...
|
| |
| void | write (std::string str) |
| | Write a vtk file with the information of the staggered grid. More...
|
| |
| bool | is_staggered_prop (size_t prp) |
| | Return if the properties is a staggered property or not. More...
|
| |
| bool | is_staggered () const |
| | Return if the grid is staggered. More...
|
| |
| const Box< dim, St > | getDomain () const |
| | Get the domain where the grid is defined. More...
|
| |
| openfpm::vector< grid_cpu< dim, T > > & | getLocalGrid () |
| | Get the local grid. More...
|
| |
| Point< dim, St > | getOffset (size_t i) |
| | Get the point where it start the origin of the grid of the sub-domain i. More...
|
| |
| St | spacing (size_t i) const |
| | Get the spacing of the grid in direction i. More...
|
| |
| size_t | size () const |
| | Return the total number of points in the grid. More...
|
| |
| size_t | size (size_t i) const |
| | Return the total number of points in the grid. More...
|
| |
| void | setBackgroundValue (T &bv) |
| | set the background value More...
|
| |
| void | setBackgroundValue (const typename boost::mpl::at< typename T::type, boost::mpl::int_< p >>::type &bv) |
| | set the background value More...
|
| |
| size_t | size_local_inserted () const |
| | Return the local total number of points inserted in the grid. More...
|
| |
| | grid_dist_id (const grid_dist_id< dim, St, T, CartDecomposition< dim, St >, HeapMemory, grid_cpu< dim, T > > &g) |
| | Copy constructor. More...
|
| |
| | grid_dist_id (const grid_dist_id< dim, St, H, typename Decomposition::base_type, HeapMemory, grid_cpu< dim, H >> &g, const Ghost< dim, long int > &gh, Box< dim, size_t > ext) |
| | This constructor is special, it construct an expanded grid that perfectly overlap with the previous. More...
|
| |
| | grid_dist_id (const Decomposition2 &dec, const size_t(&g_sz)[dim], const Ghost< dim, St > &ghost) |
| |
| | grid_dist_id (CartDecomposition< dim, St > &&dec, const size_t(&g_sz)[dim], const Ghost< dim, St > &ghost) |
| |
| | grid_dist_id (const CartDecomposition< dim, St > &dec, const size_t(&g_sz)[dim], const Ghost< dim, long int > &g) |
| |
| | grid_dist_id (const Decomposition2 &dec, const size_t(&g_sz)[dim], const Ghost< dim, long int > &g) |
| |
| | grid_dist_id (CartDecomposition< dim, St > &&dec, const size_t(&g_sz)[dim], const Ghost< dim, long int > &g) |
| |
| | grid_dist_id (const size_t(&g_sz)[dim], const Box< dim, St > &domain, const Ghost< dim, St > &g, size_t opt=0) |
| |
| | grid_dist_id (const size_t(&g_sz)[dim], const Box< dim, St > &domain, const Ghost< dim, long int > &g, size_t opt=0) |
| |
| | grid_dist_id (const size_t(&g_sz)[dim], const Box< dim, St > &domain, const Ghost< dim, St > &g, const periodicity< dim > &p, size_t opt=0) |
| |
| | grid_dist_id (const size_t(&g_sz)[dim], const Box< dim, St > &domain, const Ghost< dim, long int > &g, const periodicity< dim > &p, size_t opt=0, const grid_sm< dim, void > &g_dec=grid_sm< dim, void >()) |
| |
| | grid_dist_id (const size_t(&g_sz)[dim], const Box< dim, St > &domain, const Ghost< dim, long int > &g, const periodicity< dim > &p, openfpm::vector< Box< dim, long int >> &bx_def) |
| | It construct a grid on the full domain restricted to the set of boxes specified. More...
|
| |
| const grid_sm< dim, T > & | getGridInfo () const |
| | Get an object containing the grid informations. More...
|
| |
| const grid_sm< dim, void > & | getGridInfoVoid () const |
| | Get an object containing the grid informations without type. More...
|
| |
| CartDecomposition< dim, St > & | getDecomposition () |
| | Get the object that store the information about the decomposition. More...
|
| |
| const CartDecomposition< dim, St > & | getDecomposition () const |
| | Get the object that store the information about the decomposition. More...
|
| |
| const CellDecomposer_sm< dim, St, shift< dim, St > > & | getCellDecomposer () const |
| | Return the cell decomposer. More...
|
| |
| bool | isInside (const grid_key_dx< dim > &gk) const |
| | Check that the global grid key is inside the grid domain. More...
|
| |
| size_t | getLocalDomainSize () const |
| | Get the total number of grid points for the calling processor. More...
|
| |
| size_t | getLocalDomainWithGhostSize () const |
| | Get the total number of grid points with ghost for the calling processor. More...
|
| |
| const openfpm::vector< GBoxes< device_grid::dims > > & | getLocalGridsInfo () const |
| | It return the informations about the local grids. More...
|
| |
| void | getGlobalGridsInfo (openfpm::vector< GBoxes< device_grid::dims >> &gdb_ext_global) const |
| | It gathers the information about local grids for all of the processors. More...
|
| |
| grid_dist_iterator< dim, grid_cpu< dim, T >, decltype(device_grid::type_of_subiterator()), FREE > | getOldDomainIterator () const |
| | It return an iterator that span the full grid domain (each processor span its local domain) More...
|
| |
| grid_dist_id_iterator_dec< CartDecomposition< dim, St > > | getGridIterator (const grid_key_dx< dim > &start, const grid_key_dx< dim > &stop) |
| |
| grid_dist_id_iterator_dec< CartDecomposition< dim, St > > | getGridIterator () |
| |
| grid_dist_id_iterator_dec< CartDecomposition< dim, St >, true > | getGridGhostIterator (const grid_key_dx< dim > &start, const grid_key_dx< dim > &stop) |
| |
| grid_dist_iterator< dim, grid_cpu< dim, T >, decltype(device_grid::type_of_subiterator()), FREE > | getDomainIterator () const |
| | It return an iterator that span the full grid domain (each processor span its local domain) More...
|
| |
| grid_dist_iterator< dim, grid_cpu< dim, T >, decltype(device_grid::template type_of_subiterator< stencil_offset_compute< dim, Np >>()), FREE, stencil_offset_compute< dim, Np > > | getDomainIteratorStencil (const grid_key_dx< dim >(&stencil_pnt)[Np]) const |
| | It return an iterator that span the full grid domain (each processor span its local domain) More...
|
| |
| grid_dist_iterator< dim, grid_cpu< dim, T >, decltype(device_grid::type_of_iterator()), FIXED > | getDomainGhostIterator () const |
| | It return an iterator that span the grid domain + ghost part. More...
|
| |
| grid_dist_iterator_sub< dim, grid_cpu< dim, T > > | getSubDomainIterator (const grid_key_dx< dim > &start, const grid_key_dx< dim > &stop) const |
| | It return an iterator that span the grid domain only in the specified part. More...
|
| |
| grid_dist_iterator_sub< dim, grid_cpu< dim, T > > | getSubDomainIterator (const long int(&start)[dim], const long int(&stop)[dim]) const |
| | It return an iterator that span the grid domain only in the specified part. More...
|
| |
|
| ~grid_dist_id () |
| | Destructor.
|
| |
| Vcluster & | getVC () |
| | Get the Virtual Cluster machine. More...
|
| |
|
void | removeUnusedBuffers () |
| | Eliminate many internal temporary buffer you can use this between flushes if you get some out of memory.
|
| |
| bool | is_staggered () const |
| | Indicate that this grid is not staggered. More...
|
| |
| void | remove (const grid_dist_key_dx< dim, bg_key > &v1) |
| | remove an element in the grid More...
|
| |
| void | remove_no_flush (const grid_dist_key_dx< dim, bg_key > &v1) |
| | remove an element in the grid More...
|
| |
|
void | flush (flush_type opt=flush_type::FLUSH_ON_HOST) |
| |
| void | flush_remove () |
| | remove an element in the grid More...
|
| |
| auto | insert (const grid_dist_key_dx< dim, bg_key > &v1) -> decltype(loc_grid.get(v1.getSub()).template insert< p >(v1.getKey())) |
| | insert an element in the grid More...
|
| |
| auto | insertFlush (const grid_dist_key_dx< dim, bg_key > &v1) -> decltype(loc_grid.get(v1.getSub()).template insertFlush< p >(v1.getKey())) |
| | insert an element in the grid More...
|
| |
| auto | insertFlush (const grid_dist_key_dx< dim, bg_key > &v1) -> decltype(loc_grid.get(v1.getSub()).insertFlush(v1.getKey())) |
| | insert an element in the grid More...
|
| |
| auto | get (const grid_dist_key_dx< dim, bg_key > &v1) const -> typename std::add_lvalue_reference< decltype(loc_grid.get(v1.getSub()).template get< p >(v1.getKey()))>::type |
| | Get the reference of the selected element. More...
|
| |
| auto | get (const grid_dist_key_dx< dim, bg_key > &v1) -> decltype(loc_grid.get(v1.getSub()).template get< p >(v1.getKey())) |
| | Get the reference of the selected element. More...
|
| |
| auto | get (const grid_dist_g_dx< grid_cpu< dim, T > > &v1) const -> decltype(v1.getSub() ->template get< p >(v1.getKey())) |
| | Get the reference of the selected element. More...
|
| |
| auto | get (const grid_dist_g_dx< grid_cpu< dim, T > > &v1) -> decltype(v1.getSub() ->template get< p >(v1.getKey())) |
| | Get the reference of the selected element. More...
|
| |
| auto | get (const grid_dist_lin_dx &v1) const -> decltype(loc_grid.get(v1.getSub()).template get< p >(v1.getKey())) |
| | Get the reference of the selected element. More...
|
| |
| auto | get (const grid_dist_lin_dx &v1) -> decltype(loc_grid.get(v1.getSub()).template get< p >(v1.getKey())) |
| | Get the reference of the selected element. More...
|
| |
| Point< dim, St > | getPos (const grid_dist_key_dx< dim, bg_key > &v1) |
| | Get the reference of the selected element. More...
|
| |
| bool | existPoint (const grid_dist_key_dx< dim, bg_key > &v1) const |
| | Check if the point exist. More...
|
| |
| auto | getProp (const grid_dist_key_dx< dim, bgkey > &v1) const -> decltype(this->template get< p >(v1)) |
| | Get the reference of the selected element. More...
|
| |
| auto | getProp (const grid_dist_key_dx< dim, bgkey > &v1) -> decltype(this->template get< p >(v1)) |
| | Get the reference of the selected element. More...
|
| |
| void | ghost_get (size_t opt=0) |
| | It synchronize the ghost parts. More...
|
| |
| void | ghost_put () |
| | It synchronize the ghost parts. More...
|
| |
| grid_dist_id< dim, St, T, CartDecomposition< dim, St >, HeapMemory, grid_cpu< dim, T > > & | copy (grid_dist_id< dim, St, T, CartDecomposition< dim, St >, HeapMemory, grid_cpu< dim, T > > &g, bool use_memcpy=true) |
| | Copy the give grid into this grid. More...
|
| |
| grid_dist_id< dim, St, T, CartDecomposition< dim, St >, HeapMemory, grid_cpu< dim, T > > & | copy_sparse (grid_dist_id< dim, St, T, CartDecomposition< dim, St >, HeapMemory, grid_cpu< dim, T > > &g, bool use_memcpy=true) |
| | Copy the give grid into this grid. More...
|
| |
| Point< dim, St > | getSpacing () |
| | Get the spacing on each dimension. More...
|
| |
| grid_key_dx< dim > | getGKey (const grid_dist_key_dx< dim > &k) const |
| | Convert a g_dist_key_dx into a global key. More...
|
| |
| void | addComputationCosts (Model md=Model(), size_t ts=1) |
| | Add the computation cost on the decomposition using a resolution function. More...
|
| |
|
void | conv (int(&stencil)[N][dim], grid_key_dx< 3 > start, grid_key_dx< 3 > stop, lambda_f func, ArgsT ... args) |
| | apply a convolution using the stencil N
|
| |
|
void | conv (grid_key_dx< dim > start, grid_key_dx< dim > stop, lambda_f func, ArgsT ... args) |
| | apply a convolution on GPU
|
| |
|
void | conv_cross (grid_key_dx< 3 > start, grid_key_dx< 3 > stop, lambda_f func, ArgsT ... args) |
| | apply a convolution using the stencil N
|
| |
|
void | conv_cross_b (grid_key_dx< 3 > start, grid_key_dx< 3 > stop, lambda_f func, ArgsT ... args) |
| | apply a convolution using the stencil N
|
| |
|
void | conv_cross_ids (grid_key_dx< 3 > start, grid_key_dx< 3 > stop, lambda_f func, ArgsT ... args) |
| | apply a convolution using the stencil N
|
| |
|
void | conv2 (int(&stencil)[N][dim], grid_key_dx< dim > start, grid_key_dx< dim > stop, lambda_f func, ArgsT ... args) |
| | apply a convolution using the stencil N
|
| |
|
void | conv2 (grid_key_dx< dim > start, grid_key_dx< dim > stop, lambda_f func, ArgsT ... args) |
| | apply a convolution on 2 property on GPU
|
| |
|
void | conv2_b (grid_key_dx< dim > start, grid_key_dx< dim > stop, lambda_f func, ArgsT ... args) |
| | apply a convolution on 2 property on GPU
|
| |
|
void | conv3_b (grid_key_dx< dim > start, grid_key_dx< dim > stop, lambda_f func, ArgsT ... args) |
| | apply a convolution on 2 property on GPU
|
| |
|
void | findNeighbours () |
| |
|
void | conv_cross2 (grid_key_dx< 3 > start, grid_key_dx< 3 > stop, lambda_f func, ArgsT ... args) |
| | apply a convolution using the stencil N
|
| |
| bool | write (std::string output, size_t opt=VTK_WRITER|FORMAT_BINARY) |
| | Write the distributed grid information. More...
|
| |
| bool | write_debug (std::string output) |
| | Write all grids indigually. More...
|
| |
| bool | write_frame (std::string output, size_t i, size_t opt=VTK_WRITER|FORMAT_ASCII) |
| | Write the distributed grid information. More...
|
| |
| grid_cpu< dim, T > & | get_loc_grid (size_t i) |
| | Get the i sub-domain grid. More...
|
| |
| const grid_cpu< dim, T > & | get_loc_grid (size_t i) const |
| | Get the i sub-domain grid. More...
|
| |
| grid_key_dx_iterator_sub< dim, no_stencil > | get_loc_grid_iterator (size_t i) |
| | Get the i sub-domain grid. More...
|
| |
| grid_key_dx_iterator_sub< dim, stencil_offset_compute< dim, Np >, typename device_grid::linearizer_type > | get_loc_grid_iterator_stencil (size_t i, const grid_key_dx< dim >(&stencil_pnt)[Np]) |
| | Get the i sub-domain grid. More...
|
| |
| size_t | getN_loc_grid () const |
| | Return the number of local grid. More...
|
| |
|
void | debugPrint () |
| | It print the internal ghost boxes and external ghost boxes in global unit.
|
| |
| void | setPropNames (const openfpm::vector< std::string > &names) |
| | Set the properties names. More...
|
| |
| const openfpm::vector< std::string > & | getPropNames () |
| | Set the properties names. More...
|
| |
| void | clear () |
| | It delete all the points. More...
|
| |
| void | construct_link (self &grid_up, self &grid_dw) |
| | construct link between levels More...
|
| |
| void | construct_link_dw (self &grid_dw, openfpm::vector< offset_mv< dim >> &mvof) |
| | construct link between current and the level down More...
|
| |
| void | construct_link_up (self &grid_up, openfpm::vector< offset_mv< dim >> &mvof) |
| | construct link between current and the level up More...
|
| |
| void | tagBoundaries () |
| | construct link between current and the level up More...
|
| |
|
void | map (size_t opt=0) |
| | It move all the grid parts that do not belong to the local processor to the respective processor.
|
| |
| void | save (const std::string &filename) const |
| | Save the grid state on HDF5. More...
|
| |
| void | load (const std::string &filename) |
| | Reload the grid from HDF5 file. More...
|
| |
| const openfpm::vector< i_lbox_grid< dim > > & | get_loc_ig_box () |
| | Get the internal local ghost box. More...
|
| |
| const openfpm::vector< i_lbox_grid< dim > > & | get_ig_box () |
| | Get the internal ghost box. More...
|
| |
|
void | print_stats () |
| |
|
void | clear_stats () |
| |
| void | grids_reconstruct (openfpm::vector< openfpm::vector< aggregate< grid_cpu< dim, T >, Box< dim, long int >>>> &m_oGrid_recv, openfpm::vector< grid_cpu< dim, T > > &loc_grid, openfpm::vector< GBoxes< device_grid::dims >> &gdb_ext, CellDecomposer_sm< dim, St, shift< dim, St >> &cd_sm) |
| | Reconstruct the local grids. More...
|
| |
| void | labelIntersectionGridsProcessor_and_pack (CartDecomposition< dim, St > &dec, CellDecomposer_sm< dim, St, shift< dim, St >> &cd_sm, openfpm::vector< grid_cpu< dim, T > > &loc_grid_old, openfpm::vector< GBoxes< device_grid::dims >> &gdb_ext, openfpm::vector< GBoxes< device_grid::dims >> &gdb_ext_old, openfpm::vector< GBoxes< device_grid::dims >> &gdb_ext_global, size_t p_id_cur, lambda_t f) |
| | Label intersection grids for mappings. More...
|
| |
|
void | unpack_buffer_to_local_grid (openfpm::vector< grid_cpu< dim, T > > &loc_grid, openfpm::vector< GBoxes< device_grid::dims >> &gdb_ext, ExtPreAlloc< HeapMemory > &send_buffer, size_t sz) |
| | Unpack.
|
| |
| void | map_ (CartDecomposition< dim, St > &dec, CellDecomposer_sm< dim, St, shift< dim, St >> &cd_sm, openfpm::vector< grid_cpu< dim, T > > &loc_grid, openfpm::vector< grid_cpu< dim, T > > &loc_grid_old, openfpm::vector< GBoxes< device_grid::dims >> &gdb_ext, openfpm::vector< GBoxes< device_grid::dims >> &gdb_ext_old, openfpm::vector< GBoxes< device_grid::dims >> &gdb_ext_global, size_t opt) |
| | Moves all the grids that does not belong to the local processor to the respective processor. More...
|
| |
| void | ghost_get_ (const openfpm::vector< ip_box_grid< dim >> &ig_box, const openfpm::vector< ep_box_grid< dim >> &eg_box, const openfpm::vector< i_lbox_grid< dim >> &loc_ig_box, const openfpm::vector< e_lbox_grid< dim >> &loc_eg_box, const openfpm::vector< GBoxes< device_grid::dims >> &gdb_ext, const openfpm::vector< e_box_multi< dim >> &eb_gid_list, bool use_bx_def, openfpm::vector< grid_cpu< dim, T > > &loc_grid, const grid_sm< dim, void > &ginfo, std::unordered_map< size_t, size_t > &g_id_to_external_ghost_box, size_t opt) |
| | It fill the ghost part of the grids. More...
|
| |
| void | ghost_put_ (CartDecomposition< dim, St > &dec, const openfpm::vector< ip_box_grid< dim >> &ig_box, const openfpm::vector< ep_box_grid< dim >> &eg_box, const openfpm::vector< i_lbox_grid< dim >> &loc_ig_box, const openfpm::vector< e_lbox_grid< dim >> &loc_eg_box, const openfpm::vector< GBoxes< device_grid::dims >> &gdb_ext, openfpm::vector< grid_cpu< dim, T > > &loc_grid, openfpm::vector< std::unordered_map< size_t, size_t >> &g_id_to_internal_ghost_box) |
| | It merge the information in the ghost with the real information. More...
|
| |
|
| grid_dist_id_comm () |
| | Constructor.
|
| |
| | grid_dist_id_comm (const grid_dist_id_comm< dim, St, T, CartDecomposition< dim, St >, HeapMemory, grid_cpu< dim, T > > &gc) |
| | Copy constructor. More...
|
| |