Lines Matching refs:s
7 static PetscErrorCode PetscSectionView_HDF5_SingleField(PetscSection s, PetscViewer viewer) in PetscSectionView_HDF5_SingleField() argument
16 PetscCall(PetscObjectGetComm((PetscObject)s, &comm)); in PetscSectionView_HDF5_SingleField()
17 PetscCall(PetscSectionGetChart(s, &pStart, &pEnd)); in PetscSectionView_HDF5_SingleField()
18 hasConstraints = (s->bc) ? PETSC_TRUE : PETSC_FALSE; in PetscSectionView_HDF5_SingleField()
21 PetscCall(PetscSectionGetDof(s, p, &dof)); in PetscSectionView_HDF5_SingleField()
24 PetscCall(PetscSectionGetConstraintDof(s, p, &cdof)); in PetscSectionView_HDF5_SingleField()
38 PetscCall(PetscSectionGetDof(s, p, &dof)); in PetscSectionView_HDF5_SingleField()
41 PetscCall(PetscSectionGetOffset(s, p, &offs[n])); in PetscSectionView_HDF5_SingleField()
45 PetscCall(PetscSectionGetConstraintDof(s, p, &cdof)); in PetscSectionView_HDF5_SingleField()
46 PetscCall(PetscSectionGetConstraintIndices(s, p, &cpinds)); in PetscSectionView_HDF5_SingleField()
60 PetscCall(PetscSectionGetIncludesConstraints(s, &includesConstraints)); in PetscSectionView_HDF5_SingleField()
89 PetscErrorCode PetscSectionView_HDF5_Internal(PetscSection s, PetscViewer viewer) in PetscSectionView_HDF5_Internal() argument
95 PetscCall(PetscSectionGetNumFields(s, &numFields)); in PetscSectionView_HDF5_Internal()
97 PetscCall(PetscSectionView_HDF5_SingleField(s, viewer)); in PetscSectionView_HDF5_Internal()
105 PetscCall(PetscSectionGetFieldName(s, f, &fieldName)); in PetscSectionView_HDF5_Internal()
107 PetscCall(PetscSectionGetFieldComponents(s, f, &fieldComponents)); in PetscSectionView_HDF5_Internal()
115 PetscCall(PetscSectionGetComponentName(s, f, c, &componentName)); in PetscSectionView_HDF5_Internal()
119 PetscCall(PetscSectionView_HDF5_SingleField(s->field[f], viewer)); in PetscSectionView_HDF5_Internal()
126 static PetscErrorCode PetscSectionLoad_HDF5_SingleField_SetConstraintIndices(PetscSection s, IS cin… in PetscSectionLoad_HDF5_SingleField_SetConstraintIndices() argument
138 PetscCall(PetscObjectGetComm((PetscObject)s, &comm)); in PetscSectionLoad_HDF5_SingleField_SetConstraintIndices()
139 PetscCall(PetscSectionGetChart(s, &pStart, &pEnd)); in PetscSectionLoad_HDF5_SingleField_SetConstraintIndices()
145 PetscCall(PetscSectionGetConstraintDof(s, p, &cdof)); in PetscSectionLoad_HDF5_SingleField_SetConstraintIndices()
164 PetscCall(PetscSectionSetUpBC(s)); in PetscSectionLoad_HDF5_SingleField_SetConstraintIndices()
166 PetscCall(PetscSectionGetConstraintDof(s, p, &cdof)); in PetscSectionLoad_HDF5_SingleField_SetConstraintIndices()
167 PetscCall(PetscSectionSetConstraintIndices(s, p, PetscSafePointerPlusOffset(cinds, m))); in PetscSectionLoad_HDF5_SingleField_SetConstraintIndices()
174 static PetscErrorCode PetscSectionLoad_HDF5_SingleField(PetscSection s, PetscViewer viewer) in PetscSectionLoad_HDF5_SingleField() argument
187 PetscCall(PetscObjectGetComm((PetscObject)s, &comm)); in PetscSectionLoad_HDF5_SingleField()
189 PetscCall(PetscSectionSetIncludesConstraints(s, includesConstraints)); in PetscSectionLoad_HDF5_SingleField()
190 PetscCall(PetscSectionGetChart(s, &pStart, &pEnd)); in PetscSectionLoad_HDF5_SingleField()
218 PetscCall(PetscSectionSetDof(s, p, dofs[n])); in PetscSectionLoad_HDF5_SingleField()
219 PetscCall(PetscSectionSetOffset(s, p, offs[n])); in PetscSectionLoad_HDF5_SingleField()
239 …for (p = pStart, n = 0; p < pEnd; ++p, ++n) PetscCall(PetscSectionSetConstraintDof(s, p, cdofs[n])… in PetscSectionLoad_HDF5_SingleField()
256 if (!s->bc) m = 0; in PetscSectionLoad_HDF5_SingleField()
257 else PetscCall(PetscSectionGetStorageSize(s->bc, &m)); in PetscSectionLoad_HDF5_SingleField()
266 PetscCall(PetscSectionLoad_HDF5_SingleField_SetConstraintIndices(s, cindIS, coffIS)); in PetscSectionLoad_HDF5_SingleField()
273 PetscErrorCode PetscSectionLoad_HDF5_Internal(PetscSection s, PetscViewer viewer) in PetscSectionLoad_HDF5_Internal() argument
279 PetscCall(PetscObjectGetComm((PetscObject)s, &comm)); in PetscSectionLoad_HDF5_Internal()
282 if (s->pStart < 0 && s->pEnd < 0) n = PETSC_DECIDE; in PetscSectionLoad_HDF5_Internal()
284 …PetscCheck(s->pStart == 0, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "s->pStart must be 0 (got %"… in PetscSectionLoad_HDF5_Internal()
285 …PetscCheck(s->pEnd >= 0, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "s->pEnd must be >= 0, (got %"… in PetscSectionLoad_HDF5_Internal()
286 n = s->pEnd; in PetscSectionLoad_HDF5_Internal()
288 if (numFields > 0) PetscCall(PetscSectionSetNumFields(s, numFields)); in PetscSectionLoad_HDF5_Internal()
291 PetscCall(PetscSectionSetChart(s, 0, n)); in PetscSectionLoad_HDF5_Internal()
292 PetscCall(PetscSectionLoad_HDF5_SingleField(s, viewer)); in PetscSectionLoad_HDF5_Internal()
301 PetscCall(PetscSectionSetFieldName(s, f, fieldName)); in PetscSectionLoad_HDF5_Internal()
304 PetscCall(PetscSectionSetFieldComponents(s, f, fieldComponents)); in PetscSectionLoad_HDF5_Internal()
312 PetscCall(PetscSectionSetComponentName(s, f, c, componentName)); in PetscSectionLoad_HDF5_Internal()
316 PetscCall(PetscSectionLoad_HDF5_SingleField(s->field[f], viewer)); in PetscSectionLoad_HDF5_Internal()