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");
double(* ComputeCFL)(void *, void *, double, double)
int(* Upwind)(double *, double *, double *, double *, double *, double *, int, void *, double)
MPI related function definitions.
int(* FFunction)(double *, double *, int, void *, double)
#define _MAX_STRING_SIZE_
Data structure and some function declarations for banded block matrices.
double BurgersComputeCFL(void *s, void *m, double dt, double t)
int BurgersInitialize(void *, void *)
Contains structure definition for hypar.
char SplitHyperbolicFlux[_MAX_STRING_SIZE_]
Some basic definitions and macros.
int BurgersAdvection(double *f, double *u, int dir, void *s, double t)
Contains macros and function definitions for common array operations.
int BurgersUpwind(double *, double *, double *, double *, double *, double *, int, void *, double)
Structure of MPI-related variables.
Structure containing all solver-specific variables and functions.