Lines Matching refs:pos
118 PetscErrorCode PetscCDGetHeadPos(const PetscCoarsenData *ail, PetscInt a_idx, PetscCDIntNd **pos) in PetscCDGetHeadPos() argument
122 *pos = ail->array[a_idx]; in PetscCDGetHeadPos()
128 PetscErrorCode PetscCDGetNextPos(const PetscCoarsenData *ail, PetscInt l_idx, PetscCDIntNd **pos) in PetscCDGetNextPos() argument
131 PetscCheck(*pos, PETSC_COMM_SELF, PETSC_ERR_PLIB, "NULL input position."); in PetscCDGetNextPos()
132 *pos = (*pos)->next; in PetscCDGetNextPos()
821 PetscCDIntNd *pos; in MatCoarsenApply_HEM_private() local
844 PetscCall(PetscCDGetHeadPos(ghost_deleted_list, proc, &pos)); in MatCoarsenApply_HEM_private()
845 while (pos) { in MatCoarsenApply_HEM_private()
848 PetscCall(PetscCDIntNdGetID(pos, &ghost_idx)); in MatCoarsenApply_HEM_private()
850 PetscCall(PetscCDGetNextPos(ghost_deleted_list, proc, &pos)); in MatCoarsenApply_HEM_private()
851 PetscCall(PetscCDIntNdGetID(pos, &lid0)); in MatCoarsenApply_HEM_private()
852 PetscCall(PetscCDGetNextPos(ghost_deleted_list, proc, &pos)); in MatCoarsenApply_HEM_private()
909 PetscCall(PetscCDGetHeadPos(agg_llists, lid1, &pos)); in MatCoarsenApply_HEM_private()
910 while (pos) { in MatCoarsenApply_HEM_private()
913 PetscCall(PetscCDIntNdGetID(pos, &gid)); in MatCoarsenApply_HEM_private()
914 PetscCall(PetscCDGetNextPos(agg_llists, lid1, &pos)); in MatCoarsenApply_HEM_private()
1075 PetscCDIntNd *pos; in MatCoarsenApply_HEM_private() local
1077 PetscCall(PetscCDGetHeadPos(agg_llists, lid, &pos)); in MatCoarsenApply_HEM_private()
1078 … PetscCheck(pos, PETSC_COMM_SELF, PETSC_ERR_PLIB, "empty list in singleton: %" PetscInt_FMT, gid); in MatCoarsenApply_HEM_private()
1079 PetscCall(PetscCDIntNdGetID(pos, &gid1)); in MatCoarsenApply_HEM_private()
1104 PetscCDIntNd *pos; in MatCoarsenApply_HEM_private() local
1116 PetscCall(PetscCDGetHeadPos(agg_llists, lid, &pos)); in MatCoarsenApply_HEM_private()
1117 while (pos) { in MatCoarsenApply_HEM_private()
1120 PetscCall(PetscCDIntNdGetID(pos, &gid1)); in MatCoarsenApply_HEM_private()
1121 PetscCall(PetscCDGetNextPos(agg_llists, lid, &pos)); in MatCoarsenApply_HEM_private()
1133 PetscCDIntNd *pos; in MatCoarsenApply_HEM_private() local
1135 PetscCall(PetscCDGetHeadPos(bc_list, 0, &pos)); in MatCoarsenApply_HEM_private()
1136 while (pos) { in MatCoarsenApply_HEM_private()
1139 PetscCall(PetscCDIntNdGetID(pos, &gid1)); in MatCoarsenApply_HEM_private()
1140 PetscCall(PetscCDGetNextPos(bc_list, 0, &pos)); in MatCoarsenApply_HEM_private()
1183 PetscCDIntNd *pos, *pos2; in MatCoarsenView_HEM() local
1192 PetscCall(PetscCDGetHeadPos(coarse->agg_lists, kk, &pos)); in MatCoarsenView_HEM()
1193 …if ((pos2 = pos)) PetscCall(PetscViewerASCIISynchronizedPrintf(viewer, "selected local %" PetscInt… in MatCoarsenView_HEM()
1194 while (pos) { in MatCoarsenView_HEM()
1197 PetscCall(PetscCDIntNdGetID(pos, &gid1)); in MatCoarsenView_HEM()
1198 PetscCall(PetscCDGetNextPos(coarse->agg_lists, kk, &pos)); in MatCoarsenView_HEM()