| /petsc/src/binding/petsc4py/ |
| H A D | makefile | 68 ${RM} -r petsc4py-lint-env 69 ${PYTHON} -m venv petsc4py-lint-env 70 . petsc4py-lint-env/bin/activate && python -m pip install -r conf/requirements-lint.txt 71 . petsc4py-lint-env/bin/activate && ${MAKE} cython-lint 72 . petsc4py-lint-env/bin/activate && ${MAKE} ruff-lint 75 ${RM} -r petsc4py-docs-env 76 ${PYTHON} -m venv petsc4py-docs-env 77 . petsc4py-docs-env/bin/activate && python -m pip install -r conf/requirements-docs.txt 78 . petsc4py-docs-env/bin/activate && CFLAGS=-O0 python -m pip install . 79 . petsc4py-docs-env/bin/activate && ${MAKE} sphinx-html SPHINXOPTS=-Wj1 [all …]
|
| H A D | .gitignore | 7 *env/
|
| H A D | .ruff.toml | 2 exclude = ["demo/legacy", "*env"]
|
| /petsc/doc/ |
| H A D | makefile | 26 …cd .. ; ${RM} -rf petsc-doc-env; python3 -m venv petsc-doc-env ; source petsc-doc-env/bin/activate… 39 …_DOC}; else export PETSC_DOC=doc ; fi; python3 -m venv petsc-doc-env ; . petsc-doc-env/bin/activa… 42 …_DOC}; else export PETSC_DOC=doc ; fi; python3 -m venv petsc-doc-env ; . petsc-doc-env/bin/activa…
|
| /petsc/src/sys/tests/ |
| H A D | ex61.c | 25 char env[PETSC_MAX_PATH_LEN]; in main() local 41 PetscCall(PetscArrayzero(env, PETSC_MAX_PATH_LEN)); in main() 42 PetscCall(PetscOptionsGetenv(PETSC_COMM_WORLD, name, env, sizeof(env), &set)); in main() 44 PetscCall(PetscStrcmp(value, env, &equal)); in main() 45 …B, "Test harness failed to set %s to the right value. Expected '%s', have '%s'", name, value, env); in main()
|
| /petsc/src/sys/classes/viewer/impls/mathematica/ |
| H A D | runtime.c | 11 static PetscErroCode setupConnection(MLENV *env, MLINK *link, const char *linkhost, LinkMode linkmo… in setupConnection() argument 44 *env = MLInitialize(0); in setupConnection() 46 *link = MLOpenInEnv(*env, argc, argv, &lerr); in setupConnection() 218 static PetscErrorCode cleanupConnection(MLENV env, MLINK link) in cleanupConnection() argument 222 MLDeinitialize(env); in cleanupConnection() 228 MLENV env; in main() local 232 PetscCall(setupConnection(&env, &link, "192.168.119.1", MATHEMATICA_LINK_CONNECT)); in main() 234 PetscCall(cleanupConnection(env, link)); in main()
|
| /petsc/src/benchmarks/streams/ |
| H A D | OpenMPVersion.c | 38 char *env; in main() local 41 env = getenv("OMP_NUM_THREADS"); in main() 42 if (!env) env = (char *)"1"; in main() 43 sscanf(env, "%d", &size); in main()
|
| H A D | OpenMPVersionLikeMPI.c | 41 char *env; in main() local 44 env = getenv("OMP_NUM_THREADS"); in main() 45 if (!env) env = (char *)"1"; in main() 46 sscanf(env, "%d", &size); in main()
|
| /petsc/src/sys/utils/ |
| H A D | pdisplay.c | 32 PetscErrorCode PetscOptionsGetenv(MPI_Comm comm, const char name[], char env[], size_t len, PetscBo… in PetscOptionsGetenv() argument 49 if (env) { in PetscOptionsGetenv() 50 PetscCall(PetscOptionsGetString(NULL, NULL, work, env, len, &flg)); in PetscOptionsGetenv() 54 PetscCall(PetscArrayzero(env, len)); in PetscOptionsGetenv() 60 if (str && env) PetscCall(PetscStrncpy(env, str, len)); in PetscOptionsGetenv() 63 PetscCallMPI(MPI_Bcast(env, (PetscMPIInt)len, MPI_CHAR, 0, comm)); in PetscOptionsGetenv()
|
| H A D | str.c | 551 char *work, *par, *epar = NULL, env[1024], *tfree, *a = (char *)aa; in PetscStrreplace() local 580 PetscCall(PetscOptionsGetenv(comm, "PETSC_LIB_DIR", env, sizeof(env), &flag)); in PetscStrreplace() 583 PetscCall(PetscStrallocpy(env, &r[2])); in PetscStrreplace() 628 PetscCall(PetscOptionsGetenv(comm, par, env, sizeof(env), &flag)); in PetscStrreplace() 630 PetscCall(PetscStrlcat(work, env, len)); in PetscStrreplace()
|
| /petsc/config/BuildSystem/config/packages/ |
| H A D | Firedrake.py | 44 self.env = {} 45 self.env['PETSC_DIR'] = self.petscdir.dir 46 self.env['PETSC_ARCH'] = self.arch 47 self.env['HDF5_MPI'] = 'ON' 48 self.env['HDF5_DIR'] = self.hdf5.directory 49 self.env['SLEPC_DIR'] = self.slepc.directory
|
| H A D | MPI.py | 858 env = None # None means to inherit the current process' environment 860 …env = dict(os.environ, PE_PKGCONFIG_LIBS='mpich', PE_PKGCONFIG_PRODUCTS='PE_MPICH') # modify the t… 862 …elf.executeShellCommand([self.compilers.CC, '--cray-print-opts=cflags'], env=env, log = self.log)[… 864 …Command([self.compilers.CC, '--no-as-needed', '--cray-print-opts=libs'], env=env, log = self.log)[…
|
| /petsc/config/BuildSystem/ |
| H A D | script.py | 160 def runShellCommand(command, log=None, cwd=None, env=None): argument 161 return Script.runShellCommandSeq([command], log=log, cwd=cwd, env=env) 164 def runShellCommandSeq(commandseq, log=None, cwd=None, env=None): argument 174 pipe = Popen(command, cwd=cwd, env=env, stdin=None, stdout=PIPE, stderr=PIPE, 209 …checkCommand = None, timeout = 600.0, log = None, lineLimit = 0, cwd=None, env=None, logOutputflg … argument 213 …nd=checkCommand, timeout=timeout, log=log, lineLimit=lineLimit, cwd=cwd, env=env, logOutputflg = l… 216 …checkCommand = None, timeout = 600.0, log = None, lineLimit = 0, cwd=None, env=None, logOutputflg … argument 236 def runInShell(commandseq, log, cwd, env): argument 247 … (self.output, self.error, self.status) = Script.runShellCommandSeq(commandseq, log, cwd, env) 258 return Script.runShellCommandSeq(commandseq, log, cwd, env) [all …]
|
| /petsc/src/binding/petsc4py/demo/legacy/wrap-f2py/ |
| H A D | makefile | 23 env \
|
| /petsc/config/BuildSystem/config/ |
| H A D | package.py | 2141 env = os.environ.copy() 2142 env["CMAKE_MODULE_PATH"] = folder 2143 env["CC"] = self.compilers.CC 2146 env["CXX"] = self.compilers.CXX 2147 env["CXXFLAGS"] = self.updatePackageCxxFlags(self.getCompilerFlags()) 2151 …target='+os.path.join(self.installDir,'lib'), '.']],cwd=self.packageDir, env=env, timeout=30, log … 2217 env = os.environ.copy() 2218 env["CC"] = self.compilers.CC 2221 env["CXX"] = self.compilers.CXX 2222 env["CXXFLAGS"] = self.updatePackageCxxFlags(self.getCompilerFlags()) [all …]
|
| /petsc/lib/petsc/conf/ |
| H A D | rules_util.mk | 204 env-lint: 207 @python3 -m venv petsc-lint-env 208 …@source petsc-lint-env/bin/activate && python3 -m pip install --quiet -r lib/petsc/bin/maint/petsc…
|
| H A D | rules | 260 …-@printf '#!/usr/bin/env sh\nnode --redirect-warnings=/dev/null $@.js $$* | grep -v "Heap resize c…
|
| /petsc/src/binding/petsc4py/conf/ |
| H A D | confpetsc.py | 684 env = os.environ.copy() 685 python_path = env.get('PYTHONPATH', "") 689 env['PYTHONPATH'] = python_path 690 env.pop('PETSC_ARCH', None) 693 rc = subprocess.call([sys.executable, stubgen], env=env) # noqa S603
|
| /petsc/doc/miscellaneous/ |
| H A D | funding.md | 12 …mics of Compound Flooding in E3SM](https://www.scidac.gov/partnerships/bio-env-research.html), 202…
|
| /petsc/doc/developers/ |
| H A D | testing.md | 207 - **env**: (*Optional*; *Default:* `env=""`) 212 - Variables defined within `env:` blocks are expanded and processed by the shell that 217 - Defining the `env:` keyword more than once is allowed. Subsequent declarations are 219 be defined in the same `env:` block, i.e. given a test `ex1.c` with the following 224 env: FOO=1 BAR=1 228 env: FOO=1 229 env: BAR=1 238 - Variables defined in an `env:` block are evaluated by the runscript in the order in 244 env: FOO='hello' BAR=${FOO} 259 env: FOO=1 FOO=0
|
| H A D | buildsystem.md | 136 #!/usr/bin/env python3
|
| /petsc/lib/petsc/bin/maint/ |
| H A D | builddist | 106 rm -rf petsc-doc-env # remove python2 env created when building petsc+petsc4py docs
|
| /petsc/ |
| H A D | .gitignore | 103 petsc-doc-env
|
| /petsc/doc/changes/ |
| H A D | 324.md | 25 - Add `--with-python-exec-from-env=python` to allow providing the Python to be used by mpi4py and p…
|
| /petsc/src/mat/interface/ |
| H A D | matrix.c | 7702 …PetscInt n, *sizes, *starts, i = 0, env = 0, tbs = 0, lblocks = 0, rstart, II, ln = 0, c… in MatComputeVariableBlockEnvelope() local 7739 PetscCallMPI(MPI_Recv(&env, 1, MPIU_INT, rank - 1, tag, comm, &status)); in MatComputeVariableBlockEnvelope() 7744 env = PetscMax(env, ja[ia[i + 1] - 1]); in MatComputeVariableBlockEnvelope() 7746 if (env == II) { in MatComputeVariableBlockEnvelope() 7753 PetscCallMPI(MPI_Send(&env, 1, MPIU_INT, rank + 1, tag, comm)); in MatComputeVariableBlockEnvelope()
|