File ReadForcing.h
File List > src > ReadForcing.h
Go to the documentation of this file
#ifndef READFORCING_H
#define READFORCING_H
#include "General.h"
#include "Input.h"
#include "Param.h"
#include "Write_txtlog.h"
#include "Read_netcdf.h"
#include "Forcing.h"
#include "Util_CPU.h"
#include "Setup_GPU.h"
#include "Poly.h"
template<class T> void readforcing(Param& XParam, Forcing<T> & XForcing);
std::vector<SLTS> readbndfile(std::string filename, Param & XParam);
std::vector<SLTS> readWLfile(std::string WLfilename, std::string& refdate);
std::vector<SLTS> readNestfile(std::string ncfile, std::string varname, int hor, double eps, double bndxo, double bndxmax, double bndy);
std::vector<Flowin> readFlowfile(std::string Flowfilename, std::string &refdate);
std::vector<Windin> readINfileUNI(std::string filename, std::string &refdate);
std::vector<Windin> readWNDfileUNI(std::string filename, std::string & refdate, double grdalpha);
void denan(int nx, int ny, float denanval, int* z);
template <class T> void denan(int nx, int ny, float denanval, T* z);
void readDynforcing(bool gpgpu,double totaltime, DynForcingP<float>& Dforcing);
//DynForcingP<float> readforcinghead(DynForcingP<float> Fmap);
DynForcingP<float> readforcinghead(DynForcingP<float> Fmap, Param XParam);
template<class T> T readforcinghead(T Fmap);
//template<class T> T readBathyhead(T BathyParam);
template<class T> void readstaticforcing(T& Sforcing);
template <class T> void readstaticforcing(int step, T& Sforcing);
template <class T> void readforcingdata(int step, T forcing);
void readforcingdata(double totaltime, DynForcingP<float>& forcing);
void readbathyHeadMD(std::string filename, int &nx, int &ny, double &dx, double &grdalpha);
template <class T> void readbathyMD(std::string filename, T*& zb);
template <class T> void readXBbathy(std::string filename, int nx, int ny, T*& zb);
void InitDynforcing(bool gpgpu, Param& XParam, DynForcingP<float>& Dforcing);
void readbathyASCHead(std::string filename, int &nx, int &ny, double &dx, double &xo, double &yo, double &grdalpha);
template <class T> void readbathyASCzb(std::string filename, int nx, int ny, T*& zb);
template <class T> void InterpstepCPU(int nx, int ny, int hdstep, float totaltime, float hddt, T*& Ux, T* Uo, T* Un);
template <class T> void clampedges(int nx, int ny, T clamp, T* z);
std::vector<std::string> DelimLine(std::string line, int n, char delim);
std::vector<std::string> DelimLine(std::string line, int n);
Polygon readPolygon(std::string filename);
Polygon readbndpolysegment(bndsegment bnd, Param XParam);
// End of global definition
#endif