HydroCODE_1D 0.1
This is a implementation of fully explict forward Euler scheme for 1-D Euler equations of motion on Lagrangian/Eulerian coordinate
terminal_io.c 文件参考

This is a set of common functions for terminal input and output. 更多...

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

浏览源代码.

函数

void arg_preprocess (const int argc_least, const int argc, char *argv[], char *scheme)
 This is a functions preprocesses ARGuments. 更多...
 

详细描述

This is a set of common functions for terminal input and output.

在文件 terminal_io.c 中定义.

函数说明

◆ arg_preprocess()

void arg_preprocess ( const int  argc_least,
const int  argc,
char *  argv[],
char *  scheme 
)

This is a functions preprocesses ARGuments.

This function prints out all ARGuments, checks for the right ARGument Counter, loads argv[3], argv[4] and argv[argc_least+1,argc_least+2,…] as configuration, and puts the scheme name into the pointer 'scheme'.

参数
[in]argc_leastThe least value of the ARGument Counter.
[in]argcARGument Counter.
[in]argvARGument Values.
[in]schemeScheme name.
  • argv[1]: Folder name of test example (input path).
  • argv[3]: Order of numerical scheme[_scheme name] (= 1[_Riemann_exact] or 2[_GRP]).
  • argv[argc_least+1,argc_least+2,…]: Configuration supplement config[n]=(double)C (= n=C).

在文件 terminal_io.c26 行定义.

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