BG_Flood  0.8
Documentation (Work-in-progress)
MemManagement.h
Go to the documentation of this file.
1 
2 #ifndef MEMMANAGEMENT_H
3 #define MEMMANAGEMENT_H
4 
5 #include "General.h"
6 #include "Param.h"
7 #include "Arrays.h"
8 #include "Setup_GPU.h"
9 
10 
11 template <class T> void AllocateCPU(int nx, int ny, T*& zb);
12 template <class T> void AllocateCPU(int nx, int ny, T*& zs, T*& h, T*& u, T*& v);
13 template <class T> void AllocateCPU(int nx, int ny, T*& zs, T*& h, T*& u, T*& v, T*& U, T*& hU);
14 
15 template <class T> void AllocateCPU(int nx, int ny, GradientsP<T>& Grad);
16 template <class T> void AllocateCPU(int nblk, int blksize, EvolvingP<T> &Ev);
17 template <class T> void AllocateCPU(int nblk, int blksize, EvolvingP_M<T>& Ev);
18 template <class T> void AllocateCPU(int nblk, int blksize, Param XParam, Model<T>& XModel);
19 
20 
21 template <class T> void ReallocArray(int nblk, int blksize, T*& zb);
22 template <class T> void ReallocArray(int nblk, int blksize, T*& zs, T*& h, T*& u, T*& v);
23 template <class T> void ReallocArray(int nblk, int blksize, T*& zs, T*& h, T*& u, T*& v, T*& U, T*& hU);
24 template <class T> void ReallocArray(int nblk, int blksize, EvolvingP<T>& Ev);
25 template <class T> void ReallocArray(int nblk, int blksize, EvolvingP_M<T>& Ev);
26 template <class T> void ReallocArray(int nblk, int blksize, Param XParam, Model<T>& XModel);
27 
28 int memloc(Param XParam, int i, int j, int ib);
29 //__device__ int memloc(int halowidth, int blkmemwidth, int blksize, int i, int j, int ib);
30 __host__ __device__ int memloc(int halowidth, int blkmemwidth, int i, int j, int ib);
31 
32 template <class T> void AllocateGPU(int nblk, int blksize, Param XParam, Model<T>& XModel);
33 template <class T> void AllocateGPU(int nx, int ny, T*& z_g);
34 // End of global definition
35 #endif
void ReallocArray(int nblk, int blksize, T *&zb)
Definition: MemManagement.cu:209
void AllocateGPU(int nblk, int blksize, Param XParam, Model< T > &XModel)
Definition: MemManagement.cu:404
int memloc(Param XParam, int i, int j, int ib)
Definition: MemManagement.cu:4
void AllocateCPU(int nx, int ny, T *&zb)
Definition: MemManagement.cu:15
Definition: Param.h:10
Definition: Arrays.h:39
Definition: Arrays.h:29
Definition: Arrays.h:11
Definition: Arrays.h:151