HydroCODE 0.1
This is a implementation of fully explict forward Euler scheme for 1-D Euler equations of motion on Lagrange coordinate
io_control.c 文件参考

This is a set of common functions which control the input/output data. 更多...

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

函数

void example_io (const char *example, char *add_mkdir, const int i_or_o)
 This function produces folder path for data input or output. 更多...
 
int flu_var_count (FILE *fp, const char *add)
 This function counts how many numbers are there in the initial data file. 更多...
 

详细描述

This is a set of common functions which control the input/output data.

函数说明

◆ example_io()

void example_io ( const char *  example,
char *  add_mkdir,
const int  i_or_o 
)

This function produces folder path for data input or output.

参数
[in]exampleName of the test example/numerical results.
[out]add_mkdirFolder path for data input or output.
[in]i_or_oConversion parameters for data input/output.
  • 0: data output.
  • else (e.g. 1): data input.
函数调用图:
这是这个函数的调用关系图:

◆ flu_var_count()

int flu_var_count ( FILE *  fp,
const char *  add 
)

This function counts how many numbers are there in the initial data file.

参数
[in]fpThe pointer to the input file.
[in]addThe address of the input file.
返回
The number of the numbers in the initial data file.
返回值
-1If the given number of column is not coincided with that in the data file.