HydroCODE_2D 0.1
This is a implementation of fully explict forward Euler scheme for 2-D Euler equations of motion on Eulerian coordinate
config_handle.c 文件参考

This is a set of functions which control the read-in of configuration data. 更多...

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <stdbool.h>
#include <errno.h>
#include <ctype.h>
#include <limits.h>
#include "../include/var_struc.h"
config_handle.c 的引用(Include)关系图:

浏览源代码.

函数

static void config_check (void)
 This function check whether the configuration data is reasonable and set the default. All configuration data is in tha array 'config[]'. 更多...
 
static int config_read (FILE *fp)
 This function read the configuration data file, and store the configuration data in the array 'config[]'. 更多...
 
void configurate (const char *add_in)
 This function controls configuration data reading and validation. 更多...
 
void config_write (const char *add_out, const double *cpu_time, const char *name)
 This function write configuration data and program record into the file 'log.dat'. 更多...
 

详细描述

This is a set of functions which control the read-in of configuration data.

在文件 config_handle.c 中定义.

函数说明

◆ config_check()

static void config_check ( void  )
static

This function check whether the configuration data is reasonable and set the default. All configuration data is in tha array 'config[]'.

在文件 config_handle.c39 行定义.

这是这个函数的调用关系图:

◆ config_read()

static int config_read ( FILE *  fp)
static

This function read the configuration data file, and store the configuration data in the array 'config[]'.

参数
[in]fpThe pointer to the configuration data file.
返回
Configuration data file read status.
返回值
1Success to read in configuration data file.
0Failure to read in configuration data file.

在文件 config_handle.c162 行定义.

这是这个函数的调用关系图:

◆ config_write()

void config_write ( const char *  add_out,
const double *  cpu_time,
const char *  name 
)

This function write configuration data and program record into the file 'log.dat'.

The parameters in the log file refer to 'doc/config.csv'.

备注
The code of recording CPU time is commented out.
参数
[in]add_outAddress of the output data folder of the test example.
[in]cpu_timeArray of the CPU time recording.
[in]nameName of the test example.

在文件 config_handle.c253 行定义.

这是这个函数的调用关系图:

◆ configurate()

void configurate ( const char *  add_in)

This function controls configuration data reading and validation.

The parameters in the configuration data file refer to 'doc/config.csv'.

参数
[in]add_inAdress of the initial data folder of the test example.

在文件 config_handle.c208 行定义.

函数调用图:
这是这个函数的调用关系图: