![]() |
BG_Flood
0.8
Documentation (Work-in-progress)
|
#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"

Go to the source code of this file.
Functions | |
| 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, Param XParam) |
| template<class T > | |
| T | readforcinghead (T Fmap) |
| 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) |
| void clampedges | ( | int | nx, |
| int | ny, | ||
| T | clamp, | ||
| T * | z | ||
| ) |
| std::vector<std::string> DelimLine | ( | std::string | line, |
| int | n | ||
| ) |
| std::vector<std::string> DelimLine | ( | std::string | line, |
| int | n, | ||
| char | delim | ||
| ) |
| void denan | ( | int | nx, |
| int | ny, | ||
| float | denanval, | ||
| int * | z | ||
| ) |
| void denan | ( | int | nx, |
| int | ny, | ||
| float | denanval, | ||
| T * | z | ||
| ) |
| void InitDynforcing | ( | bool | gpgpu, |
| Param & | XParam, | ||
| DynForcingP< float > & | Dforcing | ||
| ) |
| void InterpstepCPU | ( | int | nx, |
| int | ny, | ||
| int | hdstep, | ||
| float | totaltime, | ||
| float | hddt, | ||
| T *& | Ux, | ||
| T * | Uo, | ||
| T * | Un | ||
| ) |
| void readbathyASCHead | ( | std::string | filename, |
| int & | nx, | ||
| int & | ny, | ||
| double & | dx, | ||
| double & | xo, | ||
| double & | yo, | ||
| double & | grdalpha | ||
| ) |
Read ASC file meta/header data
| void readbathyASCzb | ( | std::string | filename, |
| int | nx, | ||
| int | ny, | ||
| T *& | zb | ||
| ) |
| void readbathyHeadMD | ( | std::string | filename, |
| int & | nx, | ||
| int & | ny, | ||
| double & | dx, | ||
| double & | grdalpha | ||
| ) |
Read MD file header data
| void readbathyMD | ( | std::string | filename, |
| T *& | zb | ||
| ) |
| Polygon readbndpolysegment | ( | bndsegment | bnd, |
| Param | XParam | ||
| ) |
| void readDynforcing | ( | bool | gpgpu, |
| double | totaltime, | ||
| DynForcingP< float > & | Dforcing | ||
| ) |
This is a deprecated function! See InitDynforcing() instead
| std::vector<Flowin> readFlowfile | ( | std::string | Flowfilename, |
| std::string & | refdate | ||
| ) |
wrapping function for reading all the forcing data
| void readforcingdata | ( | double | totaltime, |
| DynForcingP< float > & | forcing | ||
| ) |
Read Dynamic forcing data
| void readforcingdata | ( | int | step, |
| T | forcing | ||
| ) |
Read static forcing data
| DynForcingP<float> readforcinghead | ( | DynForcingP< float > | Fmap, |
| Param | XParam | ||
| ) |
Read Dynamic forcing meta/header data
| T readforcinghead | ( | T | ForcingParam | ) |
Read Static forcing meta/header data
| std::vector<Windin> readINfileUNI | ( | std::string | filename, |
| std::string & | refdate | ||
| ) |
| std::vector<SLTS> readNestfile | ( | std::string | ncfile, |
| std::string | varname, | ||
| int | hor, | ||
| double | eps, | ||
| double | bndxo, | ||
| double | bndxmax, | ||
| double | bndy | ||
| ) |
Read boundary Nesting data
To Be continued
| Polygon readPolygon | ( | std::string | filename | ) |
| void readstaticforcing | ( | int | step, |
| T & | Sforcing | ||
| ) |
Allocate and read static (i.e. not varying in time) forcing Used for Bathy, roughness, deformation
| void readstaticforcing | ( | T & | Sforcing | ) |
single parameter version of readstaticforcing(int step,T& Sforcing) readstaticforcing(0, Sforcing);
| std::vector<SLTS> readWLfile | ( | std::string | WLfilename, |
| std::string & | refdate | ||
| ) |
| std::vector<Windin> readWNDfileUNI | ( | std::string | filename, |
| std::string & | refdate, | ||
| double | grdalpha | ||
| ) |
| void readXBbathy | ( | std::string | filename, |
| int | nx, | ||
| int | ny, | ||
| T *& | zb | ||
| ) |