BG_Flood  0.8
Documentation (Work-in-progress)
ReadForcing.cu File Reference
#include "ReadForcing.h"
Include dependency graph for ReadForcing.cu:

Functions

template<class T >
void readforcing (Param &XParam, Forcing< T > &XForcing)
 
template void readforcing< float > (Param &XParam, Forcing< float > &XForcing)
 
template<class T >
void readstaticforcing (T &Sforcing)
 
template void readstaticforcing< deformmap< float > > (deformmap< float > &Sforcing)
 
template void readstaticforcing< StaticForcingP< float > > (StaticForcingP< float > &Sforcing)
 
template void readstaticforcing< StaticForcingP< int > > (StaticForcingP< int > &Sforcing)
 
template<class T >
void readstaticforcing (int step, T &Sforcing)
 
template void readstaticforcing< deformmap< float > > (int step, deformmap< float > &Sforcing)
 
template void readstaticforcing< StaticForcingP< float > > (int step, StaticForcingP< float > &Sforcing)
 
template void readstaticforcing< StaticForcingP< int > > (int step, StaticForcingP< int > &Sforcing)
 
void InitDynforcing (bool gpgpu, Param &XParam, DynForcingP< float > &Dforcing)
 
void readDynforcing (bool gpgpu, double totaltime, DynForcingP< float > &Dforcing)
 
void readbathydata (int posdown, StaticForcingP< float > &Sforcing)
 
std::vector< SLTSreadbndfile (std::string filename, Param XParam, int side)
 
std::vector< SLTSreadWLfile (std::string WLfilename)
 
std::vector< SLTSreadNestfile (std::string ncfile, std::string varname, int hor, double eps, double bndxo, double bndxmax, double bndy)
 
std::vector< FlowinreadFlowfile (std::string Flowfilename)
 
std::vector< WindinreadINfileUNI (std::string filename)
 
std::vector< WindinreadWNDfileUNI (std::string filename, double grdalpha)
 
Polygon readPolygon (std::string filename)
 
std::vector< std::string > DelimLine (std::string line, int n, char delim)
 
std::vector< std::string > DelimLine (std::string line, int n)
 
template<class T >
void readforcingdata (int step, T forcing)
 
template void readforcingdata< StaticForcingP< float > > (int step, StaticForcingP< float > forcing)
 
template void readforcingdata< deformmap< float > > (int step, deformmap< float > forcing)
 
template void readforcingdata< StaticForcingP< int > > (int step, StaticForcingP< int > forcing)
 
void readforcingdata (double totaltime, DynForcingP< float > &forcing)
 
DynForcingP< float > readforcinghead (DynForcingP< float > Fmap)
 
template<class T >
readforcinghead (T ForcingParam)
 
template inputmap readforcinghead< inputmap > (inputmap BathyParam)
 
template forcingmap readforcinghead< forcingmap > (forcingmap BathyParam)
 
template StaticForcingP< float > readforcinghead< StaticForcingP< float > > (StaticForcingP< float > ForcingParam)
 
void readbathyHeadMD (std::string filename, int &nx, int &ny, double &dx, double &grdalpha)
 
template<class T >
void readbathyMD (std::string filename, T *&zb)
 
template void readbathyMD< int > (std::string filename, int *&zb)
 
template void readbathyMD< float > (std::string filename, float *&zb)
 
template<class T >
void readXBbathy (std::string filename, int nx, int ny, T *&zb)
 
template void readXBbathy< int > (std::string filename, int nx, int ny, int *&zb)
 
template void readXBbathy< float > (std::string filename, int nx, int ny, float *&zb)
 
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 void readbathyASCzb< int > (std::string filename, int nx, int ny, int *&zb)
 
template void readbathyASCzb< float > (std::string filename, int nx, int ny, float *&zb)
 
template<class T >
void clampedges (int nx, int ny, T clamp, T *z)
 

Function Documentation

◆ clampedges()

template<class T >
void clampedges ( int  nx,
int  ny,
clamp,
T *  z 
)

◆ DelimLine() [1/2]

std::vector<std::string> DelimLine ( std::string  line,
int  n 
)

◆ DelimLine() [2/2]

std::vector<std::string> DelimLine ( std::string  line,
int  n,
char  delim 
)

◆ InitDynforcing()

void InitDynforcing ( bool  gpgpu,
Param XParam,
DynForcingP< float > &  Dforcing 
)

◆ readbathyASCHead()

void readbathyASCHead ( std::string  filename,
int &  nx,
int &  ny,
double &  dx,
double &  xo,
double &  yo,
double &  grdalpha 
)

Read ASC file meta/header data

◆ readbathyASCzb()

template<class T >
void readbathyASCzb ( std::string  filename,
int  nx,
int  ny,
T *&  zb 
)

◆ readbathyASCzb< float >()

template void readbathyASCzb< float > ( std::string  filename,
int  nx,
int  ny,
float *&  zb 
)

◆ readbathyASCzb< int >()

template void readbathyASCzb< int > ( std::string  filename,
int  nx,
int  ny,
int *&  zb 
)

◆ readbathydata()

void readbathydata ( int  posdown,
StaticForcingP< float > &  Sforcing 
)

special case of readstaticforcing(Sforcing); where the data

