Lines Matching refs:point
941 PetscErrorCode PetscSectionGetDof(PetscSection s, PetscInt point, PetscInt *numDof) in PetscSectionGetDof() argument
946 …point >= s->pStart && point < s->pEnd, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Section point %… in PetscSectionGetDof()
947 *numDof = s->atlasDof[point - s->pStart]; in PetscSectionGetDof()
968 PetscErrorCode PetscSectionSetDof(PetscSection s, PetscInt point, PetscInt numDof) in PetscSectionSetDof() argument
972 …point >= s->pStart && point < s->pEnd, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Section point %… in PetscSectionSetDof()
973 s->atlasDof[point - s->pStart] = numDof; in PetscSectionSetDof()
995 PetscErrorCode PetscSectionAddDof(PetscSection s, PetscInt point, PetscInt numDof) in PetscSectionAddDof() argument
999 …point >= s->pStart && point < s->pEnd, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Section point %… in PetscSectionAddDof()
1001 s->atlasDof[point - s->pStart] += numDof; in PetscSectionAddDof()
1023 PetscErrorCode PetscSectionGetFieldDof(PetscSection s, PetscInt point, PetscInt field, PetscInt *nu… in PetscSectionGetFieldDof() argument
1029 PetscCall(PetscSectionGetDof(s->field[field], point, numDof)); in PetscSectionGetFieldDof()
1059 PetscErrorCode PetscSectionSetFieldDof(PetscSection s, PetscInt point, PetscInt field, PetscInt num… in PetscSectionSetFieldDof() argument
1064 PetscCall(PetscSectionSetDof(s->field[field], point, numDof)); in PetscSectionSetFieldDof()
1094 PetscErrorCode PetscSectionAddFieldDof(PetscSection s, PetscInt point, PetscInt field, PetscInt num… in PetscSectionAddFieldDof() argument
1099 PetscCall(PetscSectionAddDof(s->field[field], point, numDof)); in PetscSectionAddFieldDof()
1119 PetscErrorCode PetscSectionGetConstraintDof(PetscSection s, PetscInt point, PetscInt *numDof) in PetscSectionGetConstraintDof() argument
1124 if (s->bc) PetscCall(PetscSectionGetDof(s->bc, point, numDof)); in PetscSectionGetConstraintDof()
1143 PetscErrorCode PetscSectionSetConstraintDof(PetscSection s, PetscInt point, PetscInt numDof) in PetscSectionSetConstraintDof() argument
1149 PetscCall(PetscSectionSetDof(s->bc, point, numDof)); in PetscSectionSetConstraintDof()
1168 PetscErrorCode PetscSectionAddConstraintDof(PetscSection s, PetscInt point, PetscInt numDof) in PetscSectionAddConstraintDof() argument
1174 PetscCall(PetscSectionAddDof(s->bc, point, numDof)); in PetscSectionAddConstraintDof()
1196 PetscErrorCode PetscSectionGetFieldConstraintDof(PetscSection s, PetscInt point, PetscInt field, Pe… in PetscSectionGetFieldConstraintDof() argument
1202 PetscCall(PetscSectionGetConstraintDof(s->field[field], point, numDof)); in PetscSectionGetFieldConstraintDof()
1221 PetscErrorCode PetscSectionSetFieldConstraintDof(PetscSection s, PetscInt point, PetscInt field, Pe… in PetscSectionSetFieldConstraintDof() argument
1226 PetscCall(PetscSectionSetConstraintDof(s->field[field], point, numDof)); in PetscSectionSetFieldConstraintDof()
1245 PetscErrorCode PetscSectionAddFieldConstraintDof(PetscSection s, PetscInt point, PetscInt field, Pe… in PetscSectionAddFieldConstraintDof() argument
1250 PetscCall(PetscSectionAddConstraintDof(s->field[field], point, numDof)); in PetscSectionAddFieldConstraintDof()
1827 PetscErrorCode PetscSectionGetOffset(PetscSection s, PetscInt point, PetscInt *offset) in PetscSectionGetOffset() argument
1832 …point < s->pStart) && !(point >= s->pEnd), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Section poi… in PetscSectionGetOffset()
1833 *offset = s->atlasOff[point - s->pStart]; in PetscSectionGetOffset()
1854 PetscErrorCode PetscSectionSetOffset(PetscSection s, PetscInt point, PetscInt offset) in PetscSectionSetOffset() argument
1858 …point < s->pStart) && !(point >= s->pEnd), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Section poi… in PetscSectionSetOffset()
1859 s->atlasOff[point - s->pStart] = offset; in PetscSectionSetOffset()
1885 PetscErrorCode PetscSectionGetFieldOffset(PetscSection s, PetscInt point, PetscInt field, PetscInt … in PetscSectionGetFieldOffset() argument
1891 PetscCall(PetscSectionGetOffset(s->field[field], point, offset)); in PetscSectionGetFieldOffset()
1913 PetscErrorCode PetscSectionSetFieldOffset(PetscSection s, PetscInt point, PetscInt field, PetscInt … in PetscSectionSetFieldOffset() argument
1918 PetscCall(PetscSectionSetOffset(s->field[field], point, offset)); in PetscSectionSetFieldOffset()
1951 PetscErrorCode PetscSectionGetFieldPointOffset(PetscSection s, PetscInt point, PetscInt field, Pets… in PetscSectionGetFieldPointOffset() argument
1959 PetscCall(PetscSectionGetOffset(s, point, &off)); in PetscSectionGetFieldPointOffset()
1960 PetscCall(PetscSectionGetOffset(s->field[field], point, &foff)); in PetscSectionGetFieldPointOffset()
2839 …ValuesSection_Private(const PetscInt *baseArray, PetscSection s, PetscInt point, const PetscInt **… in VecIntGetValuesSection_Private() argument
2841 const PetscInt p = point - s->pStart; in VecIntGetValuesSection_Private()
2849 …IntSetValuesSection_Private(PetscInt *baseArray, PetscSection s, PetscInt point, const PetscInt va… in VecIntSetValuesSection_Private() argument
2852 const PetscInt p = point - s->pStart; in VecIntSetValuesSection_Private()
2887 PetscCall(PetscSectionGetConstraintIndices(s, point, &cDof)); in VecIntSetValuesSection_Private()
2911 PetscCall(PetscSectionGetConstraintIndices(s, point, &cDof)); in VecIntSetValuesSection_Private()
2976 PetscErrorCode PetscSectionGetConstraintIndices(PetscSection s, PetscInt point, const PetscInt *ind… in PetscSectionGetConstraintIndices() argument
2980 if (s->bc) PetscCall(VecIntGetValuesSection_Private(s->bcIndices, s->bc, point, indices)); in PetscSectionGetConstraintIndices()
2999 PetscErrorCode PetscSectionSetConstraintIndices(PetscSection s, PetscInt point, const PetscInt indi… in PetscSectionSetConstraintIndices() argument
3004 const PetscInt dof = s->atlasDof[point]; in PetscSectionSetConstraintIndices()
3005 const PetscInt cdof = s->bc->atlasDof[point]; in PetscSectionSetConstraintIndices()
3009 …cInt_FMT ", invalid constraint index[%" PetscInt_FMT "]: %" PetscInt_FMT, point, dof, d, indices[d… in PetscSectionSetConstraintIndices()
3010 PetscCall(VecIntSetValuesSection_Private(s->bcIndices, s->bc, point, indices, INSERT_VALUES)); in PetscSectionSetConstraintIndices()
3035 PetscErrorCode PetscSectionGetFieldConstraintIndices(PetscSection s, PetscInt point, PetscInt field… in PetscSectionGetFieldConstraintIndices() argument
3041 PetscCall(PetscSectionGetConstraintIndices(s->field[field], point, indices)); in PetscSectionGetFieldConstraintIndices()
3060 PetscErrorCode PetscSectionSetFieldConstraintIndices(PetscSection s, PetscInt point, PetscInt field… in PetscSectionSetFieldConstraintIndices() argument
3065 PetscCall(PetscSectionSetConstraintIndices(s->field[field], point, indices)); in PetscSectionSetFieldConstraintIndices()