BG_Flood  0.1
Documentation (Work-in-progress)
writenetcdf.cpp File Reference
#include "Header.cuh"
Include dependency graph for writenetcdf.cpp:

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)
 

Macro Definition Documentation

◆ pi

#define pi   3.14159265

Function Documentation

◆ InterpstepCPU()

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

◆ readATMstep()

void readATMstep ( forcingmap  ATMPmap,
int  steptoread,
float *&  Po 
)

◆ readgridncsize()

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 
)

◆ readhotstartfile()

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

◆ readhotstartfileD()

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

◆ readncslev1()

int readncslev1 ( std::string  filename,
std::string  varstr,
size_t  indx,
size_t  indy,
size_t  indt,
bool  checkhh,
double  eps,
double *&  zsa 
)

◆ readnctime()

int readnctime ( std::string  filename,
double *&  time 
)

◆ readnczb()

void readnczb ( int  nx,
int  ny,
const std::string  ncfile,
float *&  zb 
)

◆ readvardata()

int readvardata ( std::string  filename,
std::string  Varname,
int  ndims,
int  hotstep,
size_t *  ddim,
float *  vardata 
)

◆ readvardataD()

int readvardataD ( std::string  filename,
std::string  Varname,
int  ndims,
int  hotstep,
size_t *  ddim,
double *  vardata 
)

◆ readvarinfo()

int readvarinfo ( std::string  filename,
std::string  Varname,
size_t *&  ddimU 
)

◆ readWNDstep()

void readWNDstep ( forcingmap  WNDUmap,
forcingmap  WNDVmap,
int  steptoread,
float *&  Uo,
float *&  Vo 
)