◆ readbathyHeadMD()

void readbathyHeadMD ( std::string  filename,
int &  nx,
int &  ny,
double &  dx,
double &  grdalpha 
)

Read MD file header data

◆ readbathyMD()

template<class T >
void readbathyMD ( std::string  filename,
T *&  zb 
)

◆ readbathyMD< float >()

template void readbathyMD< float > ( std::string  filename,
float *&  zb 
)

◆ readbathyMD< int >()

template void readbathyMD< int > ( std::string  filename,
int *&  zb 
)

◆ readbndfile()

std::vector< SLTS > readbndfile ( std::string  filename,
Param  XParam,
int  side 
)

Read boundary forcing files

◆ readDynforcing()

void readDynforcing ( bool  gpgpu,
double  totaltime,
DynForcingP< float > &  Dforcing 
)

◆ readFlowfile()

std::vector< Flowin > readFlowfile ( std::string  Flowfilename)

Read flow data for river forcing

◆ readforcing()

template<class T >
void readforcing ( Param XParam,
Forcing< T > &  XForcing 
)

wrapping function for reading all the forcing data

◆ readforcing< float >()

template void readforcing< float > ( Param XParam,
Forcing< float > &  XForcing 
)

◆ readforcingdata() [1/2]

void readforcingdata ( double  totaltime,
DynForcingP< float > &  forcing 
)

Read Dynamic forcing data

◆ readforcingdata() [2/2]

template<class T >
void readforcingdata ( int  step,
forcing 
)

Read static forcing data

◆ readforcingdata< deformmap< float > >()

template void readforcingdata< deformmap< float > > ( int  step,
deformmap< float >  forcing 
)

◆ readforcingdata< StaticForcingP< float > >()

template void readforcingdata< StaticForcingP< float > > ( int  step,
StaticForcingP< float >  forcing 
)

◆ readforcingdata< StaticForcingP< int > >()

template void readforcingdata< StaticForcingP< int > > ( int  step,
StaticForcingP< int >  forcing 
)

◆ readforcinghead() [1/2]

DynForcingP< float > readforcinghead ( DynForcingP< float >  Fmap)

Read Dynamic forcing meta/header data

◆ readforcinghead() [2/2]

template<class T >
T readforcinghead ( ForcingParam)

Read Static forcing meta/header data

◆ readforcinghead< forcingmap >()

template forcingmap readforcinghead< forcingmap > ( forcingmap  BathyParam)

◆ readforcinghead< inputmap >()

template inputmap readforcinghead< inputmap > ( inputmap  BathyParam)

◆ readforcinghead< StaticForcingP< float > >()

template StaticForcingP<float> readforcinghead< StaticForcingP< float > > ( StaticForcingP< float >  ForcingParam)

◆ readINfileUNI()

std::vector< Windin > readINfileUNI ( std::string  filename)

Read rain/atmpressure data for spatially uniform forcing

◆ readNestfile()

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

◆ readPolygon()

Polygon readPolygon ( std::string  filename)

◆ readstaticforcing() [1/2]

template<class T >
void readstaticforcing ( int  step,
T &  Sforcing 
)

Allocate and read static (i.e. not varying in time) forcing Used for Bathy, roughness, deformation

◆ readstaticforcing() [2/2]

template<class T >
void readstaticforcing ( T &  Sforcing)

single parameter version of readstaticforcing(int step,T& Sforcing) readstaticforcing(0, Sforcing);

◆ readstaticforcing< deformmap< float > >() [1/2]

template void readstaticforcing< deformmap< float > > ( deformmap< float > &  Sforcing)

◆ readstaticforcing< deformmap< float > >() [2/2]

template void readstaticforcing< deformmap< float > > ( int  step,
deformmap< float > &  Sforcing 
)

◆ readstaticforcing< StaticForcingP< float > >() [1/2]

template void readstaticforcing< StaticForcingP< float > > ( int  step,
StaticForcingP< float > &  Sforcing 
)

◆ readstaticforcing< StaticForcingP< float > >() [2/2]

template void readstaticforcing< StaticForcingP< float > > ( StaticForcingP< float > &  Sforcing)

◆ readstaticforcing< StaticForcingP< int > >() [1/2]

template void readstaticforcing< StaticForcingP< int > > ( int  step,
StaticForcingP< int > &  Sforcing 
)

◆ readstaticforcing< StaticForcingP< int > >() [2/2]

template void readstaticforcing< StaticForcingP< int > > ( StaticForcingP< int > &  Sforcing)

◆ readWLfile()

std::vector< SLTS > readWLfile ( std::string  WLfilename)

Read boundary water level data

◆ readWNDfileUNI()

std::vector< Windin > readWNDfileUNI ( std::string  filename,
double  grdalpha 
)

Read wind data for spatially uniform forcing

◆ readXBbathy()

template<class T >
void readXBbathy ( std::string  filename,
int  nx,
int  ny,
T *&  zb 
)

◆ readXBbathy< float >()

template void readXBbathy< float > ( std::string  filename,
int  nx,
int  ny,
float *&  zb 
)

◆ readXBbathy< int >()

template void readXBbathy< int > ( std::string  filename,
int  nx,
int  ny,
int *&  zb 
)