| /petsc/src/ts/tutorials/ |
| H A D | ex9.c | 217 PetscReal *speeds; /* Speeds of each wave */ member 265 …e(void *vctx, PetscInt m, const PetscScalar *u, PetscScalar *X, PetscScalar *Xi, PetscReal *speeds) in PhysicsCharacteristic_Conservative() argument 272 speeds[i] = PETSC_MAX_REAL; /* Indicates invalid */ in PhysicsCharacteristic_Conservative() 302 …t(void *vctx, PetscInt m, const PetscScalar *u, PetscScalar *X, PetscScalar *Xi, PetscReal *speeds) in PhysicsCharacteristic_Advect() argument 309 speeds[0] = ctx->a; in PhysicsCharacteristic_Advect() 668 …s(void *vctx, PetscInt m, const PetscScalar *u, PetscScalar *X, PetscScalar *Xi, PetscReal *speeds) in PhysicsCharacteristic_Acoustics() argument 682 speeds[0] = -c; in PhysicsCharacteristic_Acoustics() 683 speeds[1] = c; in PhysicsCharacteristic_Acoustics() 949 …s(void *vctx, PetscInt m, const PetscScalar *u, PetscScalar *X, PetscScalar *Xi, PetscReal *speeds) in PhysicsCharacteristic_IsoGas() argument 955 speeds[0] = u[1] / u[0] - c; in PhysicsCharacteristic_IsoGas() [all …]
|
| /petsc/src/ts/tutorials/multirate/ |
| H A D | ex4.c | 69 …t(void *vctx, PetscInt m, const PetscScalar *u, PetscScalar *X, PetscScalar *Xi, PetscReal *speeds) in PhysicsCharacteristic_Advect() argument 76 speeds[0] = ctx->a; in PhysicsCharacteristic_Advect() 261 …e(void *vctx, PetscInt m, const PetscScalar *u, PetscScalar *X, PetscScalar *Xi, PetscReal *speeds) in PhysicsCharacteristic_Conservative() argument 268 speeds[i] = PETSC_MAX_REAL; /* Indicates invalid */ in PhysicsCharacteristic_Conservative() 273 …w(void *vctx, PetscInt m, const PetscScalar *u, PetscScalar *X, PetscScalar *Xi, PetscReal *speeds) in PhysicsCharacteristic_Shallow() argument 288 speeds[0] = u[1] / u[0] - c; in PhysicsCharacteristic_Shallow() 289 speeds[1] = u[1] / u[0] + c; in PhysicsCharacteristic_Shallow() 291 X[0 * 2 + 1] = speeds[0]; in PhysicsCharacteristic_Shallow() 293 X[1 * 2 + 1] = speeds[1]; in PhysicsCharacteristic_Shallow() 612 …->physics2.characteristic2)(ctx->physics2.user, dof, &x[i * dof], ctx->R, ctx->Rinv, ctx->speeds)); in FVRHSFunction_2WaySplit() [all …]
|
| H A D | ex5.c | 61 … PetscInt m, const PetscScalar *u, PetscScalar *X, PetscScalar *Xi, PetscReal *speeds, PetscReal x) in PhysicsCharacteristic_Advect() argument 68 if (x < 0) speeds[0] = ctx->a[0]; /* x is discontinuous point of a */ in PhysicsCharacteristic_Advect() 69 else speeds[0] = ctx->a[1]; in PhysicsCharacteristic_Advect() 223 …acteristic)(ctx->physics.user, dof, &x[i * dof], ctx->R, ctx->Rinv, ctx->speeds, ctx->xmin + hx * … in FVRHSFunctionslow() 327 …acteristic)(ctx->physics.user, dof, &x[i * dof], ctx->R, ctx->Rinv, ctx->speeds, ctx->xmin + hx * … in FVRHSFunctionfast() 428 …acteristic)(ctx->physics.user, dof, &x[i * dof], ctx->R, ctx->Rinv, ctx->speeds, ctx->xmin + hx * … in FVRHSFunctionslow2() 544 …acteristic)(ctx->physics.user, dof, &x[i * dof], ctx->R, ctx->Rinv, ctx->speeds, ctx->xmin + hx * … in FVRHSFunctionfast2() 697 PetscCall(PetscMalloc3(2 * dof, &ctx.uLR, dof, &ctx.flux, dof, &ctx.speeds)); in main() 820 PetscCall(PetscFree3(ctx.uLR, ctx.flux, ctx.speeds)); in main()
|
| H A D | ex6.c | 50 …t(void *vctx, PetscInt m, const PetscScalar *u, PetscScalar *X, PetscScalar *Xi, PetscReal *speeds) in PhysicsCharacteristic_Advect() argument 57 speeds[0] = ctx->a; in PhysicsCharacteristic_Advect() 243 …->physics2.characteristic2)(ctx->physics2.user, dof, &x[i * dof], ctx->R, ctx->Rinv, ctx->speeds)); in FVRHSFunction_2WaySplit() 392 …->physics2.characteristic2)(ctx->physics2.user, dof, &x[i * dof], ctx->R, ctx->Rinv, ctx->speeds)); in FVRHSFunctionslow_2WaySplit() 519 …->physics2.characteristic2)(ctx->physics2.user, dof, &x[i * dof], ctx->R, ctx->Rinv, ctx->speeds)); in FVRHSFunctionslowbuffer_2WaySplit() 665 …->physics2.characteristic2)(ctx->physics2.user, dof, &x[i * dof], ctx->R, ctx->Rinv, ctx->speeds)); in FVRHSFunctionfast_2WaySplit() 817 PetscCall(PetscMalloc3(2 * dof, &ctx.uLR, dof, &ctx.flux, dof, &ctx.speeds)); in main() 969 PetscCall(PetscFree3(ctx.uLR, ctx.flux, ctx.speeds)); in main()
|
| H A D | ex8.c | 43 …t(void *vctx, PetscInt m, const PetscScalar *u, PetscScalar *X, PetscScalar *Xi, PetscReal *speeds) in PhysicsCharacteristic_Advect() argument 50 speeds[0] = ctx->a; in PhysicsCharacteristic_Advect() 259 …->physics2.characteristic2)(ctx->physics2.user, dof, &x[i * dof], ctx->R, ctx->Rinv, ctx->speeds)); in FVRHSFunction_3WaySplit() 431 …->physics2.characteristic2)(ctx->physics2.user, dof, &x[i * dof], ctx->R, ctx->Rinv, ctx->speeds)); in FVRHSFunctionslow_3WaySplit() 561 …->physics2.characteristic2)(ctx->physics2.user, dof, &x[i * dof], ctx->R, ctx->Rinv, ctx->speeds)); in FVRHSFunctionslowbuffer_3WaySplit() 710 …->physics2.characteristic2)(ctx->physics2.user, dof, &x[i * dof], ctx->R, ctx->Rinv, ctx->speeds)); in FVRHSFunctionmedium_3WaySplit() 858 …->physics2.characteristic2)(ctx->physics2.user, dof, &x[i * dof], ctx->R, ctx->Rinv, ctx->speeds)); in FVRHSFunctionmediumbuffer_3WaySplit() 1006 …->physics2.characteristic2)(ctx->physics2.user, dof, &x[i * dof], ctx->R, ctx->Rinv, ctx->speeds)); in FVRHSFunctionfast_3WaySplit() 1159 PetscCall(PetscMalloc3(2 * dof, &ctx.uLR, dof, &ctx.flux, dof, &ctx.speeds)); in main() 1339 PetscCall(PetscFree3(ctx.uLR, ctx.flux, ctx.speeds)); in main()
|
| H A D | finitevolume1d.h | 111 PetscReal *speeds; /* Speeds of each wave */ member
|
| H A D | ex7.c | 59 …PetscReal *speeds; /* Speeds of each wave … member 720 PetscCall(PetscMalloc3(dof, &ctx.u, dof, &ctx.flux, dof, &ctx.speeds)); in main() 852 PetscCall(PetscFree3(ctx.u, ctx.flux, ctx.speeds)); in main()
|
| H A D | finitevolume1d.c | 558 …acteristic)(ctx->physics.user, dof, &x[i * dof], ctx->R, ctx->Rinv, ctx->speeds, ctx->xmin + hx * … in FVRHSFunction()
|
| /petsc/doc/developers/ |
| H A D | matrices.md | 100 Note that the speeds of the I-node and fixed block operations are
|
| /petsc/doc/ |
| H A D | petsc.bib | 39633 …f stable, high-order finite difference methods for hyperbolic systems with non-smooth wave speeds},
|