Lines Matching refs:ctxs
305 void **ctxs; in DMPlexCreateRigidBody() local
320 PetscCall(PetscCalloc2(Nf, &func, Nf, &ctxs)); in DMPlexCreateRigidBody()
333 ctxs[field] = (void *)(&ctx[0]); in DMPlexCreateRigidBody()
336 PetscCall(DMProjectFunction(dm, 0.0, func, ctxs, INSERT_VALUES, mode[d])); in DMPlexCreateRigidBody()
363 PetscCall(PetscFree2(func, ctxs)); in DMPlexCreateRigidBody()
918 void **ctxs; in DMPlexInsertBoundaryValuesEssential() local
923 PetscCall(PetscCalloc2(numFields, &funcs, numFields, &ctxs)); in DMPlexInsertBoundaryValuesEssential()
925 ctxs[field] = ctx; in DMPlexInsertBoundaryValuesEssential()
926 …PetscCall(DMProjectFunctionLabelLocal(dm, time, label, numids, ids, Nc, comps, funcs, ctxs, INSERT… in DMPlexInsertBoundaryValuesEssential()
927 PetscCall(PetscFree2(funcs, ctxs)); in DMPlexInsertBoundaryValuesEssential()
957 void **ctxs; in DMPlexInsertBoundaryValuesEssentialField() local
962 PetscCall(PetscCalloc2(numFields, &funcs, numFields, &ctxs)); in DMPlexInsertBoundaryValuesEssentialField()
964 ctxs[field] = ctx; in DMPlexInsertBoundaryValuesEssentialField()
966 PetscCall(PetscFree2(funcs, ctxs)); in DMPlexInsertBoundaryValuesEssentialField()
998 void **ctxs; in DMPlexInsertBoundaryValuesEssentialBdField() local
1003 PetscCall(PetscCalloc2(numFields, &funcs, numFields, &ctxs)); in DMPlexInsertBoundaryValuesEssentialBdField()
1005 ctxs[field] = ctx; in DMPlexInsertBoundaryValuesEssentialBdField()
1007 PetscCall(PetscFree2(funcs, ctxs)); in DMPlexInsertBoundaryValuesEssentialBdField()
1285 void **ctxs; in DMPlexInsertBounds_Plex() local
1289 PetscCall(PetscCalloc2(Nf, &funcs, Nf, &ctxs)); in DMPlexInsertBounds_Plex()
1291 ctxs[field] = ctx; in DMPlexInsertBounds_Plex()
1292 …PetscCall(DMProjectFunctionLabelLocal(dm, time, label, numids, ids, Nc, comps, funcs, ctxs, INSERT… in DMPlexInsertBounds_Plex()
1293 PetscCall(PetscFree2(funcs, ctxs)); in DMPlexInsertBounds_Plex()
1424 …t, PetscReal, const PetscReal[], PetscInt, PetscScalar *, void *), void **ctxs, Vec X, PetscReal *… in DMComputeL2Diff_Plex() argument
1433 PetscCall(DMPlexComputeL2DiffLocal(dm, time, funcs, ctxs, localX, diff)); in DMComputeL2Diff_Plex()
1457 …t, PetscReal, const PetscReal[], PetscInt, PetscScalar *, void *), void **ctxs, Vec localX, PetscR… in DMPlexComputeL2DiffLocal() argument
1518 void *const ctx = ctxs ? ctxs[field] : NULL; in DMPlexComputeL2DiffLocal()
1582 … PetscReal[], const PetscReal[], PetscInt, PetscScalar *, void *), void **ctxs, Vec X, const Petsc… in DMComputeL2GradientDiff_Plex() argument
1633 void *const ctx = ctxs ? ctxs[field] : NULL; in DMComputeL2GradientDiff_Plex()
1697 …t, PetscReal, const PetscReal[], PetscInt, PetscScalar *, void *), void **ctxs, Vec X, PetscReal *… in DMComputeL2FieldDiff_Plex() argument
1723 PetscCall(DMProjectFunctionLocal(dm, time, funcs, ctxs, INSERT_BC_VALUES, localX)); in DMComputeL2FieldDiff_Plex()
1773 void *const ctx = ctxs ? ctxs[fields[f]] : NULL; in DMComputeL2FieldDiff_Plex()
1873 …etscInt, PetscReal, const PetscReal[], PetscInt, PetscScalar *, void *), void **ctxs, Vec X, Vec D) in DMPlexComputeL2DiffVec() argument
1891 PetscCall(DMProjectFunctionLocal(dm, time, funcs, ctxs, INSERT_BC_VALUES, localX)); in DMPlexComputeL2DiffVec()
1929 void *const ctx = ctxs ? ctxs[field] : NULL; in DMPlexComputeL2DiffVec()