19 double*,
double*,
int,
void*,
double);
39 in = fopen(
"physics.inp",
"r");
41 if (!count) printf(
"Reading physical model inputs from file \"physics.inp\".\n");
43 ferr = fscanf(in,
"%s",word);
if (ferr != 1)
return(1);
44 if (!strcmp(word,
"begin")){
45 while (strcmp(word,
"end")){
46 ferr = fscanf(in,
"%s",word);
if (ferr != 1)
return(1);
47 if (strcmp(word,
"end")) {
49 ferr = fscanf(in,
"%s",useless);
if (ferr != 1)
return(ferr);
50 printf(
"Warning: keyword %s in file \"physics.inp\" with value %s not ",
52 printf(
"recognized or extraneous. Ignoring.\n");
56 fprintf(stderr,
"Error: Illegal format in file \"physics.inp\".\n");
65 fprintf(stderr,
"Error in BurgersInitialize: This physical model does not have a splitting ");
66 fprintf(stderr,
"of the hyperbolic term defined.\n");
int BurgersAdvection(double *, double *, int, void *, double)
MPI related function definitions.
char SplitHyperbolicFlux[_MAX_STRING_SIZE_]
Data structure and some function declarations for banded block matrices.
Some basic definitions and macros.
int(* Upwind)(double *, double *, double *, double *, double *, double *, int, void *, double)
int BurgersUpwind(double *, double *, double *, double *, double *, double *, int, void *, double)
int(* FFunction)(double *, double *, int, void *, double)
double(* ComputeCFL)(void *, void *, double, double)
Structure containing all solver-specific variables and functions.
#define _MAX_STRING_SIZE_
int BurgersInitialize(void *s, void *m)
Contains structure definition for hypar.
double BurgersComputeCFL(void *, void *, double, double)
Structure of MPI-related variables.
Contains macros and function definitions for common array operations.