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

Functions

void handle_ncerror (int status)
 
void Calcnxny (Param XParam, int level, int &nx, int &ny)
 
void Calcnxnyzone (Param XParam, int level, int &nx, int &ny, outzoneB Xzone)
 
std::vector< int > Calcactiveblockzone (Param XParam, int *activeblk, outzoneB Xzone)
 
template<class T >
void creatncfileBUQ (Param &XParam, int *activeblk, int *level, T *blockxo, T *blockyo, outzoneB &Xzone)
 
template void creatncfileBUQ< float > (Param &XParam, int *activeblk, int *level, float *blockxo, float *blockyo, outzoneB &Xzone)
 
template void creatncfileBUQ< double > (Param &XParam, int *activeblk, int *level, double *blockxo, double *blockyo, outzoneB &Xzone)
 
template<class T >
void creatncfileBUQ (Param &XParam, BlockP< T > &XBlock)
 
template void creatncfileBUQ< float > (Param &XParam, BlockP< float > &XBlock)
 
template void creatncfileBUQ< double > (Param &XParam, BlockP< double > &XBlock)
 
template<class T >
void defncvarBUQ (Param XParam, int *activeblk, int *level, T *blockxo, T *blockyo, std::string varst, int vdim, T *var, outzoneB Xzone)
 
template void defncvarBUQ< float > (Param XParam, int *activeblk, int *level, float *blockxo, float *blockyo, std::string varst, int vdim, float *var, outzoneB Xzone)
 
template void defncvarBUQ< double > (Param XParam, int *activeblk, int *level, double *blockxo, double *blockyo, std::string varst, int vdim, double *var, outzoneB Xzone)
 
template<class T >
void writencvarstepBUQ (Param XParam, int vdim, int *activeblk, int *level, T *blockxo, T *blockyo, std::string varst, T *var, outzoneB Xzone)
 
template void writencvarstepBUQ< float > (Param XParam, int vdim, int *activeblk, int *level, float *blockxo, float *blockyo, std::string varst, float *var, outzoneB Xzone)
 
template void writencvarstepBUQ< double > (Param XParam, int vdim, int *activeblk, int *level, double *blockxo, double *blockyo, std::string varst, double *var, outzoneB Xzone)
 
void writenctimestep (std::string outfile, double totaltime)
 
template<class T >
void InitSave2Netcdf (Param &XParam, Model< T > &XModel)
 
template void InitSave2Netcdf< float > (Param &XParam, Model< float > &XModel)
 
template void InitSave2Netcdf< double > (Param &XParam, Model< double > &XModel)
 
template<class T >
void Save2Netcdf (Param XParam, Loop< T > XLoop, Model< T > XModel)
 
template void Save2Netcdf< float > (Param XParam, Loop< float > XLoop, Model< float > XModel)
 
template void Save2Netcdf< double > (Param XParam, Loop< double > XLoop, Model< double > XModel)
 
void create2dnc (char *filename, int nx, int ny, double *xx, double *yy, double *var, char *varname)
 
void create3dnc (char *name, int nx, int ny, int nt, double *xx, double *yy, double *theta, double *var, char *varname)
 
void write3dvarnc (int nx, int ny, int nt, double totaltime, double *var)
 
void write2dvarnc (int nx, int ny, double totaltime, double *var)
 

Function Documentation

◆ Calcactiveblockzone()

std::vector<int> Calcactiveblockzone ( Param  XParam,
int *  activeblk,
outzoneB  Xzone 
)

◆ Calcnxny()

void Calcnxny ( Param  XParam,
int  level,
int &  nx,
int &  ny 
)

◆ Calcnxnyzone()

void Calcnxnyzone ( Param  XParam,
int  level,
int &  nx,
int &  ny,
outzoneB  Xzone 
)

◆ create2dnc()

void create2dnc ( char *  filename,
int  nx,
int  ny,
double *  xx,
double *  yy,
double *  var,
char *  varname 
)

◆ create3dnc()

void create3dnc ( char *  name,
int  nx,
int  ny,
int  nt,
double *  xx,
double *  yy,
double *  theta,
double *  var,
char *  varname 
)

