Home
last modified time | relevance | path

Searched refs:dirname (Results 1 – 25 of 88) sorted by relevance

1234

/petsc/systems/Apple/iOS/bin/
H A Diosbuilder.py109 def buildDir(self, dirname): argument
111 if self.verbose: print('Entering '+dirname)
112 os.chdir(dirname)
124 for f in os.listdir(dirname):
137 os.symlink(os.path.join(dirname,i),os.path.join(basedir,'openglops.m'))
139 os.symlink(os.path.join(dirname,i),os.path.join(basedir,i))
148 def checkDir(self, dirname): argument
158 base = os.path.basename(dirname)
174 fname = os.path.join(dirname, 'makefile')
176 …if os.path.isfile(os.path.join(dirname, 'Makefile')): print('ERROR: Change Makefile to makefile in…
[all …]
/petsc/lib/petsc/bin/maint/
H A Dtestharness_util.py10 pdir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(thisfile)))))
80 dl_dir=os.path.dirname(fulldfile)
85 os.mkdir(os.path.dirname(os.path.dirname(dl_dir)))
86 os.mkdir(os.path.dirname(dl_dir))
H A Dgenerateetags.py50 if os.path.dirname(line).endswith(b'custom') and not line.endswith(b'.h'):
110 def badWebIndex(dirname,file): argument
114 elif file == 'index.html' and dirname.find('docs/website') >=0:
157 def processFiles(dirname,flist): argument
168 if files: flist.extend([os.path.join(dirname,name) for name in files])
H A DnormalizeOutput.py5 currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
16 rootdir=os.path.dirname(ofile)
/petsc/doc/
H A Dbuild_man_index.py150 def createtable(dirname,levels,secname,editbranch): argument
152 listdir = os.listdir(dirname)
153 … mdfiles = [os.path.join(dirname,f) for f in listdir if f.endswith('.md') and not f == 'index.md']
174 def addtolist(dirname,singlelist): argument
176 mdfiles = [os.path.join(dirname,f) for f in os.listdir(dirname) if f.endswith('.md')]
179 print('Error! Empty directory:',dirname)
242 for dirname in mandirs:
243 outfilename = dirname + '/index.md'
244 dname,secname = posixpath.split(dirname)
246 table = createtable(dirname,levels,secname,edit_branch)
[all …]
H A Dmake_links_relative.py15 dirnames[:] = [dirname for dirname in dirnames if dirname not in excludes]
/petsc/config/BuildSystem/config/
H A Dlibraries.py49 dirname = library[2:]
50 …if not dirname.startswith('$') and not os.path.isdir(dirname): self.logPrint('Warning! getLibArgum…
51 if dirname in self.sysDirs:
53 elif with_rpath and rpathFlag and not dirname in self.rpathSkipDirs:
54 return [rpathFlag+dirname,library]
64dirname = os.path.dirname(library).replace('\\ ',' ').replace(' ', '\\ ').replace('\\(','(').rep…
65 if dirname in self.sysDirs:
67 if with_rpath and not dirname in self.rpathSkipDirs:
71 return [getattr(self.setCompilers, flagName)+dirname,library]
73 return [getattr(self.setCompilers, flagName)+dirname,'-L'+dirname,'-l'+name]
[all …]
/petsc/lib/petsc/bin/
H A Dpetscversion10 dir=$(dirname "$0")
11 dir=$(dirname "$dir")
12 dir=$(dirname "$dir")
13 PETSC_DIR=$(dirname "$dir")
/petsc/config/examples/
H A Darch-ci-linux-gcc-ifc-cmplx.py8 ifort_lib_dir=os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(which('ifort')))),'compi…
H A Darch-ci-linux-matlab-ilp64.py20 matlab_dir=os.path.dirname(os.path.dirname(which('matlab')))
/petsc/src/binding/petsc4py/src/petsc4py/
H A D__init__.py62 from os.path import dirname, join
64 return join(dirname(__file__), 'include')
73 pgkdir = os.path.dirname(__file__)
/petsc/src/sys/fileio/
H A Dftest.c201 PetscErrorCode PetscTestDirectory(const char dirname[], char mode, PetscBool *flg) in PetscTestDirectory() argument
210 if (!dirname) PetscFunctionReturn(PETSC_SUCCESS); in PetscTestDirectory()
212 PetscCall(PetscGetFileStat(dirname, &fuid, &fgid, &fmode, &exists)); in PetscTestDirectory()
218 PetscCall(PetscTestOwnership(dirname, mode, fuid, fgid, fmode, flg)); in PetscTestDirectory()
240 PetscErrorCode PetscLs(MPI_Comm comm, const char dirname[], char found[], size_t tlen, PetscBool *f… in PetscLs() argument
248 PetscCall(PetscStrlcat(program, dirname, sizeof(program))); in PetscLs()
261 if (*flg) PetscCall(PetscInfo(NULL, "ls on %s gives \n%s\n", dirname, found)); in PetscLs()
/petsc/doc/ext/
H A D__init__.py1 from os.path import dirname, basename, isfile
4 modules = glob.glob(dirname(__file__)+"/*.py")
/petsc/config/BuildSystem/
H A Dretrieval.py212 dirname = os.path.normpath(output[0].strip())
238 dirname = firstmember.name
240 dirname = os.path.dirname(firstmember.name)
247 if dirname:
248 …base.Configure.executeShellCommand('cd '+root+'; chmod -R a+r '+dirname+';find '+dirname + r' -ty…
252 …raise RuntimeError('Error changing permissions for '+dirname+' obtained from '+localFile+ ' : '+st…
/petsc/src/binding/petsc4py/conf/
H A Depydocify.py101 dirname = os.path.dirname(__file__)
102 config = os.path.join(dirname, 'epydoc.cfg')
H A Dcythonize.py7 appdir = os.path.dirname(os.path.abspath(__file__))
43 topdir = os.path.dirname(appdir)
/petsc/src/ts/trajectory/interface/
H A Dtraj.c586 if (rank == 0 && (*tj)->dirname) { /* we own the directory, so we run PetscRMTree on it */ in TSTrajectoryDestroy()
587 PetscCall(PetscRMTree((*tj)->dirname)); in TSTrajectoryDestroy()
591 PetscCall(PetscFree((*tj)->dirname)); in TSTrajectoryDestroy()
733 PetscErrorCode TSTrajectorySetDirname(TSTrajectory tj, const char dirname[]) in TSTrajectorySetDirname() argument
739 PetscCall(PetscStrcmp(tj->dirname, dirname, &flg)); in TSTrajectorySetDirname()
741 PetscCall(PetscFree(tj->dirname)); in TSTrajectorySetDirname()
742 PetscCall(PetscStrallocpy(dirname, &tj->dirname)); in TSTrajectorySetDirname()
815 char dirname[PETSC_MAX_PATH_LEN], filetemplate[PETSC_MAX_PATH_LEN]; in TSTrajectorySetFromOptions() local
832 …ory name for TSTrajectory file", "TSTrajectorySetDirname", NULL, dirname, sizeof(dirname) - 14, &s… in TSTrajectorySetFromOptions()
833 if (set) PetscCall(TSTrajectorySetDirname(tj, dirname)); in TSTrajectorySetFromOptions()
[all …]
/petsc/config/
H A Dquery_tests.py12 petscdir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(thisfile…
59 prefix=os.path.dirname(path).replace("/","_")
284 pardir = os.path.dirname(string)
/petsc/config/BuildSystem/config/packages/
H A DCUDA.py152 nvhpcDir = os.path.dirname(prefix) # /path/nvhpc/Linux_x86_64/21.7
159 nvhpcDir = os.path.dirname(os.path.dirname(prefix)) # /path/nvhpc/Linux_x86_64/21.7
227 nvhpcDir = os.path.dirname(os.path.dirname(directory)) # /path/nvhpc/Linux_x86_64/21.7
244 …nvhpcDir = os.path.dirname(os.path.dirname(os.path.dirname(directory))) # /path/nvhpc/Li…
245 ver = os.path.basename(os.path.dirname(directory)) # 11.4
326 nvccDir = os.path.dirname(self.systemNvcc) # /path/bin
327 d = os.path.dirname(nvccDir) # /path
H A DHIP.py129 …yield os.path.dirname(os.path.dirname(self.fullPathHIPC)) # yield /opt/rocm from /opt/rocm/bin/hip…
161 nvccDir = os.path.dirname(self.systemNvcc)
214 …self.hipDir = os.path.dirname(os.path.dirname(self.fullPathHIPC)) # Ex. peel /opt/rocm-4.5.2/bin/h…
/petsc/lib/petsc/bin/maint/abi-compliance-checker/
H A DMakefile.pl33 use File::Basename qw(dirname);
39 my $ARCHIVE_DIR = abs_path(dirname($0));
268 mkpath(dirname($Inst));
/petsc/config/BuildSystem/config/compile/
H A DC.py153 dirname, basename = os.path.split(source)
162 return os.path.join(dirname, base)
193 dirname, basename = os.path.split(source)
201 return os.path.join(dirname, base)
247 dirname, basename = os.path.split(source)
253 return os.path.join(dirname, base)
/petsc/lib/petsc/bin/win32fe/
H A Dwin32fe_icl5 p=`dirname $0`
H A Dwin32fe_ifort5 p=`dirname $0`
H A Dwin32fe_nvcc5 p=`dirname $0`

1234