33 in = fopen(
"muscl.inp",
"r");
34 if (!in) printf(
"Warning: File muscl.inp not found. Using default parameters for muscl2/muscl3 scheme.\n");
36 printf(
"Reading MUSCL parameters from muscl.inp.\n");
38 ferr = fscanf(in,
"%s",word);
if (ferr != 1)
return(1);
39 if (!strcmp(word,
"begin")){
40 while (strcmp(word,
"end")){
41 ferr = fscanf(in,
"%s",word);
if (ferr != 1)
return(1);
42 if (!strcmp(word,
"epsilon")) { ferr = fscanf(in,
"%lf",&muscl->
eps);
if (ferr != 1)
return(1); }
43 else if (!strcmp(word,
"limiter")) { ferr = fscanf(in,
"%s" ,muscl->
limiter_type);
if (ferr != 1)
return(1); }
44 else if (strcmp(word,
"end")) {
46 ferr = fscanf(in,
"%s",useless);
if (ferr != 1)
return(ferr);
47 printf(
"Warning: keyword %s in file \"muscl.inp\" with value %s not ",word,useless);
48 printf(
"recognized or extraneous. Ignoring.\n");
52 fprintf(stderr,
"Error: Illegal format in file \"muscl.inp\".\n");
72 fprintf(stderr,
"Warning: %s is an invalid limiter type. Using default (Generalized MinMod).\n",
double LimiterGeneralizedMinMod(double)
MPI related function definitions.
Definitions for limiter functions used in MUSCL-type reconstruction schemes.
double(* LimiterFunction)(double)
int MPIBroadcast_character(char *, int, int, void *)
int MPIBroadcast_double(double *, int, int, void *)
Structure containing all solver-specific variables and functions.
#define _MAX_STRING_SIZE_
double LimiterVanLeer(double)
Contains structure definition for hypar.
char limiter_type[_MAX_STRING_SIZE_]
int MUSCLInitialize(void *s, void *m)
Structure of variables/parameters needed by the MUSCL scheme.
Structure of MPI-related variables.
Definitions for the functions computing the interpolated value of the primitive at the cell interface...
double LimiterSuperBee(double)
double LimiterMinMod(double)