Home
last modified time | relevance | path

Searched refs:Ar (Results 1 – 5 of 5) sorted by relevance

/petsc/src/mat/tests/
H A Dex169.c14 Mat A, Ar, C; in main() local
45 PetscCall(MatCreateRedundantMatrix(A, 0, PetscSubcommChild(subc), MAT_INITIAL_MATRIX, &Ar)); in main()
47 PetscCall(MatDuplicate(Ar, MAT_COPY_VALUES, &C)); in main()
48 PetscCall(MatAXPY(Ar, 0.1, C, DIFFERENT_NONZERO_PATTERN)); in main()
55 PetscCall(MatDestroy(&Ar)); in main()
/petsc/src/dm/impls/stag/tests/
H A Dex20.c43 Mat Ar; in main() local
48 PetscCall(DMCreateRestriction(dmc, dmf, &Ar)); in main()
49 PetscCall(MatCreateVecs(Ar, &vf, &vc)); in main()
51 PetscCall(MatMult(Ar, vf, vc)); in main()
55 PetscCall(MatDestroy(&Ar)); in main()
H A Dex15.c48 Mat Ar; in main() local
49 PetscCall(DMCreateRestriction(dmCoarse, dm, &Ar)); in main()
50 PetscCall(MatDestroy(&Ar)); in main()
/petsc/src/ts/tutorials/power_grid/
H A Dex5.c42 PetscScalar Ar; /* Area swept by rotor (pi*R*R) */ member
141 user->Ar = PETSC_PI * user->Rt * user->Rt; in SetWindTurbineParams()
174 *Pw = 0.5 * user->rho * cp * user->Ar * vw * vw * vw / (MVAbase * 1e6); in GetWindPower()
/petsc/src/ts/tutorials/
H A Dex9.c744 Ar[2][2] = {{c / 2, c * z / 2}, {c / (2 * z), c / 2}}; /* Right traveling waves */ in PhysicsRiemann_Acoustics_Exact() local
747 flux[0] = Al[0][0] * uR[0] + Al[0][1] * uR[1] + Ar[0][0] * uL[0] + Ar[0][1] * uL[1]; in PhysicsRiemann_Acoustics_Exact()
748 flux[1] = Al[1][0] * uR[0] + Al[1][1] * uR[1] + Ar[1][0] * uL[0] + Ar[1][1] * uL[1]; in PhysicsRiemann_Acoustics_Exact()