Lines Matching refs:gs

1477   PetscSection    gs;  in PetscSectionCreateGlobalSection()  local
1492 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)s), &gs)); in PetscSectionCreateGlobalSection()
1494 if (numFields > 0) PetscCall(PetscSectionSetNumFields(gs, numFields)); in PetscSectionCreateGlobalSection()
1496 PetscCall(PetscSectionSetChart(gs, pStart, pEnd)); in PetscSectionCreateGlobalSection()
1497 gs->includesConstraints = includeConstraints; in PetscSectionCreateGlobalSection()
1511 PetscCall(PetscSectionSetDof(gs, p, dof)); in PetscSectionCreateGlobalSection()
1513 if (!includeConstraints && cdof > 0) PetscCall(PetscSectionSetConstraintDof(gs, p, cdof)); in PetscSectionCreateGlobalSection()
1516 PetscCall(PetscSectionSetUpBC(gs)); in PetscSectionCreateGlobalSection()
1517gs->bcIndices) PetscCall(PetscArraycpy(gs->bcIndices, s->bcIndices, gs->bc->atlasOff[gs->bc->pEnd … in PetscSectionCreateGlobalSection()
1524 gs->atlasDof[p - pStart] = recv[p]; in PetscSectionCreateGlobalSection()
1536 gs->atlasOff[q] = off; in PetscSectionCreateGlobalSection()
1537 off += gs->atlasDof[q] > 0 ? gs->atlasDof[q] - cdof : 0; in PetscSectionCreateGlobalSection()
1544 gs->atlasOff[p - pStart] += globalOff; in PetscSectionCreateGlobalSection()
1545 if (neg) neg[p] = -(gs->atlasOff[p - pStart] + 1); in PetscSectionCreateGlobalSection()
1554 if (recv[p] < 0) gs->atlasOff[p - pStart] = recv[p]; in PetscSectionCreateGlobalSection()
1562 gs->field[f]->includesConstraints = includeConstraints; in PetscSectionCreateGlobalSection()
1564 PetscCall(PetscSectionSetFieldComponents(gs, f, numComponents)); in PetscSectionCreateGlobalSection()
1566 PetscCall(PetscSectionSetFieldName(gs, f, name)); in PetscSectionCreateGlobalSection()
1569 PetscCall(PetscSectionGetOffset(gs, p, &off)); in PetscSectionCreateGlobalSection()
1572 … if (!includeConstraints && cdof > 0) PetscCall(PetscSectionSetFieldConstraintDof(gs, p, f, cdof)); in PetscSectionCreateGlobalSection()
1574 PetscCall(PetscSectionSetFieldDof(gs, p, f, off < 0 ? -(dof + 1) : dof)); in PetscSectionCreateGlobalSection()
1575 PetscCall(PetscSectionSetFieldOffset(gs, p, f, foff)); in PetscSectionCreateGlobalSection()
1576 PetscCall(PetscSectionGetFieldConstraintDof(gs, p, f, &cdof)); in PetscSectionCreateGlobalSection()
1581 PetscSection gfs = gs->field[f]; in PetscSectionCreateGlobalSection()
1586 gs->setup = PETSC_TRUE; in PetscSectionCreateGlobalSection()
1587 PetscCall(PetscSectionViewFromOptions(gs, NULL, "-global_section_view")); in PetscSectionCreateGlobalSection()
1588 *gsection = gs; in PetscSectionCreateGlobalSection()