Home
last modified time | relevance | path

Searched refs:PetscIntCast (Results 1 – 25 of 42) sorted by relevance

12

/petsc/src/mat/impls/fft/fftw/
H A Dfftw.c524 PetscCall(PetscIntCast(local_n0, &n1)); in MatCreateVecsFFTW_FFTW()
525 PetscCall(PetscIntCast(fft->N, &N1)); in MatCreateVecsFFTW_FFTW()
533 PetscCall(PetscIntCast(local_n1, &n1)); in MatCreateVecsFFTW_FFTW()
534 PetscCall(PetscIntCast(fft->N, &N1)); in MatCreateVecsFFTW_FFTW()
543 PetscCall(PetscIntCast(local_n1, &n1)); in MatCreateVecsFFTW_FFTW()
544 PetscCall(PetscIntCast(fft->N, &N1)); in MatCreateVecsFFTW_FFTW()
555 PetscCall(PetscIntCast(2 * dim[0] * (dim[1] / 2 + 1), &N1)); in MatCreateVecsFFTW_FFTW()
556 PetscCall(PetscIntCast(2 * local_n0 * (dim[1] / 2 + 1), &n1)); in MatCreateVecsFFTW_FFTW()
607 PetscCall(PetscIntCast(2 * dim[0] * dim[1] * (dim[2] / 2 + 1), &N1)); in MatCreateVecsFFTW_FFTW()
608 PetscCall(PetscIntCast(2 * local_n0 * dim[1] * (dim[2] / 2 + 1), &n1)); in MatCreateVecsFFTW_FFTW()
[all …]
/petsc/src/mat/impls/aij/seq/bas/
H A Dspbas_cholesky.h112 … PetscCall(PetscIntCast(result->icols[i] - result->alloc_icol + result->row_nnz[i], n_alloc_used)); in spbas_cholesky_garbage_collect()
116 PetscCall(PetscIntCast(result->icols[i] - result->alloc_icol, &i_here)); in spbas_cholesky_garbage_collect()
135 … PetscCall(PetscIntCast(result->icols[i] - result->alloc_icol + result->row_nnz[i], n_alloc_used)); in spbas_cholesky_garbage_collect()
139 PetscCall(PetscIntCast(result->icols[i] - result->alloc_icol, &i_here)); in spbas_cholesky_garbage_collect()
194 … PetscCall(PetscIntCast(result->icols[i] - result->alloc_icol + result->row_nnz[i], n_alloc_used)); in spbas_cholesky_garbage_collect()
198 PetscCall(PetscIntCast(result->icols[i] - result->alloc_icol, &i_here)); in spbas_cholesky_garbage_collect()
/petsc/src/sys/objects/
H A Dgarbage.c128 PetscCallAbort(PETSC_COMM_SELF, PetscIntCast(seta[0], &lena)); in PetscGarbageKeySortedIntersect()
129 PetscCallAbort(PETSC_COMM_SELF, PetscIntCast(setb[0], &lenb)); in PetscGarbageKeySortedIntersect()
164 PetscCall(PetscIntCast(recvset[0], entries)); in GarbageKeyAllReduceIntersect_Private()
/petsc/src/ts/interface/
H A Dtshistory.c17 PetscCall(PetscIntCast(tsh->n, n)); in TSHistoryGetNumSteps()
114 if (n) PetscCall(PetscIntCast(tsh->n, n)); in TSHistoryGetHistory()
/petsc/src/dm/impls/plex/
H A Dplexgmsh.c252 PetscCall(PetscIntCast(count, &icount)); in GmshRead()
263 PetscCall(PetscIntCast(count, &icount)); in GmshReadString()
683 PetscCall(PetscIntCast(lnum, &num)); in GmshReadEntities_v40()
693 PetscCall(PetscIntCast(lnum, &num)); in GmshReadEntities_v40()
724 PetscCall(PetscIntCast(numTotalNodes, &mesh->numNodes)); in GmshReadNodes_v40()
736 PetscCall(PetscIntCast(numNodes * nbytes, &icnt)); in GmshReadNodes_v40()
793 PetscCall(PetscIntCast(numTotalElements, &mesh->numElems)); in GmshReadElements_v40()
809 PetscCall(PetscIntCast((1 + numNodes) * numElements, &icnt)); in GmshReadElements_v40()
948 PetscCall(PetscIntCast(numTags, &entity->numTags)); in GmshReadEntities_v41()
987 PetscCall(PetscIntCast(numNodes, &mesh->numNodes)); in GmshReadNodes_v41()
[all …]
H A Dplexsfc.c248 PetscCall(PetscIntCast(num_faces, &inum_faces)); in DMPlexCreateBoxMesh_Tensor_SFC_Periodicity_Private()
1132 PetscCall(PetscIntCast(count, &isize)); in DMPeriodicCoordinateSetUp_Internal()
1135 PetscCall(PetscIntCast(count * dim, &vsize)); in DMPeriodicCoordinateSetUp_Internal()
/petsc/src/sys/utils/
H A Dsortd.c104 PetscCall(PetscIntCast(n, &N)); in PetscSortReal()
217 PetscCall(PetscIntCast(n, &hi)); in PetscFindReal()
H A Dsorti.c316 PetscCall(PetscIntCast(n, &N)); in PetscSortInt()
546 PetscCall(PetscIntCast(n, &hi)); in PetscFindInt()
671 PetscCall(PetscIntCast(key == X[lo] ? lo : -(lo + (MPIU_Count)(key > X[lo]) + 1), loc)); in PetscFindMPIInt()
/petsc/src/vec/is/sf/interface/
H A Dsftype.c205 else PetscCall(PetscIntCast(acounts[0], n)); // Yet to support real big count values in MPIPetsc_Type_compare_contig()
211 else PetscCall(PetscIntCast(acounts[0], n)); // Yet to support real big count values in MPIPetsc_Type_compare_contig()
/petsc/src/mat/utils/
H A Dgcreate.c645 PetscCall(PetscIntCast(ncoo, &ncoo_i)); in MatSetPreallocationCOO_Basic()
773 PetscCall(PetscIntCast(ncoo, &ncoo_i)); in MatSetPreallocationCOOLocal()
777 PetscCall(PetscIntCast(ncoo, &ncoo_i)); in MatSetPreallocationCOOLocal()
H A Dmatstash.c234 PetscCall(PetscIntCast(cnewnmax, &newnmax)); in MatStashExpand_Private()
891 PetscCall(PetscIntCast(i - rowstart, &stash->sendhdr[sendno].count)); in MatStashScatterBegin_BTS()
/petsc/src/vec/vec/utils/
H A Dvecio.c88 PetscCall(PetscIntCast(rows64, &rows)); in VecLoad_Binary()
/petsc/src/vec/is/ao/impls/mapping/
H A Daomapping.c270 PetscCall(PetscIntCast(N, &aomap->N)); in AOCreateMapping()
/petsc/src/vec/is/utils/hdf5/
H A Dhdf5io.c180 PetscCall(PetscIntCast(bs * ctx->dims[ctx->lenInd], &N)); in PetscViewerHDF5ReadSizes_Private()
/petsc/src/sys/classes/bag/
H A Dbag.c258 PetscCall(PetscIntCast(mdefault, &odefault)); in PetscBagRegisterInt64()
896 PetscCall(PetscIntCast(totalsize, &(*bag)->bagsize)); in PetscBagCreate()
/petsc/src/vec/is/section/interface/
H A Dsection.c1317 PetscCall(PetscIntCast(offset, &s->atlasOff[q])); in PetscSectionSetUp()
1323 PetscCall(PetscIntCast(foff, &sf->atlasOff[q])); in PetscSectionSetUp()
1335 PetscCall(PetscIntCast(offset, &sf->atlasOff[q])); in PetscSectionSetUp()
1417 PetscCall(PetscIntCast(n, size)); in PetscSectionGetStorageSize()
1447 PetscCall(PetscIntCast(n, size)); in PetscSectionGetConstrainedStorageSize()
/petsc/src/vec/is/utils/
H A Dkdtree.c155 PetscCall(PetscIntCast(end - start, &leaf->count)); in PetscKDTreeBuildStemAndLeaves()
/petsc/src/vec/vec/interface/
H A Dvector.c202 PetscCall(PetscIntCast(ncoo, &ncoo_i)); in VecSetPreallocationCOO()
248 PetscCall(PetscIntCast(ncoo, &ncoo_i)); in VecSetPreallocationCOOLocal()
/petsc/src/sys/fileio/
H A Dsysio.c335 …if (count) PetscCall(PetscIntCast(num, count)); /* TODO: This is most likely wrong for PETSC_BIT_L… in PetscBinaryRead()
/petsc/src/vec/vec/impls/mpi/
H A Dpdvec.c1000 PetscCall(PetscIntCast(p - k, &nentries[nsend])); in VecSetPreallocationCOO_MPI()
1039 PetscCall(PetscIntCast(offsets[k] + q, &iremote[p].index)); in VecSetPreallocationCOO_MPI()
/petsc/src/sys/logging/handler/impls/default/
H A Dlogdefault.c431 PetscCall(PetscIntCast(obj->id, &objid)); in PetscLogHandlerObjectCreate_Default()
483 PetscCall(PetscIntCast(obj->id - 1, &objid)); in PetscLogHandlerObjectDestroy_Default()
873 PetscCall(PetscIntCast(obj->id - 1, &objid)); in PetscLogHandlerLogObjectState_Default()
/petsc/src/dm/impls/plex/exodusii/
H A Dplexexodusii2.c1463 PetscCall(PetscIntCast(block.num_entry, &csSize[set])); // This is an int64_t in VecViewPlex_ExodusII_Zonal_Internal()
1534 PetscCall(PetscIntCast(block.num_entry, &csSize[set])); // This is an int64_t in VecLoadPlex_ExodusII_Zonal_Internal()
/petsc/src/ksp/ksp/interface/
H A Ditfunc.c2513 if (na) PetscCall(PetscIntCast(ksp->res_hist_len, na)); in KSPGetResidualHistory()
2588 if (na) PetscCall(PetscIntCast(ksp->err_hist_len, na)); in KSPGetErrorHistory()
/petsc/src/vec/is/sf/impls/basic/
H A Dsfpack.c661 PetscCall(PetscIntCast(nbyte, &link->bs)); in PetscSFLinkSetUp_Host()
665 PetscCall(PetscIntCast(nbyte / sizeof(int), &nInt)); in PetscSFLinkSetUp_Host()
/petsc/src/ksp/pc/impls/mpi/
H A Dpcmpi.c345 PetscCall(PetscIntCast(nz, &petsc_nz)); in PCMPIUpdateMatValues()

12