Searched +full:petsc4py +full:- +full:pip (Results 1 – 16 of 16) sorted by relevance
| /petsc/src/binding/petsc4py/docs/source/ |
| H A D | install.rst | 6 Install from PyPI using **pip** 7 ------------------------------- 9 You can use :program:`pip` to install :mod:`petsc4py` and its dependencies:: 11 $ python -m pip install petsc petsc4py 14 ---------------------------------- 20 $ python -m pip install src/binding/petsc4py 22 The installation of :mod:`petsc4py` supports multiple `PETSC_ARCH 25 $ PETSC_ARCH='arch-0:...:arch-N' python -m pip install src/binding/petsc4py 27 If you are cross-compiling, and the :mod:`numpy` module cannot be loaded on 28 your build host, then before invoking :program:`pip`, set the [all …]
|
| H A D | contributing.rst | 8 New contributions to petsc4py **must** adhere with the coding standards. 9 We use cython-lint_ for Cython and ruff_ for Python source codes. 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 22 Python code can be auto-formatted using:: 24 $ make ruff-lint RUFF_OPTS='format' -C src/binding/petsc4py 26 New contributions to petsc4py must be tested. 27 Tests are located in the :file:`src/binding/petsc4py/test` folder. 29 pre-existing file according to the [all …]
|
| /petsc/src/binding/petsc4py/ |
| H A D | makefile | 1 -include ../../../petscdir.mk 4 default: opt=--inplace 6 package = petsc4py 12 # ---- 21 test-%: 22 ${MPIEXEC} -n $* ${VALGRIND} ${PYTHON} ${PWD}/test/runtests.py ${opt} 28 -${RM} src/${package}/${MODULE}.c 29 -${RM} src/${package}/${MODULE}.h 30 -${RM} src/${package}/${MODULE}_api.h 34 ${PYTHON} setup.py clean --all [all …]
|
| H A D | DESCRIPTION.rst | 7 ------- 13 $ pip install mpi4py 17 $ pip install numpy 21 $ pip install petsc petsc4py 25 --------- 33 Advances in Water Resources, 34(9):1124-1139, 2011. 43 *PETSc/TAO Users Manual*, ANL-21/39 - Revision 3.24, 2025.
|
| H A D | CHANGES.rst | 12 - Update to PETSc 3.24 release. 14 - Support (opt-in via setting the environment variable 21 - Update to PETSc 3.23 release. 26 - Update to PETSc 3.22 release. 31 - Update to PETSc 3.21 release. 36 - Update to PETSc 3.20 release. 37 - Update Cython build, require ``Cython >= 3.0.0``. 42 - Update to PETSc 3.19 release. 43 - Expose ``PetscDevice`` and ``PetscDeviceContext`` API as 49 - Update to PETSc 3.18 release. [all …]
|
| /petsc/config/BuildSystem/config/packages/ |
| H A D | petsc4py.py | 17 …help.addArgument('PETSc', '-with-petsc4py=<bool>', nargs.ArgBool(None, False, 'Build PETSc Python … 18 ….addArgument('PETSc', '-with-petsc4py-test-np=<np>',nargs.ArgInt(None, None, min=1, help='Number o… 19 …help.addArgument('PETSc', '-with-numpy-include=<dir>', nargs.Arg(None, None, 'Path to numpy header… 24 s = 'petsc4py:\n' 44 return os.path.join('src','binding','petsc4py') 58 archflags = "ARCHFLAGS=\'-arch arm64\' " 59 elif self.types.sizes['void-p'] == 4: 60 archflags = "ARCHFLAGS=\'-arch i386\' " 62 archflags = "ARCHFLAGS=\'-arch x86_64\' " 65 # if DESTDIR is non-empty, then PETSc has been installed into staging dir [all …]
|
| H A D | FEniCS-DOLFINx.py | 24 self.petsc4py = framework.require('config.packages.petsc4py',self) 26 self.basix = framework.require('config.packages.fenics-basix',self) 38 …self.deps = [self.mpi4py,self.petsc4py,self.boost,self.basix,self.ffcx,self.hdf5,self… 44 args.append('-DDOLFINX_ENABLE_PETSC=ON') 45 args.append('-DDOLFINX_ENABLE_SLEPC=ON') 46 args.append('-DHDF5_DIR=' + self.hdf5.include[0]) 48 args.append('-DDOLFINX_ENABLE_PARMETIS=ON') 50 args.append('-DDOLFINX_ENABLE_SCOTCH=ON') 52 …ror('PETSc must provide either ParMETIS or PTSCOTCH, suggest --download-parmetis --download-metis') 60 …raise RuntimeError("FEniCS-DOLFINx requires HDF5 with C++ bindings, ensure you use --with-hdf5-cxx… [all …]
|
| /petsc/ |
| H A D | .gitlab-ci.yml | 2 # stage-1 take only a few minutes; they do not run the full test suite or external packages. 4 # stage-2 runs on MCS systems and may take 10 to 15 minutes. They run the full test suite but with … 6 # stage-3 runs on MCS systems and may take an hour or more. They run the full test suite and heavil… 8 # The stage-(n) tests are only started if all of the stage-(n-1) tests run without error 13 - stage-1 14 - stage-2 15 - stage-3 16 - stage-4 19 GIT_CLEAN_FLAGS: -ffdxq 21 BASE_EXTRA_OPTIONS: -nox -nox_warning -malloc_dump [all …]
|
| H A D | setup.py | 11 all message-passing communication. 15 To install the ``PETSc`` and ``petsc4py`` packages use:: 17 $ python -m pip install numpy 18 $ python -m pip install petsc petsc4py 22 You can also install the in-development versions with:: 24 $ python -m pip install cython numpy 25 … $ python -m pip install --no-deps https://gitlab.com/petsc/petsc/-/archive/main/petsc-main.tar.gz 29 …t use the ``PETSc`` ``./configure`` options ``--with-cc``, ``--with-cxx``, ``--with-fc``, or ``--w… 50 # Contact: petsc-maint@mcs.anl.gov 65 # Contact: petsc-maint@mcs.anl.gov [all …]
|
| H A D | makefile | 5 # * make help - useful messages on functionality 6 # * make all - compile the PETSc libraries and utilities, run after ./configure 7 # * make check - runs a quick test that the libraries are built correctly and PETSc applications … 9 # * make install - for use with ./configure is run with the --prefix=directory option 10 # * make test - runs a comprehensive test suite (requires gnumake) 11 # * make docs - build the entire PETSc website of documentation (locally) 15 # gmakefile - manages the compiling PETSc in parallel 16 # gmakefile.test - manages running the comprehensive test suite 32 OMAKE_SELF = $(OMAKE) -f makefile 33 OMAKE_SELF_PRINTDIR = $(OMAKE_PRINTDIR) -f makefile [all …]
|
| /petsc/lib/petsc/bin/maint/ |
| H A D | builddist | 1 #!/bin/bash -ex 5 # Usage: builddist petscrepo [branch/commit] [version-suffix] 9 # when version-suffix="SETVERSION", obtain it from include/petscversion.h 12 # builddist /sandbox/petsc/petsc.clone balay/foo [creates petsc-HASH.tar.gz] 13 # builddist /sandbox/petsc/petsc.clone main ver-suffix [creates petsc-ver-suffix.tar.gz] 14 # builddist /sandbox/petsc/petsc.clone release SETVERSION [creates petsc-3.24.5.tar.gz] 18 # ignore command line options in CI mode - and build tarball from current state setup by CI 19 if [ ! -z "${CI_PIPELINE_ID+x}" ]; then 20 petscrepo=`pwd -P` 24 version=-$3 [all …]
|
| /petsc/doc/install/ |
| H A D | index.md | 12 - Archlinux <https://aur.archlinux.org/packages/petsc> 13 - Conda: <https://anaconda.org/conda-forge/petsc> 14 : `conda install -c conda-forge petsc` 15 - Debian: <https://packages.debian.org/petsc-dev> 16 : `sudo apt install petsc-dev` 17 - E4S: <https://e4s.io/download.html> 18 - Fedora: <https://packages.fedoraproject.org/pkgs/petsc/petsc> 19 : `sudo yum install petsc-mpich-devel` 20 - Homebrew: <https://formulae.brew.sh/formula/petsc> 22 - MacPorts: <https://ports.macports.org/port/petsc> [all …]
|
| /petsc/doc/changes/ |
| H A D | 324.md | 12 - Add `PETSCPYTHONPATH` to the generated `$PETSC_DIR/$PETSC_ARCH/lib/petsc/conf/petscvariables` fil… 13 - Add `PETSCPYTHONPATH` to the generated `$PETSC_DIR/$PETSC_ARCH/lib/pkgconfig/PETSc.pc` file so it… 14 …`PKG_CONFIG_PATH=$PETSC_DIR/$PETSC_ARCH/lib/pkgconfig pkg-config --variable=PETSCPYTHONPATH PETSc.… 15 - Add `EXTRA_OPTIONS_INITIAL` to the test system, which prepends options 20 - Change `make sphinxhtml` in the `doc` directory to be `make docs` 21 - Change `make docs` to put all its artifacts in `${PETSC_ARCH}-doc` instead of `doc` 22 - Add support for `--download-xxx`, `--with-xxx`, and `-with-xxx-dir` for Python packages that inst… 23 - Change `make alletags` to `make etags` 24 - Deactivate Fortran bindings of SuperLU_DIST and ExodusII by default, but they can still be built … 25 - Add `--with-python-exec-from-env=python` to allow providing the Python to be used by mpi4py and p… [all …]
|
| /petsc/src/snes/tutorials/ |
| H A D | ex34.c | 11 To visualize the solution, configure with petsc4py, pip install pyvista, and use 13 -potential_view pyvista -view_pyvista_warp 1. 17 -snes_convergence_estimate -convest_num_refine 2 -convest_monitor -convest_error_view pyvista 21 -snes_vi_monitor_residual pyvista -snes_vi_monitor_active pyvista 25 -snes_vi_monitor -snes_converged_reason -convest_monitor 57 const PetscReal r_0 = par->r_0; in obstacle_ball() 59 const PetscReal psi_0 = PetscSqrtReal(1. - PetscSqr(r_0)); in obstacle_ball() 60 const PetscReal dpsi_0 = -r_0 / psi_0; in obstacle_ball() 64 if (r < r_0) u[0] = PetscSqrtReal(1.0 - PetscSqr(r)); in obstacle_ball() 65 else u[0] = psi_0 + dpsi_0 * (r - r_0); in obstacle_ball() [all …]
|
| /petsc/lib/petsc/conf/ |
| H A D | rules_util.mk | 1 # -*- mode: makefile-gmake -*- 10 -@${PETSC_DIR}/lib/petsc/bin/petscversion 13 -@echo ${MPI_LIB} 16 -@echo ${MPI_INCLUDE} 19 -@echo ${MPIEXEC} 22 -@echo ${CC} 25 -@echo ${FC} 28 -@echo ${CXX} 31 -@echo ${C_SH_LIB_PATH} ${PETSC_TS_LIB} 34 -@echo ${PETSC_CC_INCLUDES} [all …]
|
| /petsc/doc/ |
| H A D | petsc.bib | 3 % bibtool petsc.bib -- expand.macros=on -- print.line.length=100 -- pass.comments=on 17 % LiteralHTML: <a name="nano"><H3><center>Nano-simulations</center></H3> 19 @Misc{ semver-webpage, 25 title = {{D}-stability and {K}aps-{R}entrop-methods}, 30 pages = {229--237}, 41 pages = {93--113}, 55 …title = {Generalized {R}unge--{K}utta methods of order four with stepsize control for sti… 59 pages = {55--68}, 73 …gorithm for Structural Dynamics With Improved Numerical Dissipation: The Generalized-alpha Method}, 77 pages = {371-375}, [all …]
|