BG_Flood
0.1
Documentation (Work-in-progress)
|
#include "Header.cuh"
Macros | |
#define | pi 3.14159265 |
Functions | |
void | readnczb (int nx, int ny, const std::string ncfile, float *&zb) |
void | readgridncsize (const std::string ncfile, int &nx, int &ny, int &nt, double &dx, double &xo, double &yo, double &to, double &xmax, double &ymax, double &tmax) |
int | readvarinfo (std::string filename, std::string Varname, size_t *&ddimU) |
int | readnctime (std::string filename, double *&time) |
int | readncslev1 (std::string filename, std::string varstr, size_t indx, size_t indy, size_t indt, bool checkhh, double eps, double *&zsa) |
int | readvardata (std::string filename, std::string Varname, int ndims, int hotstep, size_t *ddim, float *vardata) |
int | readvardataD (std::string filename, std::string Varname, int ndims, int hotstep, size_t *ddim, double *vardata) |
int | readhotstartfile (Param XParam, int *leftblk, int *rightblk, int *topblk, int *botblk, double *blockxo, double *blockyo, float *&zs, float *&zb, float *&hh, float *&uu, float *&vv) |
int | readhotstartfileD (Param XParam, int *leftblk, int *rightblk, int *topblk, int *botblk, double *blockxo, double *blockyo, double *&zs, double *&zb, double *&hh, double *&uu, double *&vv) |
void | readWNDstep (forcingmap WNDUmap, forcingmap WNDVmap, int steptoread, float *&Uo, float *&Vo) |
void | readATMstep (forcingmap ATMPmap, int steptoread, float *&Po) |
void | InterpstepCPU (int nx, int ny, int hdstep, float totaltime, float hddt, float *&Ux, float *Uo, float *Un) |
#define pi 3.14159265 |
void InterpstepCPU | ( | int | nx, |
int | ny, | ||
int | hdstep, | ||
float | totaltime, | ||
float | hddt, | ||
float *& | Ux, | ||
float * | Uo, | ||
float * | Un | ||
) |
linearly interpolate between 2 cartesian arrays (of the same size) This is used to interpolate dynamic forcing to a current time step
void readATMstep | ( | forcingmap | ATMPmap, |
int | steptoread, | ||
float *& | Po | ||
) |
void readgridncsize | ( | const std::string | ncfile, |
int & | nx, | ||
int & | ny, | ||
int & | nt, | ||
double & | dx, | ||
double & | xo, | ||
double & | yo, | ||
double & | to, | ||
double & | xmax, | ||
double & | ymax, | ||
double & | tmax | ||
) |
int readhotstartfile | ( | Param | XParam, |
int * | leftblk, | ||
int * | rightblk, | ||
int * | topblk, | ||
int * | botblk, | ||
double * | blockxo, | ||
double * | blockyo, | ||
float *& | zs, | ||
float *& | zb, | ||
float *& | hh, | ||
float *& | uu, | ||
float *& | vv | ||
) |
Warning here we assume xx is 1D but may not be in the future
Warning here we assume xx is 1D but may not be in the future
int readhotstartfileD | ( | Param | XParam, |
int * | leftblk, | ||
int * | rightblk, | ||
int * | topblk, | ||
int * | botblk, | ||
double * | blockxo, | ||
double * | blockyo, | ||
double *& | zs, | ||
double *& | zb, | ||
double *& | hh, | ||
double *& | uu, | ||
double *& | vv | ||
) |
Warning here we assume xx is 1D but may not be in the future
Warning here we assume xx is 1D but may not be in the future
int readncslev1 | ( | std::string | filename, |
std::string | varstr, | ||
size_t | indx, | ||
size_t | indy, | ||
size_t | indt, | ||
bool | checkhh, | ||
double | eps, | ||
double *& | zsa | ||
) |
int readnctime | ( | std::string | filename, |
double *& | time | ||
) |
void readnczb | ( | int | nx, |
int | ny, | ||
const std::string | ncfile, | ||
float *& | zb | ||
) |
int readvardata | ( | std::string | filename, |
std::string | Varname, | ||
int | ndims, | ||
int | hotstep, | ||
size_t * | ddim, | ||
float * | vardata | ||
) |
int readvardataD | ( | std::string | filename, |
std::string | Varname, | ||
int | ndims, | ||
int | hotstep, | ||
size_t * | ddim, | ||
double * | vardata | ||
) |
int readvarinfo | ( | std::string | filename, |
std::string | Varname, | ||
size_t *& | ddimU | ||
) |
void readWNDstep | ( | forcingmap | WNDUmap, |
forcingmap | WNDVmap, | ||
int | steptoread, | ||
float *& | Uo, | ||
float *& | Vo | ||
) |