PLUTO
set_solver.c File Reference

Return a pointer to a Riemann solver function. More...

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

Go to the source code of this file.

Functions

Riemann_SolverSetSolver (const char *solver)
 

Detailed Description

Return a pointer to a Riemann solver function.

Author
A. Mignone (migno.nosp@m.ne@p.nosp@m.h.uni.nosp@m.to.i.nosp@m.t)
Date
June 5, 2013

Definition in file set_solver.c.

Function Documentation

Riemann_Solver* SetSolver ( const char *  solver)

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

Definition at line 13 of file set_solver.c.

20 {
21 
22 /* ------------------------------------------------------
23  Set Pointers for SOLVERS
24  ------------------------------------------------------ */
25 
26  if (!strcmp(solver, "tvdlf")) return (&LF_Solver);
27  else if (!strcmp(solver, "hlle") ||
28  !strcmp(solver, "hll")) return (&HLL_Solver);
29  else if (!strcmp(solver, "hllc")) return (&HLLC_Solver);
30  else if (!strcmp(solver, "hlld")) return (&HLLD_Solver);
31 /*
32  else if (!strcmp(solver, "musta")) return (&MUSTA_Solver);
33  else if (!strcmp(solver, "rusanov_dw")) return (&RusanovDW_Solver);
34 */
35  print1 ("\n ! SetSolver: '%s' is not available.\n", solver);
36  QUIT_PLUTO(1);
37 
38 }
void print1(const char *fmt,...)
Definition: amrPluto.cpp:511
Riemann_Solver HLLC_Solver
Definition: mod_defs.h:106
Riemann_Solver HLLD_Solver
Definition: mod_defs.h:221
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: