31 fprintf(stderr,
"Error in Euler2DInitialize(): nvars has to be %d.\n",
_MODEL_NVARS_);
35 fprintf(stderr,
"Error in Euler2DInitialize(): ndims has to be %d.\n",
_MODEL_NDIMS_);
46 if (!count) printf(
"Reading physical model inputs from file \"physics.inp\".\n");
47 in = fopen(
"physics.inp",
"r");
48 if (!in) printf(
"Warning: File \"physics.inp\" not found. Using default values.\n");
51 ferr = fscanf(in,
"%s",word);
if (ferr != 1)
return(1);
52 if (!strcmp(word,
"begin")){
53 while (strcmp(word,
"end")){
54 ferr = fscanf(in,
"%s",word);
if (ferr != 1)
return(1);
55 if (!strcmp(word,
"gamma")) {
56 ferr = fscanf(in,
"%lf",&physics->
gamma);
if (ferr != 1)
return(1);
57 }
else if (!strcmp(word,
"upwinding")) {
58 ferr = fscanf(in,
"%s",physics->
upw_choice);
if (ferr != 1)
return(1);
59 }
else if (strcmp(word,
"end")) {
61 ferr = fscanf(in,
"%s",useless);
if (ferr != 1)
return(ferr);
62 printf(
"Warning: keyword %s in file \"physics.inp\" with value %s not ",word,useless);
63 printf(
"recognized or extraneous. Ignoring.\n");
67 fprintf(stderr,
"Error: Illegal format in file \"physics.inp\".\n");
81 fprintf(stderr,
"Error in Euler2DInitialize: This physical model does not have a splitting ");
82 fprintf(stderr,
"of the hyperbolic term defined.\n");
95 fprintf(stderr,
"Error in Euler2DInitialize(): %s is not a valid upwinding scheme.\n",
double Euler2DComputeCFL(void *, void *, double, double)
int Euler2DUpwindRF(double *, double *, double *, double *, double *, double *, int, void *, double)
char SplitHyperbolicFlux[_MAX_STRING_SIZE_]
int Euler2DFlux(double *, double *, int, void *, double)
int Euler2DUpwindRoe(double *, double *, double *, double *, double *, double *, int, void *, double)
int(* AveragingFunction)(double *, double *, double *, void *)
int Euler2DUpwindLLF(double *, double *, double *, double *, double *, double *, int, void *, double)
int(* Upwind)(double *, double *, double *, double *, double *, double *, int, void *, double)
Structure containing the variables and function pointers defining a boundary.
int MPIBroadcast_character(char *, int, int, void *)
int(* FFunction)(double *, double *, int, void *, double)
int MPIBroadcast_double(double *, int, int, void *)
double(* ComputeCFL)(void *, void *, double, double)
Structure containing all solver-specific variables and functions.
#define _MAX_STRING_SIZE_
int Euler2DRightEigenvectors(double *, double *, void *, int)
char upw_choice[_MAX_STRING_SIZE_]
int Euler2DUpwindSWFS(double *, double *, double *, double *, double *, double *, int, void *, double)
int Euler2DRoeAverage(double *, double *, double *, void *)
Structure of MPI-related variables.
int Euler2DLeftEigenvectors(double *, double *, void *, int)
int(* GetRightEigenvectors)(double *, double *, void *, int)
int(* GetLeftEigenvectors)(double *, double *, void *, int)