BG_Flood  0.8
Documentation (Work-in-progress)
ReadForcing.h
Go to the documentation of this file.
1 
2 #ifndef READFORCING_H
3 #define READFORCING_H
4 
5 #include "General.h"
6 #include "Input.h"
7 #include "Param.h"
8 #include "Write_txtlog.h"
9 #include "Read_netcdf.h"
10 #include "Forcing.h"
11 #include "Util_CPU.h"
12 #include "Setup_GPU.h"
13 #include "Poly.h"
14 
15 template<class T> void readforcing(Param& XParam, Forcing<T> & XForcing);
16 
17 std::vector<SLTS> readbndfile(std::string filename, Param XParam, int side);
18 std::vector<SLTS> readWLfile(std::string WLfilename);
19 
20 std::vector<SLTS> readNestfile(std::string ncfile, std::string varname, int hor, double eps, double bndxo, double bndxmax, double bndy);
21 
22 std::vector<Flowin> readFlowfile(std::string Flowfilename);
23 std::vector<Windin> readINfileUNI(std::string filename);
24 std::vector<Windin> readWNDfileUNI(std::string filename, double grdalpha);
25 
26 void readDynforcing(bool gpgpu,double totaltime, DynForcingP<float>& Dforcing);
27 
29 template<class T> T readforcinghead(T Fmap);
30 //template<class T> T readBathyhead(T BathyParam);
31 template<class T> void readstaticforcing(T& Sforcing);
32 template <class T> void readstaticforcing(int step, T& Sforcing);
33 
34 template <class T> void readforcingdata(int step, T forcing);
35 void readforcingdata(double totaltime, DynForcingP<float>& forcing);
36 void readbathyHeadMD(std::string filename, int &nx, int &ny, double &dx, double &grdalpha);
37 template <class T> void readbathyMD(std::string filename, T*& zb);
38 template <class T> void readXBbathy(std::string filename, int nx, int ny, T*& zb);
39 
40 void InitDynforcing(bool gpgpu, Param& XParam, DynForcingP<float>& Dforcing);
41 
42 void readbathyASCHead(std::string filename, int &nx, int &ny, double &dx, double &xo, double &yo, double &grdalpha);
43 template <class T> void readbathyASCzb(std::string filename, int nx, int ny, T*& zb);
44 
45 template <class T> void InterpstepCPU(int nx, int ny, int hdstep, float totaltime, float hddt, T*& Ux, T* Uo, T* Un);
46 
47 template <class T> void clampedges(int nx, int ny, T clamp, T* z);
48 
49 std::vector<std::string> DelimLine(std::string line, int n, char delim);
50 std::vector<std::string> DelimLine(std::string line, int n);
51 Polygon readPolygon(std::string filename);
52 
53 
54 // End of global definition
55 #endif
std::vector< Windin > readWNDfileUNI(std::string filename, double grdalpha)
Definition: ReadForcing.cu:994
void clampedges(int nx, int ny, T clamp, T *z)
Definition: ReadForcing.cu:1724
std::vector< Windin > readINfileUNI(std::string filename)
Definition: ReadForcing.cu:925
void readbathyMD(std::string filename, T *&zb)
Definition: ReadForcing.cu:1454
void InterpstepCPU(int nx, int ny, int hdstep, float totaltime, float hddt, T *&Ux, T *Uo, T *Un)
void InitDynforcing(bool gpgpu, Param &XParam, DynForcingP< float > &Dforcing)
Definition: ReadForcing.cu:369
void readforcingdata(int step, T forcing)
Definition: ReadForcing.cu:1208
DynForcingP< float > readforcinghead(DynForcingP< float > Fmap)
Definition: ReadForcing.cu:1261
std::vector< Flowin > readFlowfile(std::string Flowfilename)
Definition: ReadForcing.cu:843
std::vector< SLTS > readbndfile(std::string filename, Param XParam, int side)
Definition: ReadForcing.cu:474
Polygon readPolygon(std::string filename)
Definition: ReadForcing.cu:1091
void readbathyASCzb(std::string filename, int nx, int ny, T *&zb)
Definition: ReadForcing.cu:1686
void readstaticforcing(T &Sforcing)
Definition: ReadForcing.cu:326
std::vector< SLTS > readWLfile(std::string WLfilename)
Definition: ReadForcing.cu:570
std::vector< SLTS > readNestfile(std::string ncfile, std::string varname, int hor, double eps, double bndxo, double bndxmax, double bndy)
Definition: ReadForcing.cu:655
void readbathyASCHead(std::string filename, int &nx, int &ny, double &dx, double &xo, double &yo, double &grdalpha)
Definition: ReadForcing.cu:1572
void readDynforcing(bool gpgpu, double totaltime, DynForcingP< float > &Dforcing)
Definition: ReadForcing.cu:419
std::vector< std::string > DelimLine(std::string line, int n, char delim)
Definition: ReadForcing.cu:1159
void readforcing(Param &XParam, Forcing< T > &XForcing)
Definition: ReadForcing.cu:29
void readbathyHeadMD(std::string filename, int &nx, int &ny, double &dx, double &grdalpha)
Definition: ReadForcing.cu:1395
void readXBbathy(std::string filename, int nx, int ny, T *&zb)
Definition: ReadForcing.cu:1533
Definition: Param.h:10
Definition: Input.h:94
Definition: Forcing.h:62
Definition: Forcing.h:116