There are some system processing programs.
更多...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
浏览源代码.
|
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. 更多...
|
|
void | init_mem (double *p[], const int n, int **cell_pt) |
| This is a function that initializes memory for double-precision floating-point data. 更多...
|
|
void | init_mem_int (int *p[], const int n, int **cell_pt) |
| This is a function that initializes memory for integer data. 更多...
|
|
There are some system processing programs.
在文件 sys_pro.c 中定义.
◆ CreateDir()
int CreateDir |
( |
const char * |
pPath | ) |
|
This is a function that recursively creates folders.
- 参数
-
[in] | pPath | Pointer to the folder Path. |
- 返回
- Folder Creation Status.
- 返回值
-
-1 | The path folder already exists and is readable. |
0 | Readable path folders are created recursively. |
1 | The path folder is not created properly. |
在文件 sys_pro.c 第 72 行定义.
◆ DispPro()
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. |
在文件 sys_pro.c 第 37 行定义.
◆ init_mem()
void init_mem |
( |
double * |
p[], |
|
|
const int |
n, |
|
|
int ** |
cell_pt |
|
) |
| |
This is a function that initializes memory for double-precision floating-point data.
- 参数
-
[out] | p | Pointer of data. |
[in] | n | Number of grid cells. |
[in] | cell_pt[] | cell_pt[k][0] is the number of grid node on the k-th grid cell in the clockwise direction.. |
在文件 sys_pro.c 第 107 行定义.
◆ init_mem_int()
void init_mem_int |
( |
int * |
p[], |
|
|
const int |
n, |
|
|
int ** |
cell_pt |
|
) |
| |
This is a function that initializes memory for integer data.
- 参数
-
[out] | p | Pointer of data. |
[in] | n | Number of grid cells. |
[in] | cell_pt[] | cell_pt[k][0] is the number of grid node on the k-th grid cell in the clockwise direction.. |
在文件 sys_pro.c 第 132 行定义.