Block-Structured AMR Software Framework
particle_detail Namespace Reference

Functions

template<typename ParticleReal >
std::size_t PSizeInFile (const Vector< int > &wrc, const Vector< int > &wic)
 
template<template< class, class > class Container, class Allocator , class PTile , class F >
std::enable_if_t< RunOnGpu< typename Container< int, Allocator >::allocator_type >::value > fillFlags (Container< int, Allocator > &pflags, const PTile &ptile, F const &f)
 
template<template< class, class > class Container, class Allocator , class PTile , class F >
std::enable_if_t<!RunOnGpu< typename Container< int, Allocator >::allocator_type >::value > fillFlags (Container< int, Allocator > &pflags, const PTile &ptile, F const &f)
 
template<template< class, class > class Container, class Allocator , class PC >
std::enable_if_t< RunOnGpu< typename Container< int, Allocator >::allocator_type >::value, amrex::Long > countFlags (const Vector< std::map< std::pair< int, int >, Container< int, Allocator >>> &particle_io_flags, const PC &pc)
 
template<template< class, class > class Container, class Allocator >
std::enable_if_t< RunOnGpu< typename Container< int, Allocator >::allocator_type >::value, int > countFlags (const Container< int, Allocator > &pflags)
 
template<template< class, class > class Container, class Allocator , class PC >
std::enable_if_t<!RunOnGpu< typename Container< int, Allocator >::allocator_type >::value, amrex::Long > countFlags (const Vector< std::map< std::pair< int, int >, Container< int, Allocator >>> &particle_io_flags, const PC &pc)
 
template<template< class, class > class Container, class Allocator >
std::enable_if_t<!RunOnGpu< typename Container< int, Allocator >::allocator_type >::value, int > countFlags (const Container< int, Allocator > &pflags)
 
template<typename P , typename I >
AMREX_GPU_HOST_DEVICE void packParticleIDs (I *idata, const P &p, bool is_checkpoint) noexcept
 
template<class PC >
std::enable_if_t< RunOnGpu< typename PC::template AllocatorType< int > >::value > packIOData (Vector< int > &idata, Vector< ParticleReal > &rdata, const PC &pc, int lev, int grid, const Vector< int > &write_real_comp, const Vector< int > &write_int_comp, const Vector< std::map< std::pair< int, int >, typename PC::IntVector >> &particle_io_flags, const Vector< int > &tiles, int np, bool is_checkpoint)
 
template<class PC >
std::enable_if_t<!RunOnGpu< typename PC::template AllocatorType< int > >::value > packIOData (Vector< int > &idata, Vector< ParticleReal > &rdata, const PC &pc, int lev, int grid, const Vector< int > &write_real_comp, const Vector< int > &write_int_comp, const Vector< std::map< std::pair< int, int >, typename PC::IntVector >> &particle_io_flags, const Vector< int > &tiles, int np, bool is_checkpoint)
 

Function Documentation

◆ countFlags() [1/4]

template<template< class, class > class Container, class Allocator >
std::enable_if_t<RunOnGpu<typename Container<int, Allocator>::allocator_type>::value, int> particle_detail::countFlags ( const Container< int, Allocator > &  pflags)

◆ countFlags() [2/4]

template<template< class, class > class Container, class Allocator >
std::enable_if_t<!RunOnGpu<typename Container<int, Allocator>::allocator_type>::value, int> particle_detail::countFlags ( const Container< int, Allocator > &  pflags)

◆ countFlags() [3/4]

template<template< class, class > class Container, class Allocator , class PC >
std::enable_if_t<RunOnGpu<typename Container<int, Allocator>::allocator_type>::value, amrex::Long> particle_detail::countFlags ( const Vector< std::map< std::pair< int, int >, Container< int, Allocator >>> &  particle_io_flags,
const PC &  pc 
)

◆ countFlags() [4/4]

template<template< class, class > class Container, class Allocator , class PC >
std::enable_if_t<!RunOnGpu<typename Container<int, Allocator>::allocator_type>::value, amrex::Long> particle_detail::countFlags ( const Vector< std::map< std::pair< int, int >, Container< int, Allocator >>> &  particle_io_flags,
const PC &  pc 
)

◆ fillFlags() [1/2]

template<template< class, class > class Container, class Allocator , class PTile , class F >
std::enable_if_t<RunOnGpu<typename Container<int, Allocator>::allocator_type>::value> particle_detail::fillFlags ( Container< int, Allocator > &  pflags,
const PTile &  ptile,
F const &  f 
)

◆ fillFlags() [2/2]

template<template< class, class > class Container, class Allocator , class PTile , class F >
std::enable_if_t<!RunOnGpu<typename Container<int, Allocator>::allocator_type>::value> particle_detail::fillFlags ( Container< int, Allocator > &  pflags,
const PTile &  ptile,
F const &  f 
)

◆ packIOData() [1/2]

template<class PC >
std::enable_if_t<RunOnGpu<typename PC::template AllocatorType<int> >::value> particle_detail::packIOData ( Vector< int > &  idata,
Vector< ParticleReal > &  rdata,
const PC &  pc,
int  lev,
int  grid,
const Vector< int > &  write_real_comp,
const Vector< int > &  write_int_comp,
const Vector< std::map< std::pair< int, int >, typename PC::IntVector >> &  particle_io_flags,
const Vector< int > &  tiles,
int  np,
bool  is_checkpoint 
)

◆ packIOData() [2/2]

template<class PC >
std::enable_if_t<!RunOnGpu<typename PC::template AllocatorType<int> >::value> particle_detail::packIOData ( Vector< int > &  idata,
Vector< ParticleReal > &  rdata,
const PC &  pc,
int  lev,
int  grid,
const Vector< int > &  write_real_comp,
const Vector< int > &  write_int_comp,
const Vector< std::map< std::pair< int, int >, typename PC::IntVector >> &  particle_io_flags,
const Vector< int > &  tiles,
int  np,
bool  is_checkpoint 
)

◆ packParticleIDs()

template<typename P , typename I >
AMREX_GPU_HOST_DEVICE void particle_detail::packParticleIDs ( I *  idata,
const P &  p,
bool  is_checkpoint 
)
noexcept

◆ PSizeInFile()

template<typename ParticleReal >
std::size_t particle_detail::PSizeInFile ( const Vector< int > &  wrc,
const Vector< int > &  wic 
)