| H A D | ex1.c | 7 …t dim, PetscScalar *B, PetscScalar *D, PetscScalar *H, PetscReal *rB, PetscReal *rD, PetscReal *rH) in ViewResults() argument 20 PetscCall(PetscRealView(N * dim, rD, viewer)); in ViewResults() 31 PetscReal *rB, *rD, *rH; in TestEvaluate() local 47 …PetscCall(PetscMalloc6(n * nc, &B, n * nc, &rB, n * nc * dim, &D, n * nc * dim, &rD, n * nc * dim … in TestEvaluate() 49 PetscCall(DMFieldEvaluate(field, points, PETSC_REAL, rB, rD, rH)); in TestEvaluate() 54 PetscCall(ViewResults(viewer, n * nc, dim, B, D, H, rB, rD, rH)); in TestEvaluate() 56 PetscCall(PetscFree6(B, rB, D, rD, H, rH)); in TestEvaluate() 67 PetscReal *rB, *rD, *rH; in TestEvaluateFE() local 90 …PetscCall(PetscMalloc6(N, &B, N, &rB, N * dim, &D, N * dim, &rD, N * dim * dim, &H, N * dim * dim,… in TestEvaluateFE() 92 PetscCall(DMFieldEvaluateFE(field, cellIS, quad, PETSC_REAL, rB, rD, rH)); in TestEvaluateFE() [all …]
|