| /petsc/src/dm/dt/fe/interface/ |
| H A D | fegeom.c | 102 (*chunkGeom)->v = PetscSafePointerPlusOffset(geom->v, Nq * dE * cStart); in PetscFEGeomGetChunk() 103 (*chunkGeom)->J = PetscSafePointerPlusOffset(geom->J, Nq * dE * dE * cStart); in PetscFEGeomGetChunk() 104 (*chunkGeom)->invJ = PetscSafePointerPlusOffset(geom->invJ, Nq * dE * dE * cStart); in PetscFEGeomGetChunk() 105 (*chunkGeom)->detJ = PetscSafePointerPlusOffset(geom->detJ, Nq * cStart); in PetscFEGeomGetChunk() 106 (*chunkGeom)->n = PetscSafePointerPlusOffset(geom->n, Nq * dE * cStart); in PetscFEGeomGetChunk() 107 (*chunkGeom)->face = PetscSafePointerPlusOffset(geom->face, cStart); in PetscFEGeomGetChunk() 108 (*chunkGeom)->suppJ[0] = PetscSafePointerPlusOffset(geom->suppJ[0], Nq * dE * dE * cStart); in PetscFEGeomGetChunk() 109 (*chunkGeom)->suppJ[1] = PetscSafePointerPlusOffset(geom->suppJ[1], Nq * dE * dE * cStart); in PetscFEGeomGetChunk() 110 (*chunkGeom)->suppInvJ[0] = PetscSafePointerPlusOffset(geom->suppInvJ[0], Nq * dE * dE * cStart); in PetscFEGeomGetChunk() 111 (*chunkGeom)->suppInvJ[1] = PetscSafePointerPlusOffset(geom->suppInvJ[1], Nq * dE * dE * cStart); in PetscFEGeomGetChunk() [all …]
|
| /petsc/src/mat/impls/aij/mpi/ |
| H A D | mpiaij.h | 196 _aj = PetscSafePointerPlusOffset(ad->j, _ai[i]); \ 197 _aa = PetscSafePointerPlusOffset(ad->a, _ai[i]); \ 218 _aj = PetscSafePointerPlusOffset(ao->j, _ai[i]); \ 219 _aa = PetscSafePointerPlusOffset(ao->a, _ai[i]); \ 246 _aj = PetscSafePointerPlusOffset(ad->j, _ai[i]); \ 247 _aa = PetscSafePointerPlusOffset(ad->a, _ai[i]); \ 252 _pj = PetscSafePointerPlusOffset(p_loc->j, _pi[_row]); \ 253 _pa = PetscSafePointerPlusOffset(p_loc->a, _pi[_row]); \ 263 _aj = PetscSafePointerPlusOffset(ao->j, _ai[i]); \ 264 _aa = PetscSafePointerPlusOffset(ao->a, _ai[i]); \ [all …]
|
| H A D | mpiov.c | 251 …PetscCall(PetscArraycpy(PetscSafePointerPlusOffset(indices_temp, i * (max_lsize + nrecvs)), indice… in MatIncreaseOverlap_MPIAIJ_Receive_Scalable() 269 indices_i = PetscSafePointerPlusOffset(indices_temp, (max_lsize + nrecvs) * i); in MatIncreaseOverlap_MPIAIJ_Receive_Scalable() 311 for (i = 0; i < nidx; i++) rows_data[i] = PetscSafePointerPlusOffset(rows_data_ptr, max_fszs * i); in MatIncreaseOverlap_MPIAIJ_Send_Scalable() 1122 jsendbuf = PetscSafePointerPlusOffset(b->j, b->i[rstarts[rank]]); in MatCreateSubMatrix_MPIAIJ_All() 1174 sendbuf = PetscSafePointerPlusOffset(b->a, b->i[rstarts[rank]]); in MatCreateSubMatrix_MPIAIJ_All() 1449 cworkA = PetscSafePointerPlusOffset(aj, ai[row]); in MatCreateSubMatrices_MPIAIJ_SingleIS_Local() 1450 cworkB = PetscSafePointerPlusOffset(bj, bi[row]); in MatCreateSubMatrices_MPIAIJ_SingleIS_Local() 1453 cols = PetscSafePointerPlusOffset(sbuf_aj_i, ct2); in MatCreateSubMatrices_MPIAIJ_SingleIS_Local() 1504 cols = PetscSafePointerPlusOffset(aj, ai[row - rstart]); in MatCreateSubMatrices_MPIAIJ_SingleIS_Local() 1520 cols = PetscSafePointerPlusOffset(bj, bi[row - rstart]); in MatCreateSubMatrices_MPIAIJ_SingleIS_Local() [all …]
|
| H A D | mpiptap.c | 304 aj = PetscSafePointerPlusOffset(ad->j, ai[i]); in MatPtAPSymbolic_MPIAIJ_MPIAIJ_scalable() 317 aj = PetscSafePointerPlusOffset(ao->j, ai[i]); in MatPtAPSymbolic_MPIAIJ_MPIAIJ_scalable() 603 pj = PetscSafePointerPlusOffset(po->j, po->i[row]); in MatPtAPSymbolicComputeOneRowOfAP_private() 665 pj = PetscSafePointerPlusOffset(po->j, po->i[row]); in MatPtAPNumericComputeOneRowOfAP_private() 666 pa = PetscSafePointerPlusOffset(po->a, po->i[row]); in MatPtAPNumericComputeOneRowOfAP_private() 828 …ap->c_othi[i + 1] - ptap->c_othi[i], PetscSafePointerPlusOffset(c_othj, ptap->c_othi[i]), PetscSaf… in MatPtAPNumeric_MPIAIJ_MPIXAIJ_allatonce() 903 poj = PetscSafePointerPlusOffset(po->j, po->i[ii]); in MatPtAPNumeric_MPIAIJ_MPIXAIJ_allatonce_merged() 904 poa = PetscSafePointerPlusOffset(po->a, po->i[ii]); in MatPtAPNumeric_MPIAIJ_MPIXAIJ_allatonce_merged() 962 …ap->c_othi[i + 1] - ptap->c_othi[i], PetscSafePointerPlusOffset(c_othj, ptap->c_othi[i]), PetscSaf… in MatPtAPNumeric_MPIAIJ_MPIXAIJ_allatonce_merged() 1187 rdj = PetscSafePointerPlusOffset(c_othj, ptap->c_othi[i]); in MatPtAPSymbolic_MPIAIJ_MPIXAIJ_allatonce() [all …]
|
| H A D | mpihashmat.h | 30 …tscCall(MatStashValuesRow_Private(&A->stash, rows[r], n, cols, PetscSafePointerPlusOffset(values, … in MatSetValues_MPI_Hash() 32 …tscCall(MatStashValuesCol_Private(&A->stash, rows[r], n, cols, PetscSafePointerPlusOffset(values, … in MatSetValues_MPI_Hash()
|
| /petsc/src/vec/is/sf/tests/ |
| H A D | ex5.c | 37 …etscCall(PetscSFBcastBegin(sf, MPIU_INT, PetscSafePointerPlusOffset(rdata, i * ldr), PetscSafePoin… in TestVector() 38 …PetscCall(PetscSFBcastEnd(sf, MPIU_INT, PetscSafePointerPlusOffset(rdata, i * ldr), PetscSafePoint… in TestVector() 56 …tscCall(PetscSFReduceBegin(sf, MPIU_INT, PetscSafePointerPlusOffset(ldata, i * ldl), PetscSafePoin… in TestVector() 57 …PetscCall(PetscSFReduceEnd(sf, MPIU_INT, PetscSafePointerPlusOffset(ldata, i * ldl), PetscSafePoin… in TestVector()
|
| /petsc/src/vec/is/sf/utils/ |
| H A D | sfutils.c | 314 …cSFBcastBegin(embedSF, MPIU_INT, PetscSafePointerPlusOffset(rootSection->atlasDof, -rpStart), Pets… in PetscSFDistributeSection() 315 …tscSFBcastEnd(embedSF, MPIU_INT, PetscSafePointerPlusOffset(rootSection->atlasDof, -rpStart), Pets… in PetscSFDistributeSection() 323 …astBegin(embedSF, MPIU_INT, PetscSafePointerPlusOffset(rootSection->field[f]->atlasDof, -rpStart),… in PetscSFDistributeSection() 324 …BcastEnd(embedSF, MPIU_INT, PetscSafePointerPlusOffset(rootSection->field[f]->atlasDof, -rpStart),… in PetscSFDistributeSection() 334 …cSFBcastBegin(embedSF, MPIU_INT, PetscSafePointerPlusOffset(rootSection->atlasOff, -rpStart), Pets… in PetscSFDistributeSection() 335 …tscSFBcastEnd(embedSF, MPIU_INT, PetscSafePointerPlusOffset(rootSection->atlasOff, -rpStart), Pets… in PetscSFDistributeSection() 417 …cSFBcastBegin(embedSF, MPIU_INT, PetscSafePointerPlusOffset(rootSection->atlasOff, -rpStart), Pets… in PetscSFCreateRemoteOffsets() 418 …tscSFBcastEnd(embedSF, MPIU_INT, PetscSafePointerPlusOffset(rootSection->atlasOff, -rpStart), Pets… in PetscSFCreateRemoteOffsets()
|
| /petsc/src/sys/utils/ |
| H A D | mpimesg.c | 103 s_waits = PetscSafePointerPlusOffset(r_waits, nrecvs); in PetscGatherMessageLengths() 181 s_waits = PetscSafePointerPlusOffset(r_waits, nrecvs); in PetscGatherMessageLengths_Private() 251 s_waits = PetscSafePointerPlusOffset(r_waits, nrecvs); in PetscGatherMessageLengths2()
|
| H A D | segbuffer.c | 153 ptr = PetscSafePointerPlusOffset((char *)contig, s->tailused * unitbytes); in PetscSegBufferExtractTo()
|
| /petsc/src/dm/field/impls/da/ |
| H A D | dmfieldda.c | 267 cB = PetscSafePointerPlusOffset((PetscScalar *)B, nc * nq * c); in DMFieldEvaluateFE_DA() 268 cD = PetscSafePointerPlusOffset((PetscScalar *)D, nc * nq * dim * c); in DMFieldEvaluateFE_DA() 269 cH = PetscSafePointerPlusOffset((PetscScalar *)H, nc * nq * dim * dim * c); in DMFieldEvaluateFE_DA() 271 cB = PetscSafePointerPlusOffset((PetscReal *)B, nc * nq * c); in DMFieldEvaluateFE_DA() 272 cD = PetscSafePointerPlusOffset((PetscReal *)D, nc * nq * dim * c); in DMFieldEvaluateFE_DA() 273 cH = PetscSafePointerPlusOffset((PetscReal *)H, nc * nq * dim * dim * c); in DMFieldEvaluateFE_DA()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexnatural.c | 244 …tBegin(sfMigration, MPIU_INT, PetscSafePointerPlusOffset(oldGlobalSection->atlasOff, -rpStart), Pe… in DMPlexMigrateGlobalToNaturalSF() 245 …astEnd(sfMigration, MPIU_INT, PetscSafePointerPlusOffset(oldGlobalSection->atlasOff, -rpStart), Pe… in DMPlexMigrateGlobalToNaturalSF()
|
| H A D | plexfem.c | 2545 …ntegrate(prob, f, Nr, chunkGeom, &u[offset * totDim], probAux, PetscSafePointerPlusOffset(a, offse… in DMPlexComputeIntegral_Internal() 2560 …x, uOff, uOff_x, &u[totDim * c + foff], NULL, u_x, aOff, NULL, PetscSafePointerPlusOffset(a, totDi… in DMPlexComputeIntegral_Internal() 2822 …chunkSize, chunkGeom, &u[chunk * chunkSize * totDim], probAux, PetscSafePointerPlusOffset(a, chunk… in DMPlexComputeBdIntegral_Internal() 2826 …ld, funcs[field], Nr, chunkGeom, &u[offset * totDim], probAux, PetscSafePointerPlusOffset(a, offse… in DMPlexComputeBdIntegral_Internal() 3896 …PetscScalar *ul = &(*u)[cind * totDim], *ul_t = PetscSafePointerPlusOffset(*u_t, cind * totDim); in DMPlexGetHybridCellFields() 4525 …tegrateResidual(prob, key, Nr, chunkGeom, &u[offset * totDim], PetscSafePointerPlusOffset(u_t, off… in DMPlexComputeResidual_Patch_Internal() 5026 …, chunkGeom, &u[offset * totDim], PetscSafePointerPlusOffset(u_t, offset * totDim), probAux, Petsc… in DMPlexComputeBdResidualSingleByKey() 5336 …r, chunkGeom, &u[offset * totDim], PetscSafePointerPlusOffset(u_t, offset * totDim), dsAux, PetscS… in DMPlexComputeResidualByKey() 5786 …emGeomN, &u[offset * totDimIn], PetscSafePointerPlusOffset(u_t, offset * totDimIn), dsAux[0], Pets… in DMPlexComputeResidualHybridByKey() 5788 …emGeomN, &u[offset * totDimIn], PetscSafePointerPlusOffset(u_t, offset * totDimIn), dsAux[1], Pets… in DMPlexComputeResidualHybridByKey() [all …]
|
| /petsc/src/mat/impls/aij/seq/ |
| H A D | seqhashmat.h | 50 …etscCall(MatSetValues(B, 1, &i, a->dnz[i], PetscSafePointerPlusOffset(cols, start), PetscSafePoint… in MatCopyHashToXAIJ_Seq_Hash()
|
| H A D | matmatmult.c | 289 bjj = PetscSafePointerPlusOffset(bj, bi[brow]); in MatMatMultNumeric_SeqAIJ_SeqAIJ_Sorted() 290 baj = PetscSafePointerPlusOffset(ba, bi[brow]); in MatMatMultNumeric_SeqAIJ_SeqAIJ_Sorted() 296 aj = PetscSafePointerPlusOffset(aj, anzi); in MatMatMultNumeric_SeqAIJ_SeqAIJ_Sorted() 297 aa = PetscSafePointerPlusOffset(aa, anzi); in MatMatMultNumeric_SeqAIJ_SeqAIJ_Sorted() 305 cj = PetscSafePointerPlusOffset(cj, cnzi); in MatMatMultNumeric_SeqAIJ_SeqAIJ_Sorted() 1130 …const PetscInt *acol = PetscSafePointerPlusOffset(aj, ai[i]); /* column indices of nonzero entries… in MatMatMultSymbolic_SeqAIJ_SeqAIJ_Sorted() 1340 acol = PetscSafePointerPlusOffset(aj, ai[i]); in MatMatTransposeMultNumeric_SeqAIJ_SeqAIJ() 1341 aval = PetscSafePointerPlusOffset(aa, ai[i]); in MatMatTransposeMultNumeric_SeqAIJ_SeqAIJ() 1343 ccol = PetscSafePointerPlusOffset(cj, ci[i]); in MatMatTransposeMultNumeric_SeqAIJ_SeqAIJ() 1532 aj = PetscSafePointerPlusOffset(a->j, a->i[i]); in MatMatMultNumericAdd_SeqAIJ_SeqDense() [all …]
|
| /petsc/src/mat/impls/baij/mpi/ |
| H A D | baijov.c | 957 cworkA = PetscSafePointerPlusOffset(a_j, a_i[row]); 958 cworkB = PetscSafePointerPlusOffset(b_j, b_i[row]); 1005 …for (PetscInt i = 1; i < ismax; i++) lens[i] = PetscSafePointerPlusOffset(lens[i - 1], nrow[i - 1]… 1028 cworkB = PetscSafePointerPlusOffset(b_j, b_i[row]); 1262 cworkB = PetscSafePointerPlusOffset(b_j, b_i[row]); 1263 vworkA = PetscSafePointerPlusOffset(a_a, a_i[row] * bs2); 1264 vworkB = PetscSafePointerPlusOffset(b_a, b_i[row] * bs2); 1307 cworkB = PetscSafePointerPlusOffset(b_j, b_i[row]); 1310 vworkB = PetscSafePointerPlusOffset(b_a, b_i[row] * bs2); 1326 if (!ijonly) mat_a = PetscSafePointerPlusOffset(imat_a, mat_i * bs2); [all …]
|
| /petsc/src/mat/impls/preallocator/ |
| H A D | matpreallocator.c | 185 PetscCall(PetscSortInt(end - start, PetscSafePointerPlusOffset(cols, start))); in MatPreallocatorPreallocate_Preallocator() 186 …PetscCall(MatSetValuesBlocked(A, 1, &grow, end - start, PetscSafePointerPlusOffset(cols, start), z… in MatPreallocatorPreallocate_Preallocator()
|
| /petsc/src/mat/utils/ |
| H A D | freespace.c | 35 space = PetscSafePointerPlusOffset(space, (*head)->local_used); in PetscFreeSpaceContiguous()
|
| /petsc/src/mat/impls/sbaij/mpi/ |
| H A D | mmsbaij.c | 157 …PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, nt - bs * mbs, PetscSafePointerPlusOffset(ptr,… in MatSetUpMultiply_MPISBAIJ() 161 …PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, nt - bs * mbs, PetscSafePointerPlusOffset(ptr,… in MatSetUpMultiply_MPISBAIJ()
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex8.c | 634 PetscReal *v0 = PetscSafePointerPlusOffset(user.v0, c * dim); in main() 635 PetscReal *J = PetscSafePointerPlusOffset(user.J, c * dim * dim); in main() 636 PetscReal *invJ = PetscSafePointerPlusOffset(user.invJ, c * dim * dim); in main() 638 PetscReal *centroid = PetscSafePointerPlusOffset(user.centroid, c * dim); in main() 639 PetscReal *normal = PetscSafePointerPlusOffset(user.normal, c * dim); in main()
|
| /petsc/src/mat/impls/sell/seq/ |
| H A D | sell.h | 160 …ew_val + a->sliidx[row / a->sliceheight + 1] + a->sliceheight, PetscSafePointerPlusOffset(a->val, … 161 …colidx + a->sliidx[row / a->sliceheight + 1] + a->sliceheight, PetscSafePointerPlusOffset(a->colid…
|
| /petsc/src/vec/vec/utils/ |
| H A D | projection.c | 509 y = PetscSafePointerPlusOffset(y, -rstart); in VecISAXPY() 515 y = PetscSafePointerPlusOffset(y, rstart); in VecISAXPY() 586 y = PetscSafePointerPlusOffset(y, -rstart); in VecISCopy() 592 y = PetscSafePointerPlusOffset(y, rstart); in VecISCopy()
|
| /petsc/src/mat/graphops/coarsen/impls/hem/ |
| H A D | hem.c | 559 aj = PetscSafePointerPlusOffset(matA->j, ii[lid]); in MatCoarsenApply_HEM_private() 560 ap = PetscSafePointerPlusOffset(matA->a, ii[lid]); in MatCoarsenApply_HEM_private() 631 aj = PetscSafePointerPlusOffset(matA->j, ii[lid]); in MatCoarsenApply_HEM_private() 632 ap = PetscSafePointerPlusOffset(matA->a, ii[lid]); in MatCoarsenApply_HEM_private() 995 aj = PetscSafePointerPlusOffset(matA->j, ii[lid]); in MatCoarsenApply_HEM_private() 996 ap = PetscSafePointerPlusOffset(matA->a, ii[lid]); in MatCoarsenApply_HEM_private()
|
| /petsc/src/vec/is/sf/interface/ |
| H A D | sf.c | 1299 …PetscCall(PetscSortIntWithArray(indegree[i], PetscSafePointerPlusOffset(inranks, inoffset[i]), tmp… in PetscSFGetMultiSF() 1372 leafdata = PetscSafePointerPlusOffset(leafmem, -minleaf); in PetscSFCreateEmbeddedRootSF() 2093 …PetscCall(PetscSFBcastBegin(sfB, MPIU_SF_NODE, remotePointsA, PetscSafePointerPlusOffset(leafdataB… in PetscSFCompose() 2094 …PetscCall(PetscSFBcastEnd(sfB, MPIU_SF_NODE, remotePointsA, PetscSafePointerPlusOffset(leafdataB, … in PetscSFCompose() 2212 …PetscCall(PetscSFReduceBegin(sfB, MPIU_SF_NODE, PetscSafePointerPlusOffset(reorderedRemotePointsA,… in PetscSFComposeInverse() 2213 …PetscCall(PetscSFReduceEnd(sfB, MPIU_SF_NODE, PetscSafePointerPlusOffset(reorderedRemotePointsA, -… in PetscSFComposeInverse() 2567 PetscInt *ilocal_l = PetscSafePointerPlusOffset(ilocal_new, leafArrayOffsets[s]); in PetscSFConcatenate() 2589 … PetscSFNode *tmp_leafdata = PetscSafePointerPlusOffset(iremote_new, leafArrayOffsets[s]); in PetscSFConcatenate()
|
| /petsc/src/sys/classes/viewer/interface/ |
| H A D | viewreg.c | 375 this_viewer = PetscSafePointerPlusOffset(viewer, n); in PetscOptionsCreateViewers_Internal() 377 this_viewer_format = PetscSafePointerPlusOffset(format, n); in PetscOptionsCreateViewers_Internal()
|
| /petsc/src/vec/is/sf/impls/basic/neighbor/ |
| H A D | sfneighbor.c | 72 sources = PetscSafePointerPlusOffset(rootranks, ndrootranks); in PetscSFGetDistComm_Neighbor() 73 destinations = PetscSafePointerPlusOffset(leafranks, ndleafranks); in PetscSFGetDistComm_Neighbor()
|