MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
collector.h File Reference

Go to the source code of this file.

Classes

class  Collector< T >
 

Namespaces

namespace  maia
 Namespace for auxiliary functions/classes.
 
namespace  maia::collector_memory
 Helper functions useful for allocating collector memory.
 
namespace  maia::collector_memory::unaligned_cell_wise
 

Functions

template<class T , class U >
U * maia::collector_memory::align (U *p)
 Aligns pointer p such that a T stored at its adress is aligned. More...
 
template<class T >
void maia::collector_memory::rowMajor1D (T *&p, void *&base, const MInt cellId, const MInt Nrows, const MInt maxNoCells)
 Stores 1D variables in row-major order. More...
 
template<class T >
 maia::collector_memory::ATTRIBUTES1 (ATTRIBUTE_NO_AUTOVEC) inline void rowMajor2D(T **&p
 Stores 2D variables in row-major order. More...
 
 maia::collector_memory::for (MInt i=0;i< Nrows;++i)
 
template<class T >
void maia::collector_memory::copyElements1D (T *to, T *from, const MInt Nrows)
 Copies 1D cell elements. More...
 
template<class T >
void maia::collector_memory::copyElements2D (T *to, T *from, const MInt Nrows, const MInt Ncols)
 Copies 2D cell elements. More...
 
template<class T >
void maia::collector_memory::unaligned_cell_wise::rowMajor1D (T *&p, void *&base, const MInt Nrows)
 Store 1D variables in row-majow order relative to the start of each cell's memory solver. More...
 
template<class T >
 maia::collector_memory::unaligned_cell_wise::ATTRIBUTES1 (ATTRIBUTE_NO_AUTOVEC) inline void rowMajor2D(T **&p
 
 maia::collector_memory::unaligned_cell_wise::for (MInt i=0;i< Nrows;++i)
 

Variables

void *& maia::collector_memory::base = align<T>(base)
 
void const MInt maia::collector_memory::cellId
 
void const MInt const MInt maia::collector_memory::Nrows
 
void const MInt const MInt const MInt maia::collector_memory::Ncols
 
void const MInt const MInt const MInt const MInt maia::collector_memory::maxNoCells
 
void *& maia::collector_memory::unaligned_cell_wise::base = reinterpret_cast<T*>(base) + static_cast<MLong>(1) * Nrows * Ncols
 
void const MInt maia::collector_memory::unaligned_cell_wise::Nrows
 
void const MInt const MInt maia::collector_memory::unaligned_cell_wise::Ncols