8#include "../include/var_struc.h"
9#include "../include/tools.h"
24 const double U[],
struct radial_mesh_var *rmv)
26 double const Alpha =
config[41];
27 int const LIMITER_VIP = (int)
config[42];
31 for(
int j = 1; j <= Ncell; ++j)
33 if (abs(LIMITER_VIP)==1)
35 s_L = (U[j] - U[j-1]) / rmv->dRc[j];
36 s_R = (U[j+1] - U[j]) / rmv->dRc[j+1];
38 else if (abs(LIMITER_VIP)==2)
40 s_L = (U[j] - U[j-1]) / 2.0 / rmv->DdrR[j];
41 s_R = (U[j+1] - U[j]) / 2.0 / rmv->DdrL[j];
45 fprintf(stderr,
"ERROE! No suitable LIMITER_VIP Parameter.\n");
49 s[j] =
minmod3(Alpha*s_L, Alpha*s_R, s[j]);
54 s[Ncell+1] =
minmod2(s[Ncell], s[Ncell+1]);
double config[N_CONF]
Initial configuration data array.
void minmod_limiter_radial(const int Ncell, const _Bool i_f_var_get, double s[], const double U[], struct radial_mesh_var *rmv)
This function apply the minmod limiter to the slope in radially symmetric case.