BG_Flood  0.1
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);
18 std::vector<SLTS> readWLfile(std::string WLfilename, std::string& refdate);
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, std::string &refdate);
23 std::vector<Windin> readINfileUNI(std::string filename, std::string &refdate);
24 std::vector<Windin> readWNDfileUNI(std::string filename, std::string & refdate, double grdalpha);
25 
26 void denan(int nx, int ny, float denanval, int* z);
27 template <class T> void denan(int nx, int ny, float denanval, T* z);
28 
29 
30 void readDynforcing(bool gpgpu,double totaltime, DynForcingP<float>& Dforcing);
31 
32 //DynForcingP<float> readforcinghead(DynForcingP<float> Fmap);
34 
35 
36 template<class T> T readforcinghead(T Fmap);
37 //template<class T> T readBathyhead(T BathyParam);
38 template<class T> void readstaticforcing(T& Sforcing);
39 template <class T> void readstaticforcing(int step, T& Sforcing);
40 
41 template <class T> void readforcingdata(int step, T forcing);
42 void readforcingdata(double totaltime, DynForcingP<float>& forcing);
43 void readbathyHeadMD(std::string filename, int &nx, int &ny, double &dx, double &grdalpha);
44 template <class T> void readbathyMD(std::string filename, T*& zb);
45 template <class T> void readXBbathy(std::string filename, int nx, int ny, T*& zb);
46 
47 void InitDynforcing(bool gpgpu, Param& XParam, DynForcingP<float>& Dforcing);
48 
49 void readbathyASCHead(std::string filename, int &nx, int &ny, double &dx, double &xo, double &yo, double &grdalpha);
50 template <class T> void readbathyASCzb(std::string filename, int nx, int ny, T*& zb);
51 
52 template <class T> void InterpstepCPU(int nx, int ny, int hdstep, float totaltime, float hddt, T*& Ux, T* Uo, T* Un);
53 
54 template <class T> void clampedges(int nx, int ny, T clamp, T* z);
55 
56 std::vector<std::string> DelimLine(std::string line, int n, char delim);
57 std::vector<std::string> DelimLine(std::string line, int n);
58 Polygon readPolygon(std::string filename);
60 
61 
62 // End of global definition
63 #endif
float * zb
Definition: BasCart_gpu.cu:54
void clampedges(int nx, int ny, T clamp, T *z)
Definition: ReadForcing.cu:2013
void readbathyMD(std::string filename, T *&zb)
Definition: ReadForcing.cu:1743
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:446
void readforcingdata(int step, T forcing)
Definition: ReadForcing.cu:1494
Polygon readbndpolysegment(bndsegment bnd, Param XParam)
Definition: ReadForcing.cu:664
DynForcingP< float > readforcinghead(DynForcingP< float > Fmap, Param XParam)
Definition: ReadForcing.cu:1551
Polygon readPolygon(std::string filename)
Definition: ReadForcing.cu:1377
std::vector< SLTS > readbndfile(std::string filename, Param &XParam)
Definition: ReadForcing.cu:757
void readbathyASCzb(std::string filename, int nx, int ny, T *&zb)
Definition: ReadForcing.cu:1975
std::vector< SLTS > readWLfile(std::string WLfilename, std::string &refdate)
Definition: ReadForcing.cu:853
void readstaticforcing(T &Sforcing)
Definition: ReadForcing.cu:401
std::vector< SLTS > readNestfile(std::string ncfile, std::string varname, int hor, double eps, double bndxo, double bndxmax, double bndy)
Definition: ReadForcing.cu:939
void readbathyASCHead(std::string filename, int &nx, int &ny, double &dx, double &xo, double &yo, double &grdalpha)
Definition: read_input.cpp:1997
void denan(int nx, int ny, float denanval, int *z)
Definition: ReadForcing.cu:2050
std::vector< Windin > readINfileUNI(std::string filename, std::string &refdate)
Definition: ReadForcing.cu:1211
void readDynforcing(bool gpgpu, double totaltime, DynForcingP< float > &Dforcing)
Definition: ReadForcing.cu:503
std::vector< std::string > DelimLine(std::string line, int n, char delim)
Definition: ReadForcing.cu:1445
std::vector< Windin > readWNDfileUNI(std::string filename, std::string &refdate, double grdalpha)
Definition: ReadForcing.cu:1280
void readforcing(Param &XParam, Forcing< T > &XForcing)
Definition: ReadForcing.cu:29
std::vector< Flowin > readFlowfile(std::string Flowfilename, std::string &refdate)
Definition: ReadForcing.cu:1129
void readbathyHeadMD(std::string filename, int &nx, int &ny, double &dx, double &grdalpha)
Definition: read_input.cpp:1758
void readXBbathy(std::string filename, int nx, int ny, T *&zb)
Definition: ReadForcing.cu:1822
int nx
Definition: Tutorial_Cart.c:6
char ncfile[]
Definition: Tutorial_Cart.c:10
Definition: Param.h:10
Definition: Input.h:96
Definition: Forcing.h:119
line
Definition: ReadInput.py:46
Definition: Forcing.h:156