This file is the header file of several independent tool functions. 更多...
函数 | |
void | DispPro (const double pro, const int step) |
This function print a progress bar on one line of standard output. 更多... | |
int | CreateDir (const char *pPath) |
This is a function that recursively creates folders. 更多... | |
int | rinv (double a[], const int n) |
A function to caculate the inverse of the input square matrix. 更多... | |
double | minmod2 (double s_L, double s_R) |
Minmod limiter function of two variables. 更多... | |
double | minmod3 (double s_L, double s_R, double s_m) |
Minmod limiter function of three variables. 更多... | |
This file is the header file of several independent tool functions.
This header file declares functions in the folder 'tools',
int CreateDir | ( | const char * | pPath | ) |
This is a function that recursively creates folders.
[in] | pPath | Pointer to the folder Path. |
-1 | The path folder already exists and is readable. |
0 | Readable path folders are created recursively. |
1 | The path folder is not created properly. |
void DispPro | ( | const double | pro, |
const int | step | ||
) |
This function print a progress bar on one line of standard output.
[in] | pro | Numerator of percent that the process has completed. |
[in] | step | Number of time steps. |
|
inline |
Minmod limiter function of two variables.
|
inline |
Minmod limiter function of three variables.
int rinv | ( | double | a[], |
const int | n | ||
) |
A function to caculate the inverse of the input square matrix.
[in,out] | a | The pointer of the input/output square matrix. |
[in] | n | The order of the input/output square matrix. |
0 | No inverse matrix |
1 | Invertible matrix |