| /petsc/ |
| H A D | .gitignore | 81 src/dm/mesh/tests/unitTests 82 src/dm/mesh/tutorials/*_quadrature.h 83 src/dm/mesh/tutorials/*.vtk 105 src/binding/petsc4py/.eggs 106 src/binding/petsc4py/petsc4py.egg-info 107 src/binding/petsc4py/src/include/petsc4py/petsc4py.PETSc.h 108 src/binding/petsc4py/src/include/petsc4py/petsc4py.PETSc_api.h 109 src/binding/petsc4py/src/libpetsc4py/libpetsc4py.c 110 src/binding/petsc4py/src/libpetsc4py/libpetsc4py.h 111 src/binding/petsc4py/src/petsc4py.PETSc.c [all …]
|
| H A D | gmakefile | 201 $(OBJDIR)/src/%.o : src/%.c | $$(@D)/.DIR 210 $(OBJDIR)/src/%.o : src/%.cxx | $$(@D)/.DIR 250 $(OBJDIR)/src/sys/mpiuni/ftn-src/somempifort.o : $(OBJDIR)/src/sys/mpiuni/ftn-mod/mpiunimod.o 252 $(OBJDIR)/src/sys/ftn-mod/petscsysmod.o : $(if $(MPIUNI_MOD),$(OBJDIR)/src/sys/mpiuni/ftn-mod/mpi… 253 $(OBJDIR)/src/vec/ftn-mod/petscvecmod.o : $(OBJDIR)/src/sys/ftn-mod/petscsysmod.o 254 $(OBJDIR)/src/mat/ftn-mod/petscmatmod.o : $(OBJDIR)/src/vec/ftn-mod/petscvecmod.o 255 $(OBJDIR)/src/dm/ftn-mod/petscdmmod.o : $(OBJDIR)/src/mat/ftn-mod/petscmatmod.o 256 $(OBJDIR)/src/ksp/ftn-mod/petsckspmod.o : $(OBJDIR)/src/dm/ftn-mod/petscdmmod.o 257 $(OBJDIR)/src/snes/ftn-mod/petscsnesmod.o : $(OBJDIR)/src/ksp/ftn-mod/petsckspmod.o 258 $(OBJDIR)/src/ts/ftn-mod/petsctsmod.o : $(OBJDIR)/src/snes/ftn-mod/petscsnesmod.o [all …]
|
| H A D | makefile | 79 …cd src/sys/classes/viewer/impls/socket/mex-scripts && ${OMAKE_SELF} mex-scripts PETSC_ARCH=${PETSC… 102 -@find src -type d -name ftn-auto* | xargs rm -rf 103 -@if [ -n "${PETSC_ARCH}" ] && [ -d ${PETSC_ARCH} ] && [ -d ${PETSC_ARCH}/src ]; then\ 104 find ${PETSC_ARCH}/src -type d -name ftn-auto* | xargs rm -rf ;\ 144 +@cd src/snes/tutorials >/dev/null; ${RUN_TEST} clean-legacy 145 +@cd src/snes/tutorials >/dev/null; ${RUN_TEST} testex19 146 +@if [ ! "${MPI_IS_MPIUNI}" ]; then cd src/snes/tutorials >/dev/null; ${RUN_TEST} testex19_mpi; fi 151 cd src/snes/tutorials >/dev/null; ${RUN_TEST} $${HYPRE_TEST};\ 154 cd src/snes/tutorials >/dev/null; ${RUN_TEST} runex19_cuda;\ 157 cd src/snes/tutorials >/dev/null; ${RUN_TEST} runex19_hip;\ [all …]
|
| /petsc/.gitlab/ |
| H A D | CODEOWNERS | 3 /src/ml/ @rtmills @hsuh 5 /src/tao/ @adener @tmunson @stefanozampini @hsuh @tisaac 6 /src/tao/constrained/impls/ipm/ @abhyshr @hongzhangsun @resundermann @adener @tmunson 8 /src/ts/ @caidao22 @jedbrown @emconsta @stefanozampini @BarrySmith 9 src/ts/event/ @abhyshr @caidao22 @BarrySmith 11 /src/ts/utils/dmplexlandau/ @markadams4 @knepley 13 /src/dm/impls/plex/ @knepley @wence @haplav @tisaac 14 /src/dm/impls/stag/ @psanan @knepley @rtmills 16 /src/*/*/network/ @abhyshr @hongzhangsun @knepley 17 /src/*/*/*/network/ @abhyshr @hongzhangsun @knepley [all …]
|
| /petsc/lib/petsc/bin/maint/ |
| H A D | xclude | 20 petsc-dist/src/binding/petsc4py/build 21 petsc-dist/src/binding/petsc4py/dist 22 petsc-dist/src/binding/petsc4py/src/petsc4py.egg-info 23 petsc-dist/src/binding/petsc4py/.eggs 32 petsc-dist/src/tops 33 petsc-dist/src/java 34 petsc-dist/src/tops/images 35 petsc-dist/src/tops/slides.ppt 36 petsc-dist/src/tops/twopager.ppt 87 petsc-dist/src/da/tests/scripts [all …]
|
| H A D | createpatch | 74 /bin/mv src/binding/petsc4py/src/petsc4py/__init__.py src/binding/petsc4py/src/petsc4py/__init__.py… 75 cat src/binding/petsc4py/src/petsc4py/__init__.py.bak | \ 76 …sed -e "s/__version__ =.*/__version__ = '${newver}'/" > src/binding/petsc4py/src/petsc4py/__init__… 77 /bin/rm -f src/binding/petsc4py/src/petsc4py/__init__.py.bak 86 …el to ${newver}" include/petscversion.h doc/install/download.md src/binding/petsc4py/src/petsc4py/…
|
| /petsc/doc/tutorials/ |
| H A D | index.md | 17 directories throughout the PETSc `src/` tree. 19 - <a href="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/index.html">Linear problems</a> 21 - <a href="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/tutorials/index.html">Nonlinear problems</a> 23 - <a href="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/index.html">Time integration</a> 27 …- <a href="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/leastsquares/tutorials/index.html">Least-squares… 28 …- <a href="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/quadratic/tutorials/index.html">Quadratic</a> (M… 29 …- <a href="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/unconstrained/tutorials/index.html">Unconstraine… 30 …- <a href="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/bound/tutorials/index.html">Bound</a> (Manual: {… 31 …- <a href="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/constrained/tutorials/index.html">Constrained</a… 32 …- <a href="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/complementarity/tutorials/index.html">Complement… [all …]
|
| H A D | handson.md | 19 - <a href="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex50.c.html#line1">Mathematical des… 20 - <a href="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex50.c.html#line21">the source code… 24 - Compile `src/ksp/ksp/tutorials/ex50.c` 27 $ cd petsc/src/ksp/ksp/tutorials 40 ```{literalinclude} /../src/ksp/ksp/tutorials/output/ex50_tut_1.out 53 ```{literalinclude} /../src/ksp/ksp/tutorials/output/ex50_tut_2.out 66 ```{literalinclude} /../src/ksp/ksp/tutorials/output/ex50_tut_3.out 83 - <a href="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex2.c.html#line13">Mathematical descript… 84 - <a href="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex2.c.html#line36">the source code</a> 88 - Compile `src/ts/tutorials/ex2.c` [all …]
|
| H A D | guide_to_examples_by_physics.md | 21 > :2D: `SNES example 5 <PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/tutorials/ex5.c.html>`_ 22 > :3D: `KSP example 45 <PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex45.c.html>`_ 28 > :2D: `SNES example 12 <PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/tutorials/ex12.c.html>`_ 29 > :3D: `SNES example 12 <PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/tutorials/ex12.c.html>`_ 57 :2D: `SNES example 17 <PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/tutorials/ex17.c.html>`_ 58 :3D: `SNES example 17 <PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/tutorials/ex17.c.html>`_ 59 :3D: `SNES example 56 <PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/tutorials/ex56.c.html>`_ 106 > :2D: `TS example 45 <PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex45.c.html>`_ 107 > :3D: `TS example 45 <PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex45.c.html>`_ 125 > :2D: `TS example 46 <PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex46.c.html>`_ [all …]
|
| /petsc/src/binding/petsc4py/ |
| H A D | .gitignore | 15 src/petsc4py/PETSc.c 16 src/petsc4py/PETSc.h 17 src/petsc4py/PETSc_api.h 18 src/petsc4py/PETSc.pyi 19 src/petsc4py/lib/*/PETSc.*.so 20 src/petsc4py.egg-info/
|
| H A D | MANIFEST.in | 6 recursive-include src *.py *.pyx *.px[di] *.h *.c *.i *.cfg 10 exclude src/petsc4py/PETSc.c 11 exclude src/petsc4py/PETSc.h 12 exclude src/petsc4py/PETSc_api.h
|
| /petsc/share/petsc/suppressions/ |
| H A D | ubsan | 62 alignment:src/ksp/ksp/tutorials/network/ex1.c 63 alignment:src/snes/tutorials/network/ex1.c 64 alignment:src/snes/tutorials/network/water/waterfunctions.c 65 alignment:src/snes/tutorials/network/power/power2.c 66 alignment:src/snes/tutorials/network/power/pffunctions.c 67 alignment:src/ts/tutorials/power_grid/stability_9bus/ex9busdmnetwork.c 70 function:src/sys/tests/ex65.c 79 function:src/mpi/* 80 null:src/mpid/ch3/* 81 pointer-overflow:src/mpid/ch3/* [all …]
|
| /petsc/systems/Apple/iOS/bin/ |
| H A D | makedmg | 20 cp ${PETSC_DIR}/src/snes/tutorials/ex19.c tempsource/PETSc-iOS.examples/Basic/Classes 21 cp ${PETSC_DIR}/src/snes/tutorials/ex48.c tempsource/PETSc-iOS.examples/Basic/Classes 22 sed -i "" s?../../../../../../src/snes/tutorials/??g tempsource/PETSc-iOS.examples/Basic/Classes/ip… 23 cp ${PETSC_DIR}/src/snes/tutorials/ex19.c tempsource/PETSc-iOS.examples/testopengl/Classes 24 cp ${PETSC_DIR}/src/snes/tutorials/ex48.c tempsource/PETSc-iOS.examples/testopengl/Classes 25 cp ${PETSC_DIR}/src/sys/classes/draw/tests/ex3.c tempsource/PETSc-iOS.examples/testopengl/Classes 26 cp ${PETSC_DIR}/src/sys/classes/draw/tests/ex4.c tempsource/PETSc-iOS.examples/testopengl/Classes 27 sed -i "" s?../../../../../../src/snes/tutorials/??g tempsource/PETSc-iOS.examples/testopengl/Class… 28 sed -i "" s?../../../../../../src/sys/classes/draw/tests/??g tempsource/PETSc-iOS.examples/testopen…
|
| /petsc/src/binding/petsc4py/docs/source/ |
| H A D | contributing.rst | 12 $ python -m pip install -r src/binding/petsc4py/conf/requirements-lint.txt 16 $ make cython-lint -C src/binding/petsc4py 20 $ make ruff-lint -C src/binding/petsc4py 24 $ make ruff-lint RUFF_OPTS='format' -C src/binding/petsc4py 27 Tests are located in the :file:`src/binding/petsc4py/test` folder. 35 $ cd src/binding/petsc4py 47 $ make html SPHINXOPTS='-W' -C src/binding/petsc4py/docs/source
|
| H A D | install.rst | 20 $ python -m pip install src/binding/petsc4py 25 $ PETSC_ARCH='arch-0:...:arch-N' python -m pip install src/binding/petsc4py 39 $ cd src/binding/petsc4py 44 $ make test -C src/binding/petsc4py 64 $ make test-4 -C src/binding/petsc4py 71 $ python -m pip install -r src/binding/petsc4py/conf/requirements-docs.txt 75 $ cd src/binding/petsc4py/docs/source
|
| /petsc/config/ |
| H A D | install.py | 133 def copyfile(self, src, dst, symlinks = False, copyFunc = shutil.copy2): argument 141 srcname = src 142 dstname = os.path.join(dst, os.path.basename(src)) 158 def fixExamplesMakefile(self, src): argument 161 oldFile = open(src, 'r') 177 newFile = open(src, 'w') 182 def copyConfig(self, src, dst): argument 197 def copyExamples(self, src, dst): argument 200 for root, dirs, files in os.walk(src, topdown=False): 202 self.copies.extend(self.copytree(root, root.replace(src,dst))) [all …]
|
| H A D | gmakegen.py | 148 def relpath(self, root, src): argument 149 return os.path.relpath(os.path.join(root, src), self.pkg_dir) 189 def mkrel(src): argument 190 return self.relpath(nroot, src) 212 for src in srcs[lang]: 213 obj = '$objdir/%s.o' % src 214 …%(lang)s_COMPILE %(src)s\n' % dict(obj=obj, lang=lang.upper(), src=os.path.join(self.pkg_dir,src)))
|
| /petsc/src/ksp/ksp/utils/lmvm/dense/ |
| H A D | cd_utils.c | 18 const PetscScalar *src; in VecCyclicShift() local 27 PetscCall(VecGetArrayReadAndMemType(cyclic_work_vec, &src, &src_memtype)); in VecCyclicShift() 31 PetscCall(VecRestoreArrayReadAndMemType(cyclic_work_vec, &src)); in VecCyclicShift() 36 PetscCall(PetscArraycpy(dest, &src[d], m - d)); in VecCyclicShift() 37 PetscCall(PetscArraycpy(&dest[m - d], src, d)); in VecCyclicShift() 43 PetscCall(PetscDeviceRegisterMemory(src, src_memtype, m * sizeof(*src))); in VecCyclicShift() 44 PetscCall(PetscDeviceArrayCopy(dctx, dest, &src[d], m - d)); in VecCyclicShift() 45 PetscCall(PetscDeviceArrayCopy(dctx, &dest[m - d], src, d)); in VecCyclicShift() 48 PetscCall(VecRestoreArrayReadAndMemType(cyclic_work_vec, &src)); in VecCyclicShift()
|
| /petsc/include/ |
| H A D | petscdevicetypes.h | 382 …e PetscDeviceCopyMode PetscOffloadMaskToDeviceCopyMode(PetscOffloadMask dest, PetscOffloadMask src) in PetscOffloadMaskToDeviceCopyMode() argument 388 …PetscAssertAbort(src != PETSC_OFFLOAD_UNALLOCATED, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Cannot c… in PetscOffloadMaskToDeviceCopyMode() 391 mode = PetscOffloadHost(src) ? PETSC_DEVICE_COPY_HTOD : PETSC_DEVICE_COPY_DTOD; in PetscOffloadMaskToDeviceCopyMode() 393 mode = PetscOffloadHost(src) ? PETSC_DEVICE_COPY_HTOH : PETSC_DEVICE_COPY_DTOH; in PetscOffloadMaskToDeviceCopyMode() 398 …_CONSTEXPR_14 PetscDeviceCopyMode PetscMemTypeToDeviceCopyMode(PetscMemType dest, PetscMemType src) in PetscMemTypeToDeviceCopyMode() argument 401 return PetscMemTypeHost(src) ? PETSC_DEVICE_COPY_HTOH : PETSC_DEVICE_COPY_DTOH; in PetscMemTypeToDeviceCopyMode() 403 return PetscMemTypeDevice(src) ? PETSC_DEVICE_COPY_DTOD : PETSC_DEVICE_COPY_HTOD; in PetscMemTypeToDeviceCopyMode()
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/ |
| H A D | _patch.py | 50 def apply(self, src: str, offset: int) -> tuple[str, int]: 70 new_offset = offset + len(new_src) - len(src) 312 src = old_src = self._make_source() 314 src, idx_delta = delta.apply(src, idx_delta) 316 assert src != old_src, 'Patch did not seem to do anything!' 317 return src
|
| /petsc/systems/Apple/OSX/bin/ |
| H A D | makedmg | 21 cp ${PETSC_DIR}/src/snes/tutorials/ex19.c tempsource/PETSc-OSX.examples/PETSc\ command\ line\ examp… 22 sed -i "" s?../../../../../../src/snes/tutorials/??g tempsource/PETSc-OSX.examples/PETSc\ command\ … 23 cp ${PETSC_DIR}/src/snes/tutorials/ex19.c tempsource/PETSc-OSX.examples/PETSc\ cocoa\ example/PETSc… 24 sed -i "" s?../../../../../../src/snes/tutorials/??g tempsource/PETSc-OSX.examples/PETSc\ cocoa\ ex…
|
| /petsc/src/vec/is/sf/impls/basic/nvshmem/ |
| H A D | sfnvshmem.cu | 327 …mRemotelyAccessible(PetscInt nsrcranks, PetscMPIInt *srcranks, const char *src, PetscInt *srcdisp,… in GetDataFromRemotelyAccessible() argument 332 if (!nvshmem_ptr(src, pe)) { in GetDataFromRemotelyAccessible() 334 …nvshmem_getmem_nbi(dst + (dstdisp[bid] - dstdisp[0]) * unitbytes, src + srcdisp[bid] * unitbytes, … in GetDataFromRemotelyAccessible() 346 char *src, *dst; in PetscSFLinkGetDataBegin_NVSHMEM() local 358 …src = link->rootbuf[PETSCSF_REMOTE][PETSC_MEMTYPE_DEVICE]; /* root buf is the send buf; it i… in PetscSFLinkGetDataBegin_NVSHMEM() 376 src = link->leafbuf[PETSCSF_REMOTE][PETSC_MEMTYPE_DEVICE]; /* leaf buf is the send buf */ in PetscSFLinkGetDataBegin_NVSHMEM() 410 if (nvshmem_ptr(src, srcranks_h[i])) nLocallyAccessible++; in PetscSFLinkGetDataBegin_NVSHMEM() 415 …ssible<<<nsrcranks, 1, 0, link->remoteCommStream>>>(nsrcranks, srcranks_d, src, srcdisp_d, dst, ds… in PetscSFLinkGetDataBegin_NVSHMEM() 423 if (nvshmem_ptr(src, pe)) { in PetscSFLinkGetDataBegin_NVSHMEM() 425 …nvshmemx_getmem_nbi_on_stream(dst + (dstdisp_h[i] - dstdisp_h[0]) * link->unitbytes, src + srcdisp… in PetscSFLinkGetDataBegin_NVSHMEM() [all …]
|
| /petsc/src/sys/objects/ |
| H A D | inherit.c | 220 PetscErrorCode PetscObjectCopyFortranFunctionPointers(PetscObject src, PetscObject dest) in PetscObjectCopyFortranFunctionPointers() argument 225 PetscValidHeader(src, 1); in PetscObjectCopyFortranFunctionPointers() 227 …PetscCheck(src->classid == dest->classid, src->comm, PETSC_ERR_ARG_INCOMP, "Objects must be of the… in PetscObjectCopyFortranFunctionPointers() 230 …PetscCall(PetscMalloc(src->num_fortran_func_pointers * sizeof(PetscFortranCallbackFn *), &dest->fo… in PetscObjectCopyFortranFunctionPointers() 231 …PetscCall(PetscArraycpy(dest->fortran_func_pointers, src->fortran_func_pointers, src->num_fortran_… in PetscObjectCopyFortranFunctionPointers() 233 dest->num_fortran_func_pointers = src->num_fortran_func_pointers; in PetscObjectCopyFortranFunctionPointers() 235 …PetscCall(PetscFortranCallbackGetSizes(src->classid, &numcb[PETSC_FORTRAN_CALLBACK_CLASS], &numcb[… in PetscObjectCopyFortranFunctionPointers() 239 …PetscCall(PetscArraycpy(dest->fortrancallback[cbtype], src->fortrancallback[cbtype], src->num_fort… in PetscObjectCopyFortranFunctionPointers() 240 dest->num_fortrancallback[cbtype] = src->num_fortrancallback[cbtype]; in PetscObjectCopyFortranFunctionPointers()
|
| /petsc/src/ksp/ksp/utils/lmvm/ |
| H A D | lmproducts.c | 259 PETSC_INTERN PetscErrorCode LMProductsCopy(LMProducts src, LMProducts dest) in LMProductsCopy() argument 262 …PetscCheck(dest->m == src->m, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Cannot copy to LMProducts of diffe… in LMProductsCopy() 263 …PetscCheck(dest->m_local == src->m_local, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Cannot copy to LMProdu… in LMProductsCopy() 264 …PetscCheck(dest->block_type == src->block_type, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Cannot copy to L… in LMProductsCopy() 265 dest->k = src->k; in LMProductsCopy() 266 dest->m_local = src->m_local; in LMProductsCopy() 267 if (src->full) PetscCall(MatCopy(src->full, dest->full, DIFFERENT_NONZERO_PATTERN)); in LMProductsCopy() 268 if (src->diagonal_dup) PetscCall(VecCopy(src->diagonal_dup, dest->diagonal_dup)); in LMProductsCopy() 269 if (src->diagonal_global) PetscCall(VecCopy(src->diagonal_global, dest->diagonal_global)); in LMProductsCopy() 270 dest->update_diagonal_global = src->update_diagonal_global; in LMProductsCopy() [all …]
|
| /petsc/src/sys/objects/device/impls/cupm/ |
| H A D | cupmallocator.hpp | 67 …ostAllocator<T, P>::uninitialized_copy(value_type *dest, const value_type *src, size_type n, const… in uninitialized_copy() argument 70 PetscCall(PetscCUPMMemcpyAsync(dest, src, n, cupmMemcpyHostToHost, stream->get_stream(), true)); in uninitialized_copy() 131 …iceAllocator<T, P>::uninitialized_copy(value_type *dest, const value_type *src, size_type n, const… in uninitialized_copy() argument 134 …PetscCall(PetscCUPMMemcpyAsync(dest, src, n, cupmMemcpyDeviceToDevice, stream->get_stream(), true)… in uninitialized_copy()
|