BG_Flood  0.8
Documentation (Work-in-progress)
MemManagement.h File Reference
#include "General.h"
#include "Param.h"
#include "Arrays.h"
#include "Setup_GPU.h"
Include dependency graph for MemManagement.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<class T >
void AllocateCPU (int nx, int ny, T *&zb)
 
template<class T >
void AllocateCPU (int nx, int ny, T *&zs, T *&h, T *&u, T *&v)
 
template<class T >
void AllocateCPU (int nx, int ny, T *&zs, T *&h, T *&u, T *&v, T *&U, T *&hU)
 
template<class T >
void AllocateCPU (int nx, int ny, GradientsP< T > &Grad)
 
template<class T >
void AllocateCPU (int nblk, int blksize, EvolvingP< T > &Ev)
 
template<class T >
void AllocateCPU (int nblk, int blksize, EvolvingP_M< T > &Ev)
 
template<class T >
void AllocateCPU (int nblk, int blksize, Param XParam, Model< T > &XModel)
 
template<class T >
void ReallocArray (int nblk, int blksize, T *&zb)
 
template<class T >
void ReallocArray (int nblk, int blksize, T *&zs, T *&h, T *&u, T *&v)
 
template<class T >
void ReallocArray (int nblk, int blksize, T *&zs, T *&h, T *&u, T *&v, T *&U, T *&hU)
 
template<class T >
void ReallocArray (int nblk, int blksize, EvolvingP< T > &Ev)
 
template<class T >
void ReallocArray (int nblk, int blksize, EvolvingP_M< T > &Ev)
 
template<class T >
void ReallocArray (int nblk, int blksize, Param XParam, Model< T > &XModel)
 
int memloc (Param XParam, int i, int j, int ib)
 
__host__ __device__ int memloc (int halowidth, int blkmemwidth, int i, int j, int ib)
 
template<class T >
void AllocateGPU (int nblk, int blksize, Param XParam, Model< T > &XModel)
 
template<class T >
void AllocateGPU (int nx, int ny, T *&z_g)
 

Function Documentation

◆ AllocateCPU() [1/7]

template<class T >
void AllocateCPU ( int  nblk,
int  blksize,
EvolvingP< T > &  Ev 
)

◆ AllocateCPU() [2/7]

template<class T >
void AllocateCPU ( int  nblk,
int  blksize,
EvolvingP_M< T > &  Ev 
)

◆ AllocateCPU() [3/7]

template<class T >
void AllocateCPU ( int  nblk,
int  blksize,
Param  XParam,
Model< T > &  XModel 
)

◆ AllocateCPU() [4/7]

template<class T >
void AllocateCPU ( int  nx,
int  ny,
GradientsP< T > &  Grad 
)

◆ AllocateCPU() [5/7]

template<class T >
void AllocateCPU ( int  nx,
int  ny,
T *&  zb 
)

◆ AllocateCPU() [6/7]

template<class T >
void AllocateCPU ( int  nx,
int  ny,
T *&  zs,
T *&  h,
T *&  u,
T *&  v 
)

◆ AllocateCPU() [7/7]

template<class T >
void AllocateCPU ( int  nx,
int  ny,
T *&  zs,
T *&  h,
T *&  u,
T *&  v,
T *&  U,
T *&  hU 
)

◆ AllocateGPU() [1/2]

template<class T >
void AllocateGPU ( int  nblk,
int  blksize,
Param  XParam,
Model< T > &  XModel 
)

◆ AllocateGPU() [2/2]

template<class T >
void AllocateGPU ( int  nx,
int  ny,
T *&  z_g 
)

◆ memloc() [1/2]

__host__ __device__ int memloc ( int  halowidth,
int  blkmemwidth,
int  i,
int  j,
int  ib 
)

◆ memloc() [2/2]

int memloc ( Param  XParam,
int  i,
int  j,
int  ib 
)

◆ ReallocArray() [1/6]

template<class T >
void ReallocArray ( int  nblk,
int  blksize,
EvolvingP< T > &  Ev 
)

◆ ReallocArray() [2/6]

template<class T >
void ReallocArray ( int  nblk,
int  blksize,
EvolvingP_M< T > &  Ev 
)

◆ ReallocArray() [3/6]

template<class T >
void ReallocArray ( int  nblk,
int  blksize,
Param  XParam,
Model< T > &  XModel 
)

◆ ReallocArray() [4/6]

template<class T >
void ReallocArray ( int  nblk,
int  blksize,
T *&  zb 
)

◆ ReallocArray() [5/6]

template<class T >
void ReallocArray ( int  nblk,
int  blksize,
T *&  zs,
T *&  h,
T *&  u,
T *&  v 
)

◆ ReallocArray() [6/6]

template<class T >
void ReallocArray ( int  nblk,
int  blksize,
T *&  zs,
T *&  h,
T *&  u,
T *&  v,
T *&  U,
T *&  hU 
)