Lines Matching refs:physics2
133 ctx->physics2.sample2 = PhysicsSample_Advect; in PhysicsCreate_Advect()
134 ctx->physics2.riemann2 = PhysicsRiemann_Advect; in PhysicsCreate_Advect()
135 ctx->physics2.characteristic2 = PhysicsCharacteristic_Advect; in PhysicsCreate_Advect()
136 ctx->physics2.destroy = PhysicsDestroy_SimpleFree; in PhysicsCreate_Advect()
137 ctx->physics2.user = user; in PhysicsCreate_Advect()
138 ctx->physics2.dof = 1; in PhysicsCreate_Advect()
140 PetscCall(PetscStrallocpy("u", &ctx->physics2.fieldname[0])); in PhysicsCreate_Advect()
423 ctx->physics2.bcinflowindex[0] = PETSC_FALSE; in PhysicsSetInflowType_Shallow()
424 ctx->physics2.bcinflowindex[1] = PETSC_TRUE; in PhysicsSetInflowType_Shallow()
425 ctx->physics2.bcinflowindex[2] = PETSC_FALSE; in PhysicsSetInflowType_Shallow()
426 ctx->physics2.bcinflowindex[3] = PETSC_TRUE; in PhysicsSetInflowType_Shallow()
442 ctx->physics2.sample2 = PhysicsSample_Shallow; in PhysicsCreate_Shallow()
443 ctx->physics2.inflow = PhysicsInflow_Shallow; in PhysicsCreate_Shallow()
444 ctx->physics2.destroy = PhysicsDestroy_SimpleFree; in PhysicsCreate_Shallow()
445 ctx->physics2.riemann2 = PhysicsRiemann_Shallow_Rusanov; in PhysicsCreate_Shallow()
446 ctx->physics2.characteristic2 = PhysicsCharacteristic_Shallow; in PhysicsCreate_Shallow()
447 ctx->physics2.user = user; in PhysicsCreate_Shallow()
448 ctx->physics2.dof = 2; in PhysicsCreate_Shallow()
450 PetscCall(PetscMalloc1(2 * (ctx->physics2.dof), &ctx->physics2.bcinflowindex)); in PhysicsCreate_Shallow()
453 PetscCall(PetscStrallocpy("height", &ctx->physics2.fieldname[0])); in PhysicsCreate_Shallow()
454 PetscCall(PetscStrallocpy("momentum", &ctx->physics2.fieldname[1])); in PhysicsCreate_Shallow()
467 PetscCall(RiemannListFind_2WaySplit(rlist, rname, &ctx->physics2.riemann2)); in PhysicsCreate_Shallow()
468 PetscCall(ReconstructListFind_2WaySplit(rclist, rcname, &ctx->physics2.characteristic2)); in PhysicsCreate_Shallow()
482 …PetscCheck(ctx->physics2.sample2, PETSC_COMM_SELF, PETSC_ERR_SUP, "Physics has not provided a samp… in FVSample_2WaySplit()
496 …PetscCall((*ctx->physics2.sample2)(ctx->physics2.user, ctx->initial, ctx->bctype, ctx->xmin, ctx->… in FVSample_2WaySplit()
505 …PetscCall((*ctx->physics2.sample2)(ctx->physics2.user, ctx->initial, ctx->bctype, ctx->xmin, ctx->… in FVSample_2WaySplit()
514 …PetscCall((*ctx->physics2.sample2)(ctx->physics2.user, ctx->initial, ctx->bctype, ctx->xmin, ctx->… in FVSample_2WaySplit()
587 PetscCall(ctx->physics2.inflow(ctx, time, ctx->xmin, ctx->ub)); in FVRHSFunction_2WaySplit()
589 if (ctx->physics2.bcinflowindex[j]) { in FVRHSFunction_2WaySplit()
597 PetscCall(ctx->physics2.inflow(ctx, time, ctx->xmax, ctx->ub)); in FVRHSFunction_2WaySplit()
599 if (ctx->physics2.bcinflowindex[dof + j]) { in FVRHSFunction_2WaySplit()
612 …PetscCall((*ctx->physics2.characteristic2)(ctx->physics2.user, dof, &x[i * dof], ctx->R, ctx->Rinv… in FVRHSFunction_2WaySplit()
648 PetscCall((*ctx->physics2.riemann2)(ctx->physics2.user, dof, uL, uR, ctx->flux, &maxspeed)); in FVRHSFunction_2WaySplit()
660 PetscCall((*ctx->physics2.riemann2)(ctx->physics2.user, dof, uL, uR, ctx->flux, &maxspeed)); in FVRHSFunction_2WaySplit()
672 PetscCall((*ctx->physics2.riemann2)(ctx->physics2.user, dof, uL, uR, ctx->flux, &maxspeed)); in FVRHSFunction_2WaySplit()
684 PetscCall((*ctx->physics2.riemann2)(ctx->physics2.user, dof, uL, uR, ctx->flux, &maxspeed)); in FVRHSFunction_2WaySplit()
696 PetscCall((*ctx->physics2.riemann2)(ctx->physics2.user, dof, uL, uR, ctx->flux, &maxspeed)); in FVRHSFunction_2WaySplit()
760 PetscCall(ctx->physics2.inflow(ctx, time, ctx->xmin, ctx->ub)); in FVRHSFunctionslow_2WaySplit()
762 if (ctx->physics2.bcinflowindex[j] == PETSC_TRUE) { in FVRHSFunctionslow_2WaySplit()
770 PetscCall(ctx->physics2.inflow(ctx, time, ctx->xmax, ctx->ub)); in FVRHSFunctionslow_2WaySplit()
772 if (ctx->physics2.bcinflowindex[dof + j] == PETSC_TRUE) { in FVRHSFunctionslow_2WaySplit()
785 …PetscCall((*ctx->physics2.characteristic2)(ctx->physics2.user, dof, &x[i * dof], ctx->R, ctx->Rinv… in FVRHSFunctionslow_2WaySplit()
822 PetscCall((*ctx->physics2.riemann2)(ctx->physics2.user, dof, uL, uR, ctx->flux, &maxspeed)); in FVRHSFunctionslow_2WaySplit()
837 PetscCall((*ctx->physics2.riemann2)(ctx->physics2.user, dof, uL, uR, ctx->flux, &maxspeed)); in FVRHSFunctionslow_2WaySplit()
847 PetscCall((*ctx->physics2.riemann2)(ctx->physics2.user, dof, uL, uR, ctx->flux, &maxspeed)); in FVRHSFunctionslow_2WaySplit()
858 PetscCall((*ctx->physics2.riemann2)(ctx->physics2.user, dof, uL, uR, ctx->flux, &maxspeed)); in FVRHSFunctionslow_2WaySplit()
911 PetscCall(ctx->physics2.inflow(ctx, time, ctx->xmin, ctx->ub)); in FVRHSFunctionslowbuffer_2WaySplit()
913 if (ctx->physics2.bcinflowindex[j] == PETSC_TRUE) { in FVRHSFunctionslowbuffer_2WaySplit()
921 PetscCall(ctx->physics2.inflow(ctx, time, ctx->xmax, ctx->ub)); in FVRHSFunctionslowbuffer_2WaySplit()
923 if (ctx->physics2.bcinflowindex[dof + j] == PETSC_TRUE) { in FVRHSFunctionslowbuffer_2WaySplit()
936 …PetscCall((*ctx->physics2.characteristic2)(ctx->physics2.user, dof, &x[i * dof], ctx->R, ctx->Rinv… in FVRHSFunctionslowbuffer_2WaySplit()
973 PetscCall((*ctx->physics2.riemann2)(ctx->physics2.user, dof, uL, uR, ctx->flux, &maxspeed)); in FVRHSFunctionslowbuffer_2WaySplit()
984 PetscCall((*ctx->physics2.riemann2)(ctx->physics2.user, dof, uL, uR, ctx->flux, &maxspeed)); in FVRHSFunctionslowbuffer_2WaySplit()
998 PetscCall((*ctx->physics2.riemann2)(ctx->physics2.user, dof, uL, uR, ctx->flux, &maxspeed)); in FVRHSFunctionslowbuffer_2WaySplit()
1008 PetscCall((*ctx->physics2.riemann2)(ctx->physics2.user, dof, uL, uR, ctx->flux, &maxspeed)); in FVRHSFunctionslowbuffer_2WaySplit()
1019 PetscCall((*ctx->physics2.riemann2)(ctx->physics2.user, dof, uL, uR, ctx->flux, &maxspeed)); in FVRHSFunctionslowbuffer_2WaySplit()
1033 PetscCall((*ctx->physics2.riemann2)(ctx->physics2.user, dof, uL, uR, ctx->flux, &maxspeed)); in FVRHSFunctionslowbuffer_2WaySplit()
1082 PetscCall(ctx->physics2.inflow(ctx, time, ctx->xmin, ctx->ub)); in FVRHSFunctionfast_2WaySplit()
1084 if (ctx->physics2.bcinflowindex[j] == PETSC_TRUE) { in FVRHSFunctionfast_2WaySplit()
1092 PetscCall(ctx->physics2.inflow(ctx, time, ctx->xmax, ctx->ub)); in FVRHSFunctionfast_2WaySplit()
1094 if (ctx->physics2.bcinflowindex[dof + j] == PETSC_TRUE) { in FVRHSFunctionfast_2WaySplit()
1106 …PetscCall((*ctx->physics2.characteristic2)(ctx->physics2.user, dof, &x[i * dof], ctx->R, ctx->Rinv… in FVRHSFunctionfast_2WaySplit()
1142 PetscCall((*ctx->physics2.riemann2)(ctx->physics2.user, dof, uL, uR, ctx->flux, &maxspeed)); in FVRHSFunctionfast_2WaySplit()
1153 PetscCall((*ctx->physics2.riemann2)(ctx->physics2.user, dof, uL, uR, ctx->flux, &maxspeed)); in FVRHSFunctionfast_2WaySplit()
1167 PetscCall((*ctx->physics2.riemann2)(ctx->physics2.user, dof, uL, uR, ctx->flux, &maxspeed)); in FVRHSFunctionfast_2WaySplit()
1250 PetscCall(DMDACreate1d(comm, DM_BOUNDARY_PERIODIC, 50, ctx.physics2.dof, 2, NULL, &da)); in main()
1255 …for (i = 0; i < ctx.physics2.dof; i++) PetscCall(DMDASetFieldName(da, i, ctx.physics2.fieldname[i]… in main()
1409 PetscCall((*ctx.physics2.destroy)(ctx.physics2.user)); in main()
1410 for (i = 0; i < ctx.physics2.dof; i++) PetscCall(PetscFree(ctx.physics2.fieldname[i])); in main()
1411 PetscCall(PetscFree(ctx.physics2.bcinflowindex)); in main()