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, int side) |
std::vector< SLTS > | readWLfile (std::string WLfilename) |
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::vector< Windin > | readINfileUNI (std::string filename) |
std::vector< Windin > | readWNDfileUNI (std::string filename, double grdalpha) |
void | readDynforcing (bool gpgpu, double totaltime, DynForcingP< float > &Dforcing) |
DynForcingP< float > | readforcinghead (DynForcingP< float > Fmap) |
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) |
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 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 | ||
) |
Read boundary forcing files
void readDynforcing | ( | bool | gpgpu, |
double | totaltime, | ||
DynForcingP< float > & | Dforcing | ||
) |
std::vector<Flowin> readFlowfile | ( | std::string | Flowfilename | ) |
Read flow data for river forcing
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 | ) |
Read Dynamic forcing meta/header data
T readforcinghead | ( | T | ForcingParam | ) |
Read Static forcing meta/header data
std::vector<Windin> readINfileUNI | ( | std::string | filename | ) |
Read rain/atmpressure data for spatially uniform forcing
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 | ) |
Read boundary water level data
std::vector<Windin> readWNDfileUNI | ( | std::string | filename, |
double | grdalpha | ||
) |
Read wind data for spatially uniform forcing
void readXBbathy | ( | std::string | filename, |
int | nx, | ||
int | ny, | ||
T *& | zb | ||
) |