| /petsc/doc/ |
| H A D | makefile | 1 # Initially generated with sphinx-quickstart 6 SPHINXBUILD ?= sphinx-build 13 …-@echo " make sphinxhtml - build the HTML website inside a created Python virtual environment (v… 16 # @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) 21 @$(SPHINXBUILD) -b linkcheck "$(SOURCEDIR)" "$(LINKCHECKDIR)" $(SPHINXOPTS) 26 …cd .. ; ${RM} -rf petsc-doc-env; python3 -m venv petsc-doc-env ; source petsc-doc-env/bin/activate… 29 -@${RM} -rf _build __pycache__ 32 git clone https://gitlab.com/petsc/images.git -b main-2 --depth=1 images 34 website-deploy: images 35 $(SPHINXBUILD) -b dirhtml "$(SOURCEDIR)" "$(BUILDDIR)" -T -E -j auto $(SPHINXOPTS) [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 …]
|
| H A D | bk2hg.py | 3 # Usage bk2hg local-bk-repo local-hg-repo 6 # -i : create/initialize a new hg repo 8 # bk2hg.py /sandbox/petsc/petsc-dev-bk /sandbox/petsc/petsc-dev-hg 10 # local-bk-repo is a valid bk repository 11 # local-hg-repo is a new location 19 # Get the key for the tip revision - so the bk <-> hg key mappings can be stored 23 fd=os.popen('hg tip -v') 31 if '-i' in sys.argv: 32 sys.argv.remove('-i') 38 print('Usage:', sys.argv[0], '[-i] local-bk-repo local-hg-repo') [all …]
|
| /petsc/systems/Apple/OSX/bin/ |
| H A D | makeall | 3 # This script makes a Apple Mac OS X installer for PETSc, it uses arch-osx-release.py, arch-osx-deb… 11 if [ ! -f include/petscversion.h ]; then 17 export PETSC_ARCH=arch-osx-debug 18 rm -rf arch-osx-debug 19 ./systems/Apple/OSX/bin/arch-osx-debug.py 23 export PETSC_ARCH=arch-osx-release 24 rm -rf arch-osx-release 25 ./systems/Apple/OSX/bin/arch-osx-release.py 36 echo "To use the PETSc.framework in examples either run the installer ${PETSC_DIR}/PETSc-OSX.dmg" 37 echo " or sudo cp -r ${PETSC_DIR}/arch-osx-release/PETSc-OSX /Library/Frameworks" [all …]
|
| H A D | makedmg | 9 echo "Creating ${PETSC_DIR}/PETSc-OSX.dmg from frameworks in ${PETSC_DIR}/arch-osx-release and debu… 12 rm -rf pack.temp.dmg tempsource ${PETSC_DIR}/PETSc-OSX.dmg 14 cp -r ${PETSC_DIR}/arch-osx-release/PETSc-OSX tempsource 15 cp -r ${PETSC_DIR}/arch-osx-debug/PETSc-OSX tempsource 16 cp -r ${PETSC_DIR}/PETSc.docset tempsource 17 cp -r ${PETSC_DIR}/systems/Apple/OSX/examples tempsource/PETSc-OSX.examples 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… [all …]
|
| H A D | makeframework | 10 …/snes/tutorials, with cc -v ex19.c -o ex19 -DPETSC_APPLE_FRAMEWORK=1 -F ${PETSC_DIR}/${PETSC_ARCH}… 11 # 2b) Run the installer or sudo mv -r ${PETSC_DIR}/${PETSC_ARCH}/PETSc-OSX to /Library/Framework… 12 # cc -v ex19.c -o ex19 -DPETSC_APPLE_FRAMEWORK=1 -F /Library/Frameworks/PETSc-OSX/release or… 13 …targets dependence on the PETSc framework located in /Library/Frameworks/PETSc-OSX/release or debug 16 rm -rf ${PETSC_DIR}/${PETSC_ARCH}/PETSc-OSX 18 mkdir ${PETSC_DIR}/${PETSC_ARCH}/PETSc-OSX 19 mkdir ${PETSC_DIR}/${PETSC_ARCH}/PETSc-OSX/$1 20 mkdir ${PETSC_DIR}/${PETSC_ARCH}/PETSc-OSX/$1/PETSc.framework 21 mkdir ${PETSC_DIR}/${PETSC_ARCH}/PETSc-OSX/$1/PETSc.framework/Versions 22 mkdir ${PETSC_DIR}/${PETSC_ARCH}/PETSc-OSX/$1/PETSc.framework/Versions/A [all …]
|
| /petsc/systems/Apple/iOS/bin/ |
| H A D | makedmg | 9 echo "Creating ${PETSC_DIR}/PETSc-iOS.dmg from frameworks in ${PETSC_DIR}/arch-ios-simulator/PETSc-… 12 rm -rf pack.temp.dmg tempsource ${PETSC_DIR}/PETSc-iOS.dmg 14 cp -r ${PETSC_DIR}/arch-ios-simulator/PETSc-iOS tempsource 15 cp -r ${PETSC_DIR}/PETSc.docset tempsource 16 cp -r ${PETSC_DIR}/systems/Apple/iOS/examples tempsource/PETSc-iOS.examples 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 [all …]
|
| H A D | makeall | 3 # This script makes a Apple iOS installer for PETSc, it uses arch-osx-simulator.py, makeframework, … 10 if [ ! -f include/petscversion.h ]; then 16 export PETSC_ARCH=arch-ios-simulator 17 rm -rf ${PETSC_ARCH} 18 ./systems/Apple/iOS/bin/arch-ios-simulator.py 29 echo "To use the PETSc.framework in examples either run the installer ${PETSC_DIR}/PETSc-iOS.dmg" 30 echo " or sudo cp -r ${PETSC_DIR}/PETSc-iOS /Library/Frameworks"
|
| H A D | makeframework | 8 # 2a) either run the installer or sudo -r mv ${PETSC_DIR}/${PETSC_ARCH}/PETSc-iOS /Library/Frame… 9 …ing the targets dependence on the PETSc framework located at /Library/Framework/PETSc-iOS/simulator 12 rm -rf ${PETSC_DIR}/${PETSC_ARCH}/PETSc-iOS 14 mkdir ${PETSC_DIR}/${PETSC_ARCH}/PETSc-iOS 15 mkdir ${PETSC_DIR}/${PETSC_ARCH}/PETSc-iOS/$1 16 mkdir ${PETSC_DIR}/${PETSC_ARCH}/PETSc-iOS/$1/PETSc.framework 17 mkdir ${PETSC_DIR}/${PETSC_ARCH}/PETSc-iOS/$1/PETSc.framework/Versions 18 mkdir ${PETSC_DIR}/${PETSC_ARCH}/PETSc-iOS/$1/PETSc.framework/Versions/A 19 cd ${PETSC_DIR}/${PETSC_ARCH}/PETSc-iOS/$1/PETSc.framework/Versions/ 20 ln -s A Current [all …]
|
| /petsc/src/ts/tutorials/power_grid/stability_9bus/ |
| H A D | ex9bus.c | 2 This example is based on the 9-bus (node) example given in the book Power\n\ 23 I(x,y) - Y*V = 0 34 petscsys.h - base PETSc routines petscvec.h - vectors 35 petscmat.h - matrices 36 petscis.h - index sets petscksp.h - Krylov subspace methods 37 petscviewer.h - viewers petscpc.h - preconditioners 38 petscksp.h - linear solvers 58 const PetscScalar QG[3] = {0.270702180178785, 0.066120127797275, -0.108402221791588}; 62 const PetscScalar Xd[3] = {0.146, 0.8958, 1.3125}; /* d-axis reactance */ 63 const PetscScalar Xdp[3] = {0.0608, 0.1198, 0.1813}; /* d-axis transient reactance */ [all …]
|
| H A D | ex9busadj.c | 2 This example is based on the 9-bus (node) example given in the book Power\n\ 31 const PetscScalar QG[3] = {0.270702180178785, 0.066120127797275, -0.108402221791588}; 35 const PetscScalar Xd[3] = {0.146, 0.8958, 1.3125}; /* d-axis reactance */ 36 const PetscScalar Xdp[3] = {0.0608, 0.1198, 0.1813}; /* d-axis transient reactance */ 37 const PetscScalar Xq[3] = {0.4360, 0.8645, 1.2578}; /* q-axis reactance Xq(1) set to 0.4360, valu… 38 const PetscScalar Xqp[3] = {0.0969, 0.1969, 0.25}; /* q-axis transient reactance */ 39 const PetscScalar Td0p[3] = {8.96, 6.0, 5.89}; /* d-axis open circuit time constant */ 40 const PetscScalar Tq0p[3] = {0.31, 0.535, 0.6}; /* q-axis open circuit time constant */ 61 ld_nsegsp,ld_nsegsq - Number of individual load models for real and reactive power loads 62 ld_alphap,ld_alphap - Percentage contribution (weights) or loads [all …]
|
| H A D | ex9busopt.c | 2 This example is based on the 9-bus (node) example given in the book Power\n\ 9 …This code demonstrates how to solve a DAE-constrained optimization problem with TAO, TSAdjoint and… 38 const PetscScalar QG[3] = {0.270702180178785, 0.066120127797275, -0.108402221791588}; 42 const PetscScalar Xd[3] = {0.146, 0.8958, 1.3125}; /* d-axis reactance */ 43 const PetscScalar Xdp[3] = {0.0608, 0.1198, 0.1813}; /* d-axis transient reactance */ 44 const PetscScalar Xq[3] = {0.4360, 0.8645, 1.2578}; /* q-axis reactance Xq(1) set to 0.4360, valu… 45 const PetscScalar Xqp[3] = {0.0969, 0.1969, 0.25}; /* q-axis transient reactance */ 46 const PetscScalar Td0p[3] = {8.96, 6.0, 5.89}; /* d-axis open circuit time constant */ 47 const PetscScalar Tq0p[3] = {0.31, 0.535, 0.6}; /* q-axis open circuit time constant */ 68 ld_nsegsp,ld_nsegsq - Number of individual load models for real and reactive power loads [all …]
|
| H A D | ex9busoptfd.c | 28 const PetscScalar QG[3] = {0.270702180178785, 0.066120127797275, -0.108402221791588}; 32 const PetscScalar Xd[3] = {0.146, 0.8958, 1.3125}; /* d-axis reactance */ 33 const PetscScalar Xdp[3] = {0.0608, 0.1198, 0.1813}; /* d-axis transient reactance */ 34 const PetscScalar Xq[3] = {0.4360, 0.8645, 1.2578}; /* q-axis reactance Xq(1) set to 0.4360, valu… 35 const PetscScalar Xqp[3] = {0.0969, 0.1969, 0.25}; /* q-axis transient reactance */ 36 const PetscScalar Td0p[3] = {8.96, 6.0, 5.89}; /* d-axis open circuit time constant */ 37 const PetscScalar Tq0p[3] = {0.31, 0.535, 0.6}; /* q-axis open circuit time constant */ 58 ld_nsegsp,ld_nsegsq - Number of individual load models for real and reactive power loads 59 ld_alphap,ld_alphap - Percentage contribution (weights) or loads 60 P_D0 - Real power load [all …]
|
| H A D | ex9busdmnetwork.c | 4 /edges have multiple-components associated with them and one or more components has physics \n\ 7 -nc : number of copies of the base case\n\n"; 32 PetscScalar Xd; /* d-axis reactance */ 33 PetscScalar Xdp; /* d-axis transient reactance */ 34 PetscScalar Xq; /* q-axis reactance Xq(1) set to 0.4360, value given in text 0.0969 */ 35 PetscScalar Xqp; /* q-axis transient reactance */ 36 PetscScalar Td0p; /* d-axis open circuit time constant */ 37 PetscScalar Tq0p; /* q-axis open circuit time constant */ 69 id - index of the load 70 ld_nsegsp,ld_nsegsq - Number of individual load models for real and reactive power loads [all …]
|
| /petsc/lib/petsc/bin/ |
| H A D | petscmpiexec | 7 if [ "$1" = '-h' ] || [ "$1" = '--help' ]; then 8 …echo "Usage: petscmpiexec <-valgrind> <-debugger> -n <numberprocessors> programname <programoption… 14 if [ "$1" = "-valgrind" ]; then 16 if [ "$2" = "-debugger" ]; then 23 if [ "$1" != "-n" ] && [ "$1" != "-np" ]; then 24 …echo "Error in mpiexec command: must start with -n[p] <numberprocessors> or -valgrind -n[p] <numb… 32 if [ "$1" = "-hosts" ]; then 34 hosts="-hosts $1" 39 if [ "$1" = "--oversubscribe" ]; then 41 oversubscribe="--oversubscribe" [all …]
|
| /petsc/config/BuildSystem/config/packages/ |
| H A D | CoDiPack.py | 6 self.gitcommit = 'v2.1.0' # 2023-05-10 23 ['mkdir', '-p', includedir], 24 … ['cp', '-rf', os.path.join('include', 'codi'), os.path.join('include', 'codi.hpp'), includedir],
|
| H A D | KS.py | 8 …ownload = ['git://https://bitbucket.org/petsc/pkg-ks','https://bitbucket.org/petsc/pkg-ks/… 9 self.downloaddirnames = ['petsc-pkg-kst'] 54 cflags += ' -fPIC' 70 -@if [ "${BUILDSHAREDLIB}" = "no" ]; then \\ 74 ${RM} -rf ${INSTALL_LIB_DIR}/tmp-ks-shlib; \\ 75 mkdir ${INSTALL_LIB_DIR}/tmp-ks-shlib; \\ 79 …if test -f ${INSTALL_LIB_DIR}/$$LIBNAME.${AR_LIB_SUFFIX} -o -f ${INSTALL_LIB_DIR}/lt_$$LIBNAME.${A… 80 if test -f ${INSTALL_LIB_DIR}/$$LIBNAME.${SL_LINKER_SUFFIX}; then \\ 81 …g=`find ${INSTALL_LIB_DIR} -type f -name $$LIBNAME.${AR_LIB_SUFFIX} -newer ${INSTALL_LIB_DIR}/$$LI… 83 …=`find ${INSTALL_LIB_DIR} -type f -name lt_$$LIBNAME.${AR_LIB_SUFFIX} -newer ${INSTALL_LIB_DIR}/$$… [all …]
|
| H A D | Triangle.py | 7 self.gitcommit = 'v1.3-p2' 8 …load = ['git://https://bitbucket.org/petsc/pkg-triangle','https://bitbucket.org/petsc/pkg-… 9 self.downloaddirnames = ['petsc-pkg-triangle','Triangle'] 21 …help.addArgument('TRIANGLE', '-download-triangle-build-exec=<bool>', nargs.ArgBool(None, False, 'B… 64 cflags += ' -fPIC' 65 cflags += ' -DNO_TIMER' 81 -@if [ "${BUILDSHAREDLIB}" = "no" ]; then \\ 85 ${RM} -rf ${INSTALL_LIB_DIR}/tmp-triangle-shlib; \\ 86 mkdir ${INSTALL_LIB_DIR}/tmp-triangle-shlib; \\ 90 …if test -f ${INSTALL_LIB_DIR}/$$LIBNAME.${AR_LIB_SUFFIX} -o -f ${INSTALL_LIB_DIR}/lt_$$LIBNAME.${A… [all …]
|
| H A D | pARMS.py | 7 …lf.download = ['git://https://bitbucket.org/petsc/pkg-parms.git','https://bitbucket.org/petsc/pkg… 8 self.downloaddirnames = ['petsc-pkg-parms','pARMS'] 12 #self.license = 'https://www-users.cs.umn.edu/~saad/software/pARMS' 36 …AGS = '+self.updatePackageCFlags(self.getCompilerFlags())+' -DUSE_MPI -DREAL=double -DHAS_BLAS… 38 g.write('-DDBL_CMPLX\n') 40 g.write('-DDBL\n') 45 g.write('CFDEFS = -DFORTRAN_UNDERSCORE\n') 47 g.write('CFDEFS = -DFORTRAN_CAPS\n') 52 g.write('CFFLAGS = ${CFDEFS} -DVOID_POINTER_SIZE_'+str(self.types.sizes['void-p'])+'\n') 55 g.write('RMFLAGS = -rf\n') [all …]
|
| H A D | Zoltan.py | 18 …help.addArgument('ZOLTAN', '-with-zoltan-fortran-bindings', nargs.ArgBool(None, 0, 'Use/build Zolt… 32 args.append('--with-id-type=ullong') 33 args.append('--enable-mpi') 36 if self.argDB['with-zoltan-fortran-bindings']: 38 args.append('--enable-f90interface') 41 …raise RuntimeError('Cannot build Zoltan Fortran bindings --with-fc=0 or with a malfunctioning Fort… 44 args.append('--with-parmetis') 46 args.append('--with-scotch') 51 packageDir = os.path.join(self.packageDir,'petsc-build') 53 if self.download and self.argDB['download-'+self.downloadname.lower()+'-configure-arguments']: [all …]
|
| H A D | HPDDM.py | 7 … = '87ea17ced9fb56b90ab45298489116883743fd15' # main feb-19-2026 'v'+self.version # main sep-27-20… 38 … with the MKL as \'mkl_spblas.h\' was not found, check for missing --with-blaslapack-include=/opt/… 39 buildDir = os.path.join(self.packageDir,'petsc-build') 44 if self.framework.argDB['prefix'] and not 'package-prefix-hash' in self.argDB: 57 …output,err,ret = config.package.Package.executeShellCommand(['cp','-rf',os.path.join(self.packageD… 64 if self.argDB['with-single-library']: 67 …b+[os.path.join(libDir,'libpetscml'),'-lpetsctao -lpetscts -lpetscsnes -lpetscksp -lpetscdm -lpets… 69 self.compilers.CXXPPFLAGS += ' -I'+incDir 72 # check for Windows-specific define 74 cxxflags += ' -Dpetsc_EXPORTS' [all …]
|
| H A D | fblaslapack.py | 6 self.gitcommit = 'v3.4.2-p3' 7 … = ['git://https://bitbucket.org/petsc/pkg-fblaslapack','https://bitbucket.org/petsc/pk… 8 self.downloaddirnames = ['petsc-pkg-fblaslapack'] 19 if self.argDB['with-64-bit-blas-indices']: 20 raise RuntimeError('fblaslapack does not support -with-64-bit-blas-indices') 21 if hasattr(self.argDB,'known-64-bit-blas-indices') and self.argDB['known-64-bit-blas-indices']: 22 raise RuntimeError('fblaslapack does not support -known-64-bit-blas-indices') 79 if line.find("-no-prec-div") >= 1: 80 …e Intel compiler generate incorrect code on fblaslapack with the option -no-prec-div\nRun configur… 90 …hellCommand('cd '+blasDir+' && rm -rf */*.c && make -f tmpmakefile cleanblaslapck cleanlib && '+se… [all …]
|
| /petsc/include/petsc/private/ |
| H A D | matisimpl.h | 20 PetscBool storel2l; /* carry over local-to-local inherited in MatPtAP */ 38 IS *rf, *cf; member
|
| /petsc/ |
| 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/src/benchmarks/ |
| H A D | ssget | 3 # Copyright 2017-2018 35 set -e 41 mkdir -p "${ARCHIVE_LOCATION}" 62 curl -Lo "${ARCHIVE_LOCATION}/ssstats.csv" "${SS_URL}/files/ssstats.csv" 67 if [ ! -f "${ARCHIVE_LOCATION}/ssstats.csv" ]; then 77 PROPS=$(head -$((${MATRIX_ID} + 2)) "${ARCHIVE_LOCATION}/ssstats.csv" \ 78 | tail -1) 85 IFS="," read -ra PROPS <<< "$(get_properties)" 98 IFS="," read -ra PROPS <<< "$(get_properties)" 131 cat <<- EOT [all …]
|