◆ creatncfileBUQ() [1/2]

template<class T >
void creatncfileBUQ ( Param XParam,
BlockP< T > &  XBlock 
)

◆ creatncfileBUQ() [2/2]

template<class T >
void creatncfileBUQ ( Param XParam,
int *  activeblk,
int *  level,
T *  blockxo,
T *  blockyo,
outzoneB Xzone 
)

◆ creatncfileBUQ< double >() [1/2]

template void creatncfileBUQ< double > ( Param XParam,
BlockP< double > &  XBlock 
)

◆ creatncfileBUQ< double >() [2/2]

template void creatncfileBUQ< double > ( Param XParam,
int *  activeblk,
int *  level,
double *  blockxo,
double *  blockyo,
outzoneB Xzone 
)

◆ creatncfileBUQ< float >() [1/2]

template void creatncfileBUQ< float > ( Param XParam,
BlockP< float > &  XBlock 
)

◆ creatncfileBUQ< float >() [2/2]

template void creatncfileBUQ< float > ( Param XParam,
int *  activeblk,
int *  level,
float *  blockxo,
float *  blockyo,
outzoneB Xzone 
)

◆ defncvarBUQ()

template<class T >
void defncvarBUQ ( Param  XParam,
int *  activeblk,
int *  level,
T *  blockxo,
T *  blockyo,
std::string  varst,
int  vdim,
T *  var,
outzoneB  Xzone 
)

◆ defncvarBUQ< double >()

template void defncvarBUQ< double > ( Param  XParam,
int *  activeblk,
int *  level,
double *  blockxo,
double *  blockyo,
std::string  varst,
int  vdim,
double *  var,
outzoneB  Xzone 
)

◆ defncvarBUQ< float >()

template void defncvarBUQ< float > ( Param  XParam,
int *  activeblk,
int *  level,
float *  blockxo,
float *  blockyo,
std::string  varst,
int  vdim,
float *  var,
outzoneB  Xzone 
)

◆ handle_ncerror()

void handle_ncerror ( int  status)

◆ InitSave2Netcdf()

template<class T >
void InitSave2Netcdf ( Param XParam,
Model< T > &  XModel 
)

◆ InitSave2Netcdf< double >()

template void InitSave2Netcdf< double > ( Param XParam,
Model< double > &  XModel 
)

◆ InitSave2Netcdf< float >()

template void InitSave2Netcdf< float > ( Param XParam,
Model< float > &  XModel 
)

◆ Save2Netcdf()

template<class T >
void Save2Netcdf ( Param  XParam,
Loop< T >  XLoop,
Model< T >  XModel 
)

◆ Save2Netcdf< double >()

template void Save2Netcdf< double > ( Param  XParam,
Loop< double >  XLoop,
Model< double >  XModel 
)

◆ Save2Netcdf< float >()

template void Save2Netcdf< float > ( Param  XParam,
Loop< float >  XLoop,
Model< float >  XModel 
)

◆ write2dvarnc()

void write2dvarnc ( int  nx,
int  ny,
double  totaltime,
double *  var 
)

◆ write3dvarnc()

void write3dvarnc ( int  nx,
int  ny,
int  nt,
double  totaltime,
double *  var 
)

◆ writenctimestep()

void writenctimestep ( std::string  outfile,
double  totaltime 
)

◆ writencvarstepBUQ()

template<class T >
void writencvarstepBUQ ( Param  XParam,
int  vdim,
int *  activeblk,
int *  level,
T *  blockxo,
T *  blockyo,
std::string  varst,
T *  var,
outzoneB  Xzone 
)

◆ writencvarstepBUQ< double >()

template void writencvarstepBUQ< double > ( Param  XParam,
int  vdim,
int *  activeblk,
int *  level,
double *  blockxo,
double *  blockyo,
std::string  varst,
double *  var,
outzoneB  Xzone 
)

◆ writencvarstepBUQ< float >()

template void writencvarstepBUQ< float > ( Param  XParam,
int  vdim,
int *  activeblk,
int *  level,
float *  blockxo,
float *  blockyo,
std::string  varst,
float *  var,
outzoneB  Xzone 
)