HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
TimeGetAuxSolutions.c
Go to the documentation of this file.
1 
5 #include <stdio.h>
6 #include <string.h>
7 #include <hypar.h>
8 #include <timeintegration.h>
9 
30  int *N,
31  double **uaux,
32  void *s,
33  int nu,
34  int ns
35  )
36 {
37  HyPar *solver = (HyPar*) s;
39 
40  if (nu >= 0) {
41  if (!strcmp(solver->time_scheme,_GLM_GEE_)) {
42  GLMGEEParameters *params = (GLMGEEParameters*) solver->msti;
43  *uaux = (TS->U[params->r+nu] + TS->u_offsets[ns]);
44  }
45  } else {
46  if (!TS) *N = 0;
47  else {
48  if (!strcmp(solver->time_scheme,_GLM_GEE_)) {
49  GLMGEEParameters *params = (GLMGEEParameters*) solver->msti;
50  *N = params->r - 1;
51  } else *N = 0;
52  }
53  }
54 
55  return(0);
56 }
Structure of variables/parameters and function pointers for time integration.
int TimeGetAuxSolutions(int *, double **, void *, int, int)
#define _GLM_GEE_
Structure containing the parameters for the General Linear Methods with Global Error Estimators (GLM-...
char time_scheme[_MAX_STRING_SIZE_]
Definition: hypar.h:78
Contains structure definition for hypar.
Contains function declarations for time integration.
void * msti
Definition: hypar.h:366
Structure containing all solver-specific variables and functions.
Definition: hypar.h:23
void * time_integrator
Definition: hypar.h:165