Searched refs:hratio (Results 1 – 6 of 6) sorted by relevance
| /petsc/src/ts/adapt/impls/dsp/ |
| H A D | adaptdsp.c | 34 PetscReal hratio[3]; /* stepsize ratio (controller output) history */ member 48 dsp->cerror[0] = dsp->hratio[0] = 1.0; in TSAdaptRestart_DSP() 49 dsp->cerror[1] = dsp->hratio[1] = 1.0; in TSAdaptRestart_DSP() 50 dsp->cerror[2] = dsp->hratio[2] = 1.0; in TSAdaptRestart_DSP() 62 dsp->hratio[0] = dsp->hratio[1]; in TSAdaptRollBack_DSP() 63 dsp->hratio[1] = dsp->hratio[2]; in TSAdaptRollBack_DSP() 64 dsp->hratio[2] = 1.0; in TSAdaptRollBack_DSP() 131 PetscReal rho1 = dsp->hratio[0]; in TSAdaptChoose_DSP() 132 PetscReal rho2 = dsp->hratio[1]; in TSAdaptChoose_DSP() 155 dsp->hratio[2] = dsp->hratio[1]; in TSAdaptChoose_DSP() [all …]
|
| /petsc/src/ts/tutorials/multirate/ |
| H A D | ex7.c | 69 PetscInt hratio; /* hratio = hslow/hfast */ member 182 hs = (ctx->xmax - ctx->xmin) / 2.0 * (ctx->hratio + 1.0) / Mx; in FVRHSFunction() 183 hf = (ctx->xmax - ctx->xmin) / 2.0 * (1.0 + 1.0 / ctx->hratio) / Mx; in FVRHSFunction() 331 hs = (ctx->xmax - ctx->xmin) / 2.0 * (ctx->hratio + 1.0) / Mx; in FVRHSFunctionslow() 332 hf = (ctx->xmax - ctx->xmin) / 2.0 * (1.0 + 1.0 / ctx->hratio) / Mx; in FVRHSFunctionslow() 453 hs = (ctx->xmax - ctx->xmin) / 2.0 * (ctx->hratio + 1.0) / Mx; in FVRHSFunctionfast() 454 hf = (ctx->xmax - ctx->xmin) / 2.0 * (1.0 + 1.0 / ctx->hratio) / Mx; in FVRHSFunctionfast() 559 const PetscReal hs = (ctx->xmax - ctx->xmin) / 2.0 * (ctx->hratio + 1.0) / Mx; in FVSample() 560 const PetscReal hf = (ctx->xmax - ctx->xmin) / 2.0 * (1.0 + 1.0 / ctx->hratio) / Mx; in FVSample() 561 count_slow = Mx / (1 + ctx->hratio); in FVSample() [all …]
|
| H A D | finitevolume1d.h | 126 PetscInt hratio; /* hratio = hslow/hfast */ member
|
| H A D | ex8.c | 1128 PetscCall(PetscOptionsInt("-hratio", "Spacing ratio", "", ctx.hratio, &ctx.hratio, NULL)); in main() 1168 count_slow = Mx / (1 + ctx.hratio) / (1 + ctx.hratio); in main() 1169 count_medium = 2 * ctx.hratio * count_slow; in main() 1171 count_fast = ctx.hratio * ctx.hratio * count_slow; in main()
|
| H A D | ex4.c | 1218 ctx.hratio = 2; in main() 1233 PetscCall(PetscOptionsInt("-hratio", "Spacing ratio", "", ctx.hratio, &ctx.hratio, NULL)); in main() 1274 count_slow = Mx * 3 / (3 + ctx.hratio); // compute Mx / (1.0 + ctx.hratio / 3.0); in main()
|
| H A D | ex6.c | 786 PetscCall(PetscOptionsInt("-hratio", "Spacing ratio", "", ctx.hratio, &ctx.hratio, NULL)); in main() 826 count_slow = Mx / (1.0 + ctx.hratio / 3.0); in main()
|