| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex61.c | 25 PetscInt comps[] = {0}; in main() local 37 …PetscCall(DMAddBoundary(dm, DM_BC_ESSENTIAL, "inflow condition", label, 1, &in_value, 0, 1, comps,… in main() 38 …ary(dm, DM_BC_ESSENTIAL, "outflow condition", label, 1, &out_value, 0, 1, comps, (PetscVoidFn *)se… in main()
|
| /petsc/src/dm/interface/ |
| H A D | dmi.c | 78 …cInt numFields, const PetscInt fields[], const PetscInt numComps[], const PetscInt comps[], IS *is) in PetscSectionSelectFields_Private() argument 97 …comps[off] < Nc, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Field %" PetscInt_FMT ": component %"… in PetscSectionSelectFields_Private() 132 if (c == comps[off + fcc]) { in PetscSectionSelectFields_Private() 200 if (c == comps[off + fcc]) { in PetscSectionSelectFields_Private() 234 …ields, const PetscInt fields[], const PetscInt numComps[], const PetscInt comps[], IS *is, DM *sub… in DMSelectFields_Private() argument 250 PetscCall(PetscSectionCreateComponentSubsection(section, numComps[field], comps, &subsection)); in DMSelectFields_Private() 412 …ields, const PetscInt fields[], const PetscInt numComps[], const PetscInt comps[], IS *is, DM *sub… in DMCreateSectionSubDM() argument 426 …(PetscSectionSelectFields_Private(section, sectionGlobal, numFields, fields, numComps, comps, is)); in DMCreateSectionSubDM() 427 …if (subdm) PetscCall(DMSelectFields_Private(dm, section, numFields, fields, numComps, comps, is, s… in DMCreateSectionSubDM()
|
| H A D | dm.c | 8080 … Nv, const PetscInt values[], PetscInt field, PetscInt Nc, const PetscInt comps[], PetscVoidFn *bc… in DMAddBoundary() argument 8108 …PetscCall(PetscDSAddBoundary(ds, type, name, label, Nv, values, field, Nc, comps, bcFunc, bcFunc_t… in DMAddBoundary() 8218 const PetscInt *comps; in DMHasBound() local 8222 …etBoundary(ds, b, &wf, &type, &name, &label, &numids, &ids, &field, &Nc, &comps, &bvfunc, NULL, &c… in DMHasBound() 8355 …label, PetscInt numIds, const PetscInt ids[], PetscInt Nc, const PetscInt comps[], PetscErrorCode … in DMProjectFunctionLabel() argument 8363 …PetscCall(DMProjectFunctionLabelLocal(dm, time, label, numIds, ids, Nc, comps, funcs, ctxs, mode, … in DMProjectFunctionLabel() 8407 …label, PetscInt numIds, const PetscInt ids[], PetscInt Nc, const PetscInt comps[], PetscErrorCode … in DMProjectFunctionLabelLocal() argument 8412 …PetscUseTypeMethod(dm, projectfunctionlabellocal, time, label, numIds, ids, Nc, comps, funcs, ctxs… in DMProjectFunctionLabelLocal() 8532 …label, PetscInt numIds, const PetscInt ids[], PetscInt Nc, const PetscInt comps[], Vec localU, voi… in DMProjectFieldLabelLocal() argument 8538 …PetscUseTypeMethod(dm, projectfieldlabellocal, time, label, numIds, ids, Nc, comps, localU, funcs,… in DMProjectFieldLabelLocal() [all …]
|
| /petsc/src/dm/dt/interface/ |
| H A D | dtds.c | 174 PetscCall(PetscViewerASCIIPrintf(viewer, "%" PetscInt_FMT, b->comps[c])); in PetscDSView_Ascii() 327 PetscCall(PetscFree(b->comps)); in PetscDSSetFromOptions() 328 PetscCall(PetscMalloc1(len, &b->comps)); in PetscDSSetFromOptions() 329 PetscCall(PetscArraycpy(b->comps, ids, len)); in PetscDSSetFromOptions() 3168 … Nv, const PetscInt values[], PetscInt field, PetscInt Nc, const PetscInt comps[], PetscVoidFn *bc… in PetscDSAddBoundary() argument 3190 …comps[c] >= 0 && comps[c] < fcomps[field], PetscObjectComm((PetscObject)ds), PETSC_ERR_ARG_OUTOFRA… in PetscDSAddBoundary() 3199 PetscCall(PetscMalloc1(Nc, &b->comps)); in PetscDSAddBoundary() 3200 if (Nc) PetscCall(PetscArraycpy(b->comps, comps, Nc)); in PetscDSAddBoundary() 3298 … Nv, const PetscInt values[], PetscInt field, PetscInt Nc, const PetscInt comps[], PetscVoidFn *bc… in PetscDSAddBoundaryByName() argument 3317 PetscCall(PetscMalloc1(Nc, &b->comps)); in PetscDSAddBoundaryByName() [all …]
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexproject.c | 713 …eric_Plex(DM dm, PetscReal time, Vec localU, PetscInt Ncc, const PetscInt comps[], DMLabel label, … in DMProjectLocal_Generic_Plex() argument 1056 …cSetFieldClosure_Internal(plex, section, localX, fieldActive, point, Ncc, comps, label, ids[i], va… in DMProjectLocal_Generic_Plex() 1087 …exVecSetFieldClosure_Internal(plex, section, localX, fieldActive, p, Ncc, comps, NULL, -1, values,… in DMProjectLocal_Generic_Plex() 1120 …abel, PetscInt numIds, const PetscInt ids[], PetscInt Ncc, const PetscInt comps[], PetscErrorCode … in DMProjectFunctionLabelLocal_Plex() argument 1123 …PetscCall(DMProjectLocal_Generic_Plex(dm, time, NULL, Ncc, comps, label, numIds, ids, DM_BC_ESSENT… in DMProjectFunctionLabelLocal_Plex() 1134 …abel, PetscInt numIds, const PetscInt ids[], PetscInt Ncc, const PetscInt comps[], Vec localU, voi… in DMProjectFieldLabelLocal_Plex() argument 1137 …PetscCall(DMProjectLocal_Generic_Plex(dm, time, localU, Ncc, comps, label, numIds, ids, DM_BC_ESSE… in DMProjectFieldLabelLocal_Plex() 1141 …abel, PetscInt numIds, const PetscInt ids[], PetscInt Ncc, const PetscInt comps[], Vec localU, voi… in DMProjectBdFieldLabelLocal_Plex() argument 1144 …PetscCall(DMProjectLocal_Generic_Plex(dm, time, localU, Ncc, comps, label, numIds, ids, DM_BC_ESSE… in DMProjectBdFieldLabelLocal_Plex()
|
| H A D | plexsection.c | 521 const PetscInt *comps; in DMCreateLocalSection_Plex() local 527 …, bd, NULL, &type, NULL, &label, &numValues, &values, &field, &numComps, &comps, NULL, NULL, NULL)… in DMCreateLocalSection_Plex() 543 …if (numComps) PetscCall(ISCreateGeneral(PETSC_COMM_SELF, numComps, comps, PETSC_COPY_VALUES, &bcCo… in DMCreateLocalSection_Plex()
|
| H A D | plexfem.c | 915 …ential(DM dm, PetscReal time, PetscInt field, PetscInt Nc, const PetscInt comps[], DMLabel label, … in DMPlexInsertBoundaryValuesEssential() argument 926 …PetscCall(DMProjectFunctionLabelLocal(dm, time, label, numids, ids, Nc, comps, funcs, ctxs, INSERT… in DMPlexInsertBoundaryValuesEssential() 954 …dm, PetscReal time, Vec locU, PetscInt field, PetscInt Nc, const PetscInt comps[], DMLabel label, … in DMPlexInsertBoundaryValuesEssentialField() argument 965 …PetscCall(DMProjectFieldLabelLocal(dm, time, label, numids, ids, Nc, comps, locU, funcs, INSERT_BC… in DMPlexInsertBoundaryValuesEssentialField() 995 …dm, PetscReal time, Vec locU, PetscInt field, PetscInt Nc, const PetscInt comps[], DMLabel label, … in DMPlexInsertBoundaryValuesEssentialBdField() argument 1006 …PetscCall(DMProjectBdFieldLabelLocal(dm, time, label, numids, ids, Nc, comps, locU, funcs, INSERT_… in DMPlexInsertBoundaryValuesEssentialBdField() 1039 …, Vec cellGeometry, Vec Grad, PetscInt field, PetscInt Nc, const PetscInt comps[], DMLabel label, … in DMPlexInsertBoundaryValuesRiemann() argument 1158 const PetscInt *comps; in DMPlexInsertBoundaryValues_Plex() local 1166 …Boundary(prob, b, &wf, &type, &name, &label, &numids, &ids, &field, &Nc, &comps, &bvfunc, NULL, &c… in DMPlexInsertBoundaryValues_Plex() 1178 …PetscCall(DMPlexInsertBoundaryValuesEssential(dm, time, field, Nc, comps, label, numids, ids, func… in DMPlexInsertBoundaryValues_Plex() [all …]
|
| H A D | plex.c | 7096 …erm[], const PetscScalar flip[], PetscInt f, PetscInt Ncc, const PetscInt comps[], void (*fuse)(Pe… in updatePointFieldsBC_private() argument 7115 if (comps) { in updatePointFieldsBC_private() 7118 if (b % Nc == comps[ncind]) { in updatePointFieldsBC_private() 7137 if (comps) { in updatePointFieldsBC_private() 7140 if (b % Nc == comps[ncind]) { in updatePointFieldsBC_private() 7161 if (comps) { in updatePointFieldsBC_private() 7164 if (b % Nc == comps[ncind]) { in updatePointFieldsBC_private() 7183 if (comps) { in updatePointFieldsBC_private() 7186 if (b % Nc == comps[ncind]) { in updatePointFieldsBC_private() 7478 … v, PetscBool fieldActive[], PetscInt point, PetscInt Ncc, const PetscInt comps[], DMLabel label, … in DMPlexVecSetFieldClosure_Internal() argument [all …]
|
| /petsc/config/BuildSystem/ |
| H A D | sourceDatabase.py | 224 comps = source.split('/') 237 if not comps[i] == c[i]: break
|
| /petsc/include/petsc/private/ |
| H A D | petscdsimpl.h | 22 PetscInt *comps; /* The constrained field components */ member
|
| /petsc/src/vec/is/is/interface/ |
| H A D | index.c | 232 PetscErrorCode ISCreateSubIS(IS is, IS comps, IS *subis) in ISCreateSubIS() argument 243 PetscValidHeaderSpecific(comps, IS_CLASSID, 2); in ISCreateSubIS() 247 PetscCall(ISGetLocalSize(comps, &nleaves)); in ISCreateSubIS() 251 PetscCall(ISGetIndices(comps, &comps_indices)); in ISCreateSubIS() 267 PetscCall(ISRestoreIndices(comps, &comps_indices)); in ISCreateSubIS()
|
| /petsc/src/vec/is/section/interface/ |
| H A D | section.c | 2133 …ionCreateComponentSubsection(PetscSection s, PetscInt len, const PetscInt comps[], PetscSection *s… in PetscSectionCreateComponentSubsection() argument 2142 PetscAssertPointer(comps, 3); in PetscSectionCreateComponentSubsection() 2154 PetscCall(PetscSectionGetComponentName(s, 0, comps[c], &name)); in PetscSectionCreateComponentSubsection()
|
| /petsc/src/dm/impls/forest/p4est/ |
| H A D | pforest.h | 4905 …abel, PetscInt numIds, const PetscInt ids[], PetscInt Ncc, const PetscInt comps[], PetscErrorCode … in DMProjectFunctionLabelLocal_pforest() argument 4912 …PetscCall(DMProjectFunctionLabelLocal(plex, time, label, numIds, ids, Ncc, comps, funcs, ctxs, mod… in DMProjectFunctionLabelLocal_pforest()
|
| /petsc/share/petsc/datafiles/meshes/ |
| H A D | testcase3D.cas | 1820 (patternator/do-velo-comps? #t)
|