| /petsc/src/vec/is/tests/ |
| H A D | ex5.c | 125 PetscSection section, gsection; in main() local 132 PetscCall(PetscSectionCreate(comm, §ion)); in main() 133 PetscCall(PetscSectionSetNumFields(section, 2)); in main() 136 PetscCall(PetscSectionSetChart(section, 0, 4)); in main() 137 PetscCall(PetscSectionSetDof(section, 0, 3)); in main() 138 PetscCall(PetscSectionSetDof(section, 1, 3)); in main() 139 PetscCall(PetscSectionSetDof(section, 2, 5)); in main() 140 PetscCall(PetscSectionSetDof(section, 3, 7)); in main() 141 PetscCall(PetscSectionSetFieldDof(section, 0, 0, 2)); in main() 142 PetscCall(PetscSectionSetFieldDof(section, 1, 0, 3)); in main() [all …]
|
| /petsc/config/BuildSystem/ |
| H A D | help.py | 22 def getDescription(self, section, name): argument 23 return self._desc[(section, name)] 25 def setDescription(self, section, name, desc): argument 28 self._desc[(section, name)] = desc 31 def addArgument(self, section, name, desc): argument 33 if not section in self.sections: 34 self.sections[section] = (len(self.sections), []) 35 if name in self.sections[section][1]: 36 name += '@'+str(len([n for n in self.sections[section][1] if name == n.split('@')[0]])+1) 37 self.sections[section][1].append(name) [all …]
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex21.c | 200 PetscSection section, gsection; in main() local 206 PetscCall(PetscSectionCreate(comm, §ion)); in main() 207 PetscCall(PetscSectionSetNumFields(section, 2)); in main() 209 PetscCall(PetscSectionSetChart(section, pStart, pEnd)); in main() 212 PetscCall(PetscSectionSetDof(section, 3, 2)); in main() 213 PetscCall(PetscSectionSetDof(section, 12, 3)); in main() 214 PetscCall(PetscSectionSetDof(section, 25, 2)); in main() 215 PetscCall(PetscSectionSetConstraintDof(section, 12, 1)); in main() 216 PetscCall(PetscSectionSetFieldDof(section, 3, 0, 2)); in main() 217 PetscCall(PetscSectionSetFieldDof(section, 12, 0, 2)); in main() [all …]
|
| H A D | ex48.c | 9 PetscSection section; in main() local 20 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)dm), §ion)); in main() 22 PetscCall(PetscSectionSetChart(section, pStart, pEnd)); in main() 24 for (p = pStart; p < pEnd; p++) PetscCall(PetscSectionSetDof(section, p, 1)); in main() 26 for (p = pStart; p < pEnd; p++) PetscCall(PetscSectionSetDof(section, p, 2)); in main() 27 PetscCall(PetscSectionSetUp(section)); in main() 28 PetscCall(DMSetLocalSection(dm, section)); in main() 29 PetscCall(PetscSectionViewFromOptions(section, NULL, "-s_view")); in main() 39 PetscCall(PetscSectionGetDof(section, p, &dof)); in main() 41 PetscCall(VecSetValuesSection(v, section, p, val, INSERT_VALUES)); in main() [all …]
|
| H A D | ex48f90.F90 | 7 type(tPetscSection) :: section variable 25 PetscCallA(PetscSectionCreate(PETSC_COMM_WORLD, section, ierr)) 27 PetscCallA(PetscSectionSetChart(section, pStart, pEnd, ierr)) 30 PetscCallA(PetscSectionSetDof(section, p, one, ierr)) 34 PetscCallA(PetscSectionSetDof(section, p, two, ierr)) 36 PetscCallA(PetscSectionSetUp(section, ierr)) 37 PetscCallA(DMSetLocalSection(dm, section, ierr)) 38 PetscCallA(PetscSectionViewFromOptions(section, PETSC_NULL_OBJECT, '-s_view', ierr)) 44 PetscCallA(PetscSectionGetDof(section, p, dof, ierr)) 49 PetscCallA(VecSetValuesSection(v, section, p, val, INSERT_VALUES, ierr)) [all …]
|
| H A D | ex98.c | 8 PetscSection section; in main() local 35 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)dm), §ion)); in main() 36 PetscCall(PetscSectionSetNumFields(section, 1)); in main() 37 PetscCall(PetscSectionSetFieldName(section, field, "U")); in main() 38 PetscCall(PetscSectionSetFieldComponents(section, field, sdim)); in main() 40 PetscCall(PetscSectionSetChart(section, pStart, pEnd)); in main() 45 PetscCall(PetscSectionSetDof(section, p, sdim)); in main() 46 PetscCall(PetscSectionSetFieldDof(section, p, 0, sdim)); in main() 62 PetscCall(PetscSectionSetConstraintDof(section, pointID[p], 1)); in main() 63 PetscCall(PetscSectionSetFieldConstraintDof(section, pointID[p], field, 1)); in main() [all …]
|
| H A D | ex98f90.F90 | 13 type(tPetscSection) :: section 43 PetscCallA(PetscSectionCreate(comm, section, ierr)) 44 PetscCallA(PetscSectionSetNumFields(section, 1_kPI, ierr)) 45 PetscCallA(PetscSectionSetFieldName(section, 0_kPI, 'U', ierr)) 46 PetscCallA(PetscSectionSetFieldComponents(section, 0_kPI, sdim, ierr)) 48 PetscCallA(PetscSectionSetChart(section, pStart, pEnd, ierr)) 53 PetscCallA(PetscSectionSetDof(section, p, sdim, ierr)) 54 PetscCallA(PetscSectionSetFieldDof(section, p, 0_kPI, sdim, ierr)) 73 PetscCallA(PetscSectionSetConstraintDof(section, pointID(p), 1_kPI, ierr)) 74 PetscCallA(PetscSectionSetFieldConstraintDof(section, pointID(p), 0_kPI, 1_kPI, ierr)) [all …]
|
| H A D | ex52.c | 8 PetscSection section; in CloneDMWithNewSection() local 20 …PetscCall(DMPlexCreateSection(*NewDM, NULL, NumComp, NumDof, 0, NULL, NULL, NULL, NULL, §ion)); in CloneDMWithNewSection() 21 PetscCall(DMSetLocalSection(*NewDM, section)); in CloneDMWithNewSection() 23 PetscCall(PetscSectionDestroy(§ion)); in CloneDMWithNewSection() 70 PetscSection section; in main() local 71 PetscCall(DMPlexCreateSection(plex, NULL, numComp, numDof, 0, NULL, NULL, NULL, NULL, §ion)); in main() 74 …for (PetscInt i = 0; i < numFields; i++) PetscCall(PetscSectionSetFieldName(section, i, names[i])); in main() 75 PetscCall(DMSetLocalSection(forest, section)); in main() 76 PetscCall(DMSetLocalSection(plex, section)); in main() 77 PetscCall(PetscSectionDestroy(§ion)); in main()
|
| /petsc/src/dm/impls/plex/tutorials/ |
| H A D | ex14.c | 10 PetscSection section; in main() local 44 …PetscCall(DMPlexCreateSection(dm, NULL, numComp, numDof, numBC, NULL, NULL, NULL, NULL, §ion)); in main() 46 PetscCall(PetscSectionSetFieldName(section, 0, "u")); in main() 47 PetscCall(PetscSectionSetFieldName(section, 1, "v")); in main() 49 PetscCall(DMSetLocalSection(dm, section)); in main() 57 PetscCall(PetscSFCreateRemoteOffsets(pointSF, section, section, &remoteOffsets)); in main() 60 PetscCall(PetscSFCreateSectionSF(pointSF, section, remoteOffsets, section, §ionSF)); in main() 79 PetscCall(PetscSectionVecView(section, u, PETSC_VIEWER_STDOUT_WORLD)); in main() 84 PetscCall(PetscSectionDestroy(§ion)); in main()
|
| H A D | ex14f90.F90 | 8 type(tPetscSection) :: section variable 42 … PETSC_NULL_INTEGER_ARRAY, PETSC_NULL_IS_ARRAY, PETSC_NULL_IS_ARRAY, PETSC_NULL_IS, section, ierr)) 44 PetscCallA(PetscSectionSetFieldName(section, zero, "u", ierr)) 45 PetscCallA(PetscSectionSetFieldName(section, one, "v", ierr)) 47 PetscCallA(DMSetLocalSection(dm, section, ierr)) 55 PetscCallA(PetscSFCreateRemoteOffsets(pointSF, section, section, remoteOffsets, ierr)) 58 PetscCallA(PetscSFCreateSectionSF(pointSF, section, remoteOffsets, section, sectionSF, ierr)) 80 PetscCallA(PetscSectionVecView(section, u, PETSC_VIEWER_STDOUT_WORLD, ierr)) 84 PetscCallA(PetscSectionDestroy(section, ierr))
|
| H A D | ex1.c | 9 PetscSection section; in main() local 44 …l(DMPlexCreateSection(dm, NULL, numComp, numDof, numBC, bcField, NULL, bcPointIS, NULL, §ion)); in main() 47 PetscCall(PetscSectionSetFieldName(section, 0, "u")); in main() 48 PetscCall(PetscSectionSetFieldName(section, 1, "v")); in main() 49 PetscCall(PetscSectionSetFieldName(section, 2, "w")); in main() 50 PetscCall(PetscSectionViewFromOptions(section, NULL, "-mysection_view")); in main() 52 PetscCall(DMSetLocalSection(dm, section)); in main() 60 PetscCall(PetscSectionDestroy(§ion)); in main()
|
| H A D | ex1f90.F90 | 12 PetscSection :: section 71 …EL_ARRAY, pNumComp, pNumDof, numBC, pBcField, pBcCompIS, pBcPointIS, PETSC_NULL_IS, section, ierr)) 75 PetscCallA(PetscSectionSetFieldName(section, zero, 'u', ierr)) 76 PetscCallA(PetscSectionSetFieldName(section, one, 'v', ierr)) 77 PetscCallA(PetscSectionSetFieldName(section, two, 'w', ierr)) 79 PetscCallA(PetscSectionView(section, PETSC_VIEWER_STDOUT_WORLD, ierr)) 82 PetscCallA(DMSetLocalSection(dm, section, ierr)) 92 PetscCallA(PetscSectionDestroy(section, ierr))
|
| H A D | ex16.c | 75 PetscSection section; in ReadCGNSDM() local 76 PetscCall(DMGetLocalSection(*dm, §ion)); in ReadCGNSDM() 77 PetscCall(PetscSectionSetFieldName(section, 0, "")); in ReadCGNSDM() 78 PetscCall(PetscSectionSetComponentName(section, 0, 0, "Pressure")); in ReadCGNSDM() 79 PetscCall(PetscSectionSetComponentName(section, 0, 1, "VelocityX")); in ReadCGNSDM() 80 PetscCall(PetscSectionSetComponentName(section, 0, 2, "VelocityY")); in ReadCGNSDM() 81 PetscCall(PetscSectionSetComponentName(section, 0, 3, "VelocityZ")); in ReadCGNSDM() 82 PetscCall(PetscSectionSetComponentName(section, 0, 4, "Temperature")); in ReadCGNSDM()
|
| /petsc/src/vec/vec/tests/ |
| H A D | ex40f90.F90 | 6 type(tPetscSection) section variable 13 PetscCallA(PetscSectionCreate(PETSC_COMM_WORLD, section, ierr)) 16 PetscCallA(PetscSectionSetChart(section, pStart, pEnd, ierr)) 18 PetscCallA(PetscSectionSetDof(section, p, three, ierr)) 20 PetscCallA(PetscSectionSetUp(section, ierr)) 21 PetscCallA(PetscSectionView(section, PETSC_VIEWER_STDOUT_WORLD, ierr)) 22 PetscCallA(PetscSectionDestroy(section, ierr))
|
| /petsc/systems/Apple/OSX/examples/PETSc command line example/PETSc command line example.xcodeproj/ |
| H A D | project.pbxproj | 9 /* Begin PBXBuildFile section */ 13 /* End PBXBuildFile section */ 15 /* Begin PBXCopyFilesBuildPhase section */ 26 /* End PBXCopyFilesBuildPhase section */ 28 /* Begin PBXFileReference section */ 33 /* End PBXFileReference section */ 35 /* Begin PBXFrameworksBuildPhase section */ 44 /* End PBXFrameworksBuildPhase section */ 46 /* Begin PBXGroup section */ 73 /* End PBXGroup section */ [all …]
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexsection.c | 4 …ic PetscErrorCode DMPlexCreateSectionFields(DM dm, const PetscInt numComp[], PetscSection *section) in DMPlexCreateSectionFields() argument 28 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)dm), section)); in DMPlexCreateSectionFields() 30 PetscCall(PetscSectionSetNumFields(*section, Nf)); in DMPlexCreateSectionFields() 33 PetscCall(PetscSectionSetFieldComponents(*section, f, numComp[f])); in DMPlexCreateSectionFields() 52 … PetscCall(PetscSectionSymCreateLabel(PetscObjectComm((PetscObject)*section), depthLabel, &sym)); in DMPlexCreateSectionFields() 75 PetscCall(PetscSectionSetFieldSym(*section, f, sym)); in DMPlexCreateSectionFields() 83 PetscCall(PetscSectionSetChart(*section, pStart, pEnd)); in DMPlexCreateSectionFields() 89 …rCode DMPlexCreateSectionDof(DM dm, DMLabel label[], const PetscInt numDof[], PetscSection section) in DMPlexCreateSectionDof() argument 158 PetscCall(PetscSectionSetFieldDof(section, point, f, dof)); in DMPlexCreateSectionDof() 159 PetscCall(PetscSectionAddDof(section, point, dof)); in DMPlexCreateSectionDof() [all …]
|
| H A D | plexindices.c | 19 PetscErrorCode DMPlexCreateClosureIndex(DM dm, PetscSection section) in DMPlexCreateClosureIndex() argument 28 if (!section) PetscCall(DMGetLocalSection(dm, §ion)); in DMPlexCreateClosureIndex() 29 PetscValidHeaderSpecific(section, PETSC_SECTION_CLASSID, 2); in DMPlexCreateClosureIndex() 30 PetscCall(PetscSectionGetChart(section, &sStart, &sEnd)); in DMPlexCreateClosureIndex() 32 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)section), &closureSection)); in DMPlexCreateClosureIndex() 40 PetscCall(PetscSectionGetDof(section, points[p], &dof)); in DMPlexCreateClosureIndex() 58 PetscCall(PetscSectionGetDof(section, points[p], &dof)); in DMPlexCreateClosureIndex() 70 PetscCall(PetscSectionSetClosureIndex(section, (PetscObject)dm, closureSection, closureIS)); in DMPlexCreateClosureIndex()
|
| H A D | plexvtu.c | 273 PetscSection section; in DMPlexVTKWriteAll_VTU() local 280 PetscCall(PetscObjectQuery(link->vec, "section", (PetscObject *)§ion)); in DMPlexVTKWriteAll_VTU() 281 if (!section) PetscCall(DMGetLocalSection(dmX, §ion)); in DMPlexVTKWriteAll_VTU() 282 if (cEnd > cStart) PetscCall(PetscSectionGetDof(section, cStart, &bs)); in DMPlexVTKWriteAll_VTU() 283 PetscCall(PetscSectionGetNumFields(section, &nfields)); in DMPlexVTKWriteAll_VTU() 297 PetscCall(PetscSectionGetFieldDof(section, cStart, field, &fbs)); in DMPlexVTKWriteAll_VTU() 298 PetscCall(PetscSectionGetFieldName(section, field, &fieldname)); in DMPlexVTKWriteAll_VTU() 367 PetscSection section; in DMPlexVTKWriteAll_VTU() local 374 PetscCall(PetscObjectQuery(link->vec, "section", (PetscObject *)§ion)); in DMPlexVTKWriteAll_VTU() 375 if (!section) PetscCall(DMGetLocalSection(dmX, §ion)); in DMPlexVTKWriteAll_VTU() [all …]
|
| H A D | plexpreallocate.c | 10 PetscSection section, sectionGlobal, adjSec, aSec; in DMPlexComputeAnchorAdjacencies() local 14 PetscCall(DMGetLocalSection(dm, §ion)); in DMPlexComputeAnchorAdjacencies() 16 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)section), &adjSec)); in DMPlexComputeAnchorAdjacencies() 17 PetscCall(PetscSectionGetChart(section, &pStart, &pEnd)); in DMPlexComputeAnchorAdjacencies() 96 PetscCall(PetscSectionGetDof(section, qAdj, &qAdjDof)); in DMPlexComputeAnchorAdjacencies() 97 PetscCall(PetscSectionGetConstraintDof(section, qAdj, &qAdjCDof)); in DMPlexComputeAnchorAdjacencies() 130 PetscCall(PetscSectionGetDof(section, qAdj, &qAdjDof)); in DMPlexComputeAnchorAdjacencies() 131 PetscCall(PetscSectionGetConstraintDof(section, qAdj, &qAdjCDof)); in DMPlexComputeAnchorAdjacencies() 245 …PetscSection section, sectionGlobal, leafSectionAdj, rootSectionAdj, sectionAdj, anchorSecti… in DMPlexCreateAdjacencySection_Static() local 258 PetscCall(DMGetLocalSection(dm, §ion)); in DMPlexCreateAdjacencySection_Static() [all …]
|
| /petsc/src/vec/is/utils/ftn-custom/ |
| H A D | zvsectionisf.c | 18 PETSC_EXTERN void petscsectiongetpointsyms_(PetscSection section, PetscInt *numPoints, PetscInt *po… in petscsectiongetpointsyms_() argument 20 …*__ierr = PetscSectionGetPointSyms(section, *numPoints, points, (const PetscInt ***)perms, (const … in petscsectiongetpointsyms_() 22 PETSC_EXTERN void petscsectionrestorepointsyms_(PetscSection section, PetscInt *numPoints, PetscInt… in petscsectionrestorepointsyms_() argument 24 …*__ierr = PetscSectionRestorePointSyms(section, *numPoints, points, (const PetscInt ***)perms, (co… in petscsectionrestorepointsyms_() 26 PETSC_EXTERN void petscsectiongetfieldpointsyms_(PetscSection section, PetscInt *field, PetscInt *n… in petscsectiongetfieldpointsyms_() argument 28 …*__ierr = PetscSectionGetFieldPointSyms(section, *field, *numPoints, points, (const PetscInt ***)p… in petscsectiongetfieldpointsyms_() 30 PETSC_EXTERN void petscsectionrestorefieldpointsyms_(PetscSection section, PetscInt *field, PetscIn… in petscsectionrestorefieldpointsyms_() argument 32 …*__ierr = PetscSectionRestoreFieldPointSyms(section, *field, *numPoints, points, (const PetscInt *… in petscsectionrestorefieldpointsyms_()
|
| /petsc/systems/Apple/OSX/examples/PETSc cocoa example/PETSc cocoa example.xcodeproj/ |
| H A D | project.pbxproj | 9 /* Begin PBXBuildFile section */ 18 /* End PBXBuildFile section */ 20 /* Begin PBXFileReference section */ 36 /* End PBXFileReference section */ 38 /* Begin PBXFrameworksBuildPhase section */ 49 /* End PBXFrameworksBuildPhase section */ 51 /* Begin PBXGroup section */ 113 /* End PBXGroup section */ 115 /* Begin PBXNativeTarget section */ 133 /* End PBXNativeTarget section */ [all …]
|
| /petsc/systems/Apple/iOS/examples/Basic/examples.xcodeproj/ |
| H A D | project.pbxproj | 9 /* Begin PBXBuildFile section */ 23 /* End PBXBuildFile section */ 25 /* Begin PBXFileReference section */ 45 /* End PBXFileReference section */ 47 /* Begin PBXFrameworksBuildPhase section */ 62 /* End PBXFrameworksBuildPhase section */ 64 /* Begin PBXGroup section */ 131 /* End PBXGroup section */ 133 /* Begin PBXNativeTarget section */ 151 /* End PBXNativeTarget section */ [all …]
|
| /petsc/systems/Apple/iOS/examples/testopengl/examples.xcodeproj/ |
| H A D | project.pbxproj | 9 /* Begin PBXBuildFile section */ 23 /* End PBXBuildFile section */ 25 /* Begin PBXFileReference section */ 46 /* End PBXFileReference section */ 48 /* Begin PBXFrameworksBuildPhase section */ 65 /* End PBXFrameworksBuildPhase section */ 67 /* Begin PBXGroup section */ 135 /* End PBXGroup section */ 137 /* Begin PBXNativeTarget section */ 155 /* End PBXNativeTarget section */ [all …]
|
| /petsc/src/snes/utils/libceed/ |
| H A D | dmplexsnesceed.c | 30 PetscSection section; in DMPlexSNESComputeResidualCEED() local 35 PetscCall(DMGetLocalSection(dm, §ion)); in DMPlexSNESComputeResidualCEED() 38 PetscCall(PetscSectionGetChart(section, &pStart, &pEnd)); in DMPlexSNESComputeResidualCEED() 39 PetscCall(PetscSectionGetMaxDof(section, &maxDof)); in DMPlexSNESComputeResidualCEED() 41 …for (p = pStart; p < pEnd; ++p) PetscCall(VecSetValuesSection(locFbc, section, p, zeroes, INSERT_B… in DMPlexSNESComputeResidualCEED()
|
| /petsc/src/vec/vec/utils/ftn-custom/ |
| H A D | zvsectionf90.c | 13 PETSC_EXTERN void vecgetvaluessection_(Vec *v, PetscSection *section, PetscInt *point, F90Array1d *… in vecgetvaluessection_() argument 18 *__ierr = VecGetValuesSection(*v, *section, *point, &fa); in vecgetvaluessection_() 20 *__ierr = PetscSectionGetDof(*section, *point, &len); in vecgetvaluessection_() 25 PETSC_EXTERN void vecrestorevaluessection_(Vec *v, PetscSection *section, PetscInt *point, F90Array… in vecrestorevaluessection_() argument
|