| /petsc/ |
| H A D | makefile | 21 # next line defines PETSC_DIR and PETSC_ARCH if they are not set 22 include ././${PETSC_ARCH}/lib/petsc/conf/petscvariables 23 include ${PETSC_DIR}/${PETSC_ARCH}/lib/petsc/conf/petscrules 34 PETSCCONF_H = ${PETSC_DIR}/${PETSC_ARCH}/include/petscconf.h 39 …+@${OMAKE_SELF} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} chk_upgrade | tee ${PETSC_ARCH}/li… 40 @ln -sf ${PETSC_ARCH}/lib/petsc/conf/make.log make.log 41 …NTDIR} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} all-local; echo "$$?" > ${PETSC_ARCH}/lib/p… 42 +@if [ "`cat ${PETSC_ARCH}/lib/petsc/conf/error.log 2> /dev/null`" != "0" ]; then\ 43 …error: Killed signal terminated program f951)' ${PETSC_ARCH}/lib/petsc/conf/make.log | tee ${PETSC… 44 if test -s ${PETSC_ARCH}/lib/petsc/conf/memoryerror.log; then\ [all …]
|
| /petsc/doc/install/ |
| H A D | multibuild.md | 8 by changing the `$PETSC_ARCH` environment variable. 10 ## Environmental Variables `$PETSC_DIR` And `$PETSC_ARCH` 14 or `$PETSC_ARCH` 16 `$PETSC_ARCH` is only needed for in-place installations. For out-of-place 20 `$PETSC_DIR` and `$PETSC_ARCH` (in-place installs only) are used by the PETSc 30 $ export PETSC_ARCH=linux-gnu-c-debug 37 $ setenv PETSC_ARCH linux-gnu-c-debug 44 $ PETSC_ARCH=linux-gnu-c-debug make PETSC_DIR=/absolute/path/to/petsc ex1 94 packages** under `$PETSC_DIR/$PETSC_ARCH` (effectively a "clean slate") before 106 `$PETSC_DIR/$PETSC_ARCH/lib/petsc/conf/reconfigure-$PETSC_ARCH.py` (henceforth referred [all …]
|
| /petsc/config/PETSc/options/ |
| H A D | arch.py | 15 return ' PETSC_ARCH: '+str(self.arch)+'\n' 19 …help.addArgument('PETSc', '-PETSC_ARCH=<string>', nargs.Arg(None, None, 'The configuration nam… 43 '''Checks if PETSC_ARCH is set and sets it if not set''' 44 # Warn if PETSC_ARCH doesn't match env variable 45 …if 'PETSC_ARCH' in self.framework.argDB and 'PETSC_ARCH' in os.environ and self.framework.argDB['P… 47 PETSC_ARCH from environment does not match command-line or name of script. Using from command-line … 48 os.environ['PETSC_ARCH'] = self.framework.argDB['PETSC_ARCH'] 52 elif 'PETSC_ARCH' in self.framework.argDB: 53 self.arch = self.framework.argDB['PETSC_ARCH'] 54 msg = 'option PETSC_ARCH='+str(self.arch) [all …]
|
| /petsc/src/binding/petsc4py/conf/ |
| H A D | confpetsc.py | 224 def __init__(self, petsc_dir, petsc_arch, dest_dir=None): argument 233 self.configdict = self._get_petsc_config(petsc_dir, petsc_arch) 235 self.PETSC_ARCH = self['PETSC_ARCH'] 269 def _get_petsc_config(self, petsc_dir, petsc_arch): argument 273 PETSC_ARCH = petsc_arch 276 if not (PETSC_ARCH and isdir(join(PETSC_DIR, PETSC_ARCH))): 278 PETSC_ARCH = makefile(open(petscvars, 'rt')).get('PETSC_ARCH') 279 if not (PETSC_ARCH and isdir(join(PETSC_DIR, PETSC_ARCH))): 280 PETSC_ARCH = '' 284 variables = join(PETSC_DIR, PETSC_ARCH, confdir, 'variables') [all …]
|
| /petsc/systems/Apple/OSX/bin/ |
| H A D | makeframework | 10 … with cc -v ex19.c -o ex19 -DPETSC_APPLE_FRAMEWORK=1 -F ${PETSC_DIR}/${PETSC_ARCH}/PETSc-OSX/relea… 11 # 2b) Run the installer or sudo mv -r ${PETSC_DIR}/${PETSC_ARCH}/PETSc-OSX to /Library/Framework… 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 23 cd ${PETSC_DIR}/${PETSC_ARCH}/PETSc-OSX/$1/PETSc.framework/Versions/ 29 cp ${PETSC_DIR}/${PETSC_ARCH}/include/*.h Headers [all …]
|
| /petsc/lib/petsc/bin/maint/ |
| H A D | abicheck.py | 8 # -old_arch <old PETSC_ARCH> 10 # -new_arch <new PETSC_ARCH> 42 def gen_xml_desc(petsc_dir, petsc_arch, libs, xmlfile): argument 43 '''Generate an ABI descriptor file for the given PETSC_DIR and PETSC_ARCH''' 46 petscconf = os.path.join(petsc_dir, petsc_arch, 'include', 'petscconf.h') 61 libname_so = os.path.join(petsc_dir, petsc_arch, 'lib', libname+'.so') 62 libname_dylib = os.path.join(petsc_dir, petsc_arch, 'lib', libname+'.dylib') 63 libname_a = os.path.join(petsc_dir, petsc_arch, 'lib', libname+'.a') 73 …ary %s for PETSC_DIR=%s PETSC_ARCH=%s. Please configure and build it before doing ABI/API checking… 99 file.write(os.path.join(petsc_dir,petsc_arch,'include')) [all …]
|
| H A D | check-fortran-coverage.sh | 21 petsc_arch=$(find . -maxdepth 1 -type d -name 'arch-*' | head -n1 | sed 's|^\./||') 22 # make PETSC_DIR="$TMPDIR/wt_$rev" PETSC_ARCH="$petsc_arch" all check 23 cp -r "$petsc_arch/ftn" "$TMPDIR/$rev"
|
| /petsc/systems/Apple/iOS/bin/ |
| H A D | makeframework | 8 # 2a) either run the installer or sudo -r mv ${PETSC_DIR}/${PETSC_ARCH}/PETSc-iOS /Library/Frame… 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/ 25 cp ${PETSC_DIR}/${PETSC_ARCH}/include/*.h Headers 35 cp ${PETSC_DIR}/${PETSC_ARCH}/lib/PETSc_framework PETSc [all …]
|
| /petsc/src/binding/petsc4py/demo/legacy/wrap-cython/ |
| H A D | setup.py | 20 PETSC_ARCH = os.environ.get('PETSC_ARCH', '') 22 if PETSC_ARCH and isdir(join(PETSC_DIR, PETSC_ARCH)): 23 INCLUDE_DIRS += [join(PETSC_DIR, PETSC_ARCH, 'include'), 25 LIBRARY_DIRS += [join(PETSC_DIR, PETSC_ARCH, 'lib')] 27 if PETSC_ARCH: pass # XXX should warn ...
|
| /petsc/src/binding/petsc4py/demo/legacy/wrap-f2py/ |
| H A D | setup.py | 24 PETSC_ARCH = os.environ.get('PETSC_ARCH', '') 26 if PETSC_ARCH and isdir(join(PETSC_DIR, PETSC_ARCH)): 27 INCLUDE_DIRS += [join(PETSC_DIR, PETSC_ARCH, 'include'), 29 LIBRARY_DIRS += [join(PETSC_DIR, PETSC_ARCH, 'lib')] 31 if PETSC_ARCH: pass # XXX should warn ...
|
| /petsc/src/binding/petsc4py/demo/legacy/wrap-swig/ |
| H A D | setup.py | 26 PETSC_ARCH = os.environ.get('PETSC_ARCH', '') 28 if PETSC_ARCH and isdir(join(PETSC_DIR, PETSC_ARCH)): 29 INCLUDE_DIRS += [join(PETSC_DIR, PETSC_ARCH, 'include'), 31 LIBRARY_DIRS += [join(PETSC_DIR, PETSC_ARCH, 'lib')] 33 if PETSC_ARCH: pass # XXX should warn ...
|
| /petsc/config/ |
| H A D | gmakegen.py | 59 …def __init__(self, petsc_dir=None, petsc_arch=None, pkg_dir=None, pkg_name=None, pkg_arch=None, pk… argument 68 if petsc_arch is None: 69 petsc_arch = os.environ.get('PETSC_ARCH') 70 if petsc_arch is None: 72 …petsc_arch = parse_makefile(os.path.join(petsc_dir, 'lib','petsc','conf', 'petscvariables')).get('… 74 if petsc_arch is None: 75 … raise RuntimeError('Could not determine PETSC_ARCH, please set in environment') 77 self.petsc_arch = petsc_arch.rstrip(os.sep) 84 self.pkg_arch = self.petsc_arch 88 self.pkg_arch = self.petsc_arch [all …]
|
| H A D | query_tests.py | 28 Use dataDict as written out by gmakegentest.py in $PETSC_ARCH/$TESTBASE 193 def get_gmakegentest_data(srcdir,testdir,petsc_dir,petsc_arch): argument 203 …args='--petsc-dir='+petsc_dir+' --petsc-arch='+petsc_arch+' --testdir='+testdir+' --srcdir='+srcdir 239 def do_query(use_source, startdir, srcdir, testdir, petsc_dir, petsc_arch, argument 251 dataDict=get_gmakegentest_data(srcdir,testdir, petsc_dir, petsc_arch) 302 parser.add_option('-a', '--petsc-arch', dest='petsc_arch', 303 help='Set PETSC_ARCH different from environment', 304 default=os.environ.get('PETSC_ARCH')) 309 help='Test directory if not PETSC_ARCH/tests. Must be full path', 313 help='Query all sources rather than those configured in PETSC_ARCH') [all …]
|
| H A D | gmakegentest.py | 30 | PETSC_ARCH | arch-foo | 32 | PETSC_LIBDIR | PETSC_DIR/PETSC_ARCH/lib | 36 | PETSC_TESTDIR | PETSC_DIR/PETSC_ARCH/tests | 48 | PETSC_ARCH | '' | 50 | PETSC_LIBDIR | PETSC_DIR/PETSC_ARCH/lib | 54 | PETSC_TESTDIR | PETSC_DIR/PETSC_ARCH/tests | 90 …def __init__(self,petsc_dir=None, petsc_arch=None, pkg_dir=None, pkg_arch=None, pkg_name=None, pkg… argument 91 …super(generateExamples, self).__init__(petsc_dir=petsc_dir, petsc_arch=petsc_arch, pkg_dir=pkg_dir… 101 if self.petsc_arch.find('valgrind') >= 0: 106 # set PETSC_ARCH to install directory to allow script to work in both [all …]
|
| /petsc/lib/petsc/bin/ |
| H A D | petscmpiexec | 3 # Uses PETSC_ARCH and PETSC_DIR plus the MPIEXEC command in 44 if [ ! -f "${PETSC_DIR}/${PETSC_ARCH}/lib/petsc/conf/files" ]; then 45 …echo "Error build location not found! Please set PETSC_DIR and PETSC_ARCH correctly for this build… 63 OMAKE=$(grep "OMAKE " "${PETSC_DIR}/${PETSC_ARCH}/lib/petsc/conf/petscvariables" | cut -f2 -d=) 64 if [ "${PETSC_ARCH}" != "" ]; then 78 MPI_BUILD_HOME=$(grep MPI_BUILD_HOME "${PETSC_DIR}/${PETSC_ARCH}/lib/petsc/conf/petscvariables" | g… 79 MPI_HOME=$(grep "MPI_HOME " "${PETSC_DIR}/${PETSC_ARCH}/lib/petsc/conf/petscvariables" | grep -v bu… 80 run=$(grep "MPIEXEC " "${PETSC_DIR}/${PETSC_ARCH}/lib/petsc/conf/petscvariables" | grep -v "#MPIEXE… 81 MPIEXEC_TAIL=$(grep MPIEXEC_TAIL "${PETSC_DIR}/${PETSC_ARCH}/lib/petsc/conf/petscvariables" | grep … 101 rm -rf "${PETSC_DIR}"/"${PETSC_ARCH}"/lib/lib*.dSYM
|
| H A D | petsc_conf.py | 30 if 'PETSC_ARCH' in os.environ: 31 petscarch = os.environ['PETSC_ARCH'] 37 …nings.warn('Unable to locate PETSc installation in specified PETSC_DIR/PETSC_ARCH, using defaults') 40 …warnings.warn('PETSC_ARCH env not set or incorrect PETSC_DIR is given - unable to locate PETSc ins…
|
| /petsc/src/sys/utils/ |
| H A D | arch.c | 4 PetscGetArchType - Returns the $PETSC_ARCH that was used for this configuration of PETSc 30 #if defined(PETSC_ARCH) in PetscGetArchType() 31 PetscCall(PetscStrncpy(str, PETSC_ARCH, slen - 1)); in PetscGetArchType() 33 #error "$PETSC_ARCH/include/petscconf.h is missing PETSC_ARCH" in PetscGetArchType()
|
| /petsc/doc/manual/ |
| H A D | tests.md | 8 `$PETSC_DIR` and `$PETSC_ARCH` before running the tests, or can 14 $ make PETSC_DIR=<PETSC_DIR> PETSC_ARCH=<PETSC_ARCH> check 20 $ make PETSC_DIR=<PETSC_DIR> $PETSC_ARCH=<PETSC_ARCH> alltests 26 $ make [-j <n>] test PETSC_ARCH=<PETSC_ARCH> 67 system. The tests are run in `$PETSC_DIR/$PETSC_ARCH/tests` with 81 $ $PETSC_DIR/$PETSC_ARCH/tests/vec/vec/tutorials/runex6.sh
|
| /petsc/src/snes/tutorials/ |
| H A D | build.zig | 19 const PETSC_ARCH = std.os.getenv("PETSC_ARCH") orelse unreachable; 20 … var path = std.fs.path.join(std.heap.c_allocator, &[_][] const u8 { PETSC_DIR,PETSC_ARCH,"lib"}); 23 // This should not be needed but is export DYLD_LIBRARY_PATH=$PETSC_DIR/$PETSC_ARCH/lib 26 … path = std.fs.path.join(std.heap.c_allocator, &[_][] const u8 { PETSC_DIR,PETSC_ARCH,"include"});
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/ |
| H A D | main.py | 92 def __sanitize_compiler_flags(petsc_dir: Path, petsc_arch: str, verbose: int, extra_compiler_flags:… 97 petsc_dir, petsc_arch, extra_compiler_flags=extra_compiler_flags, verbose=verbose 102 petsc_arch: str, 124 petsc_arch : 125 $PETSC_ARCH 200 compiler_flags = __sanitize_compiler_flags(petsc_dir, petsc_arch, verbose, extra_compiler_flags) 363 petsc_arch = os.environ['PETSC_ARCH'] 365 petsc_arch = None 410 …_argument('--PETSC_ARCH', default=petsc_arch, help='if this option is unused defaults to environme… 470 if `args.petsc_dir` or `args.petsc_arch` are None [all …]
|
| /petsc/doc/ |
| H A D | build_manpages_c2html.py | 12 petsc_arch = 'arch-docs' variable 19 if 'PETSC_ARCH' in os.environ: del os.environ['PETSC_ARCH'] 38 'PETSC_ARCH=' + petsc_arch, 61 with open(os.path.join(petsc_dir,petsc_arch,'lib','petsc','conf','petscvariables')) as f: 101 with open(os.path.join(petsc_dir,petsc_arch,'lib','petsc','conf','petscvariables')) as f: 107 with open(os.path.join(petsc_dir,petsc_arch,'lib','petsc','conf','petscvariables')) as f:
|
| H A D | makefile | 39 …cd .. ; if [ ! -z ${PETSC_ARCH} ]; then export PETSC_DOC=${PETSC_ARCH}-doc; ${RM} -rf $${PETSC_DOC… 42 …cd .. ; if [ ! -z ${PETSC_ARCH} ]; then export PETSC_DOC=${PETSC_ARCH}-doc; ${RM} -rf $${PETSC_DOC…
|
| /petsc/src/sys/classes/viewer/impls/socket/mex-scripts/ |
| H A D | makefile | 22 -@${MV} sread.mex* ${PETSC_DIR}/${PETSC_ARCH}/lib/petsc/matlab 27 -@${MV} swrite.mex* ${PETSC_DIR}/${PETSC_ARCH}/lib/petsc/matlab 32 -@${MV} sopen.mex* ${PETSC_DIR}/${PETSC_ARCH}/lib/petsc/matlab 37 -@${MV} sclose.mex* ${PETSC_DIR}/${PETSC_ARCH}/lib/petsc/matlab
|
| /petsc/config/BuildSystem/config/packages/ |
| H A D | SLEPc.py | 49 # if installing prefix location then need to set new value for PETSC_DIR/PETSC_ARCH 54 …packageDir+' PETSC_DIR='+os.path.abspath(os.path.expanduser(self.argDB['prefix']))+' PETSC_ARCH=""' 55 …ageDir+' PETSC_DIR='+os.path.abspath(os.path.expanduser(self.argDB['prefix']))+' PETSC_ARCH='+iarch 56 …prefix']))+' PETSC_DIR='+os.path.abspath(os.path.expanduser(self.argDB['prefix']))+' PETSC_ARCH=""' 60 barg = 'SLEPC_DIR=' + self.packageDir + ' PETSC_ARCH=${PETSC_ARCH}'
|
| H A D | PFLARE.py | 40 # if installing prefix location then need to set new value for PETSC_DIR/PETSC_ARCH 42 … barg = ' PETSC_DIR='+os.path.abspath(os.path.expanduser(self.argDB['prefix']))+' PETSC_ARCH=""' 45 # No PETSC_ARCH in the source directory as we are in a prefix build 50 barg = 'PETSC_DIR=${PETSC_DIR} PETSC_ARCH=${PETSC_ARCH}'
|