PLUTO
set_solver.c File Reference
#include "pluto.h"
Include dependency graph for set_solver.c:

Go to the source code of this file.

Functions

Riemann_SolverSetSolver (const char *solver)
 

Function Documentation

Riemann_Solver* SetSolver ( const char *  solver)

PURPOSE

return a pointer to a riemann solver function

Depending on the choice of the Riemann solver specified in pluto.ini, return a pointer to the corresponding Riemann solver function

Definition at line 4 of file set_solver.c.

15 {
16 
17 /* ------------------------------------------------------
18  Set Pointers for SOLVERS
19  ------------------------------------------------------ */
20 
21  if ( !strcmp(solver, "two_shock")) {
22 
23  return(&TwoShock_Solver);
24 
25  }else if (!strcmp(solver, "tvdlf")) {
26 
27  return (&LF_Solver);
28 
29  }else if (!strcmp(solver, "hlle") ||
30  !strcmp(solver, "hll")) {
31 
32  return (&HLL_Solver);
33 
34  }else if (!strcmp(solver, "hllc")) {
35 
36  return (&HLLC_Solver);
37 
38 /*
39  }else if (!strcmp(solver, "musta")) {
40  return (&MUSTA_FLUX);
41 */
42 
43  }
44 
45  print1 ("\n! SetSolver: '%s' is not available.\n", solver);
46  QUIT_PLUTO(1);
47 
48 }
void print1(const char *fmt,...)
Definition: amrPluto.cpp:511
Riemann_Solver HLLC_Solver
Definition: mod_defs.h:106
Riemann_Solver TwoShock_Solver
Definition: mod_defs.h:106
Riemann_Solver HLL_Solver
Definition: mod_defs.h:106
Riemann_Solver LF_Solver
Definition: mod_defs.h:106
#define QUIT_PLUTO(e_code)
Definition: macros.h:125

Here is the call graph for this function: