BG_Flood  0.8
Documentation (Work-in-progress)
Testing.h
Go to the documentation of this file.
1 
2 #ifndef TESTING_H
3 #define TESTING_H
4 
5 #include "General.h"
6 #include "Param.h"
7 #include "Write_txtlog.h"
8 #include "ReadInput.h"
9 #include "ReadForcing.h"
10 
11 #include "Util_CPU.h"
12 #include "Arrays.h"
13 #include "Forcing.h"
14 #include "Mesh.h"
15 
16 #include "Setup_GPU.h"
17 #include "Mainloop.h"
18 #include "FlowCPU.h"
19 #include "FlowGPU.h"
20 
21 #include "Adaptation.h"
22 
23 template <class T> bool Testing(Param XParam, Forcing<float> XForcing, Model<T> XModel, Model<T> XModel_g);
24 
25 template <class T> bool GaussianHumptest(T zsnit, int gpu,bool compare);
26 
27 
28 template <class T> void TestingOutput(Param XParam, Model<T> XModel);
29 template <class T> void copyID2var(Param XParam, BlockP<T> XBlock, T* z);
30 template <class T> void copyBlockinfo2var(Param XParam, BlockP<T> XBlock, int* blkinfo, T* z);
31 template <class T> void CompareCPUvsGPU(Param XParam, Model<T> XModel, Model<T> XModel_g, std::vector<std::string> varlist, bool checkhalo);
32 //template <class T> void Gaussianhump(Param XParam, Model<T> XModel, Model<T> XModel_g);
33 template <class T> std::vector<float> Raintestmap(int gpu, int dimf, T zinit);
34 bool Raintestinput(int gpu);
35 template <class T> bool Rivertest(T zsnit, int gpu);
36 template <class T> bool MassConserveSteepSlope(T zsnit, int gpu);
37 template <class T> bool Raintest(T zsnit, int gpu, float alpha);
38 template <class T> bool testboundaries(Param XParam, T maxslope);
39 template <class T> bool ZoneOutputTest(int nzones, T zsinit);
40 template <class T> bool Rainlossestest(T zsnit, int gpu, float alpha);
41 // End of global definition
42 #endif
bool ZoneOutputTest(int nzones, T zsinit)
Definition: Testing.cu:3227
bool Testing(Param XParam, Forcing< float > XForcing, Model< T > XModel, Model< T > XModel_g)
Definition: Testing.cu:29
void copyBlockinfo2var(Param XParam, BlockP< T > XBlock, int *blkinfo, T *z)
Definition: Testing.cu:4618
bool testboundaries(Param XParam, T maxslope)
Definition: Testing.cu:1832
void CompareCPUvsGPU(Param XParam, Model< T > XModel, Model< T > XModel_g, std::vector< std::string > varlist, bool checkhalo)
Definition: Testing.cu:4645
bool Raintest(T zsnit, int gpu, float alpha)
Definition: Testing.cu:2607
bool Rainlossestest(T zsnit, int gpu, float alpha)
Definition: Testing.cu:3454
bool Raintestinput(int gpu)
Definition: Testing.cu:2772
bool MassConserveSteepSlope(T zsnit, int gpu)
Definition: Testing.cu:801
bool Rivertest(T zsnit, int gpu)
Definition: Testing.cu:569
void TestingOutput(Param XParam, Model< T > XModel)
Definition: Testing.cu:4502
std::vector< float > Raintestmap(int gpu, int dimf, T zinit)
Definition: Testing.cu:2834
void copyID2var(Param XParam, BlockP< T > XBlock, T *z)
Definition: Testing.cu:4590
bool GaussianHumptest(T zsnit, int gpu, bool compare)
Definition: Testing.cu:301
Definition: Param.h:10
Definition: Arrays.h:86
Definition: Forcing.h:116
Definition: Arrays.h:151