Home
last modified time | relevance | path

Searched refs:exists (Results 1 – 25 of 71) sorted by relevance

123

/petsc/src/sys/fileio/
H A Dftest.c113 …scGetFileStat(const char fname[], uid_t *fileUid, gid_t *fileGid, int *fileMode, PetscBool *exists) in PetscGetFileStat() argument
120 *exists = PETSC_FALSE; in PetscGetFileStat()
131 *exists = PETSC_FALSE; in PetscGetFileStat()
134 *exists = PETSC_TRUE; in PetscGetFileStat()
166 PetscBool exists; in PetscTestFile() local
172 PetscCall(PetscGetFileStat(fname, &fuid, &fgid, &fmode, &exists)); in PetscTestFile()
173 if (!exists) PetscFunctionReturn(PETSC_SUCCESS); in PetscTestFile()
178 *flg = exists; in PetscTestFile()
206 PetscBool exists; in PetscTestDirectory() local
212 PetscCall(PetscGetFileStat(dirname, &fuid, &fgid, &fmode, &exists)); in PetscTestDirectory()
[all …]
/petsc/src/sys/tests/
H A Dex82f.F907 PetscBool :: exists
12 PetscCallA(PetscTestFile(filename, mode, exists, ierr))
13 write (*, '(A, A, A, I0)') "File ", trim(filename), " doesn't exist = ", merge(1, 0, exists)
/petsc/config/BuildSystem/config/
H A Dprograms.py29 if os.path.exists(conftmpDir): os.rmdir(conftmpDir)
30 if os.path.exists(confDir): os.rmdir(confDir)
41 if os.path.exists(conftmpDir): os.rmdir(conftmpDir)
42 if os.path.exists(confDir): os.rmdir(confDir)
134 if os.path.exists('/usr/bin/cygcheck.exe') and not os.path.exists('/usr/bin/diff'):
H A DpreTests.py22 if os.path.exists('/usr/bin/cygcheck.exe'):
34 if os.path.exists('/usr/bin/cygcheck.exe'):
/petsc/config/PETSc/options/
H A Dpetscclone.py21 if os.path.exists(os.path.join(self.petscdir.dir,'lib','petsc','bin','maint')):
23 if os.path.exists(os.path.join(self.petscdir.dir, '.git')):
44 if os.path.exists(os.path.join(self.petscdir.dir, '.git')):
H A DinstallDir.py55 if not os.path.exists(dir):
59 if not os.path.exists(newdir):
80 if self.framework.argDB['with-clean'] and os.path.exists(self.reconfigure_file):
83 if os.path.exists(self.save_reconfigure_file): os.unlink(self.save_reconfigure_file)
/petsc/src/dm/interface/
H A Ddmget.c372 PetscErrorCode DMHasNamedGlobalVector(DM dm, const char *name, PetscBool *exists) in DMHasNamedGlobalVector() argument
379 PetscAssertPointer(exists, 3); in DMHasNamedGlobalVector()
380 *exists = PETSC_FALSE; in DMHasNamedGlobalVector()
385 *exists = PETSC_TRUE; in DMHasNamedGlobalVector()
510 PetscErrorCode DMHasNamedLocalVector(DM dm, const char *name, PetscBool *exists) in DMHasNamedLocalVector() argument
517 PetscAssertPointer(exists, 3); in DMHasNamedLocalVector()
518 *exists = PETSC_FALSE; in DMHasNamedLocalVector()
523 *exists = PETSC_TRUE; in DMHasNamedLocalVector()
/petsc/src/sys/webclient/
H A Dbox.c37 PetscBool exists; in PetscBoxStartWebServer_Private() local
44 PetscCall(PetscTestFile(keyfile, 'r', &exists)); in PetscBoxStartWebServer_Private()
45 if (!exists) { in PetscBoxStartWebServer_Private()
49 PetscCall(PetscTestFile(keyfile, 'r', &exists)); in PetscBoxStartWebServer_Private()
50 …PetscCheck(exists, PETSC_COMM_SELF, PETSC_ERR_FILE_OPEN, "Unable to locate sslclient.pem file in c… in PetscBoxStartWebServer_Private()
H A Dclient.c43 PetscBool exists; in PetscSSLInitializeContext() local
67 PetscCall(PetscTestFile(keyfile, 'r', &exists)); in PetscSSLInitializeContext()
68 if (!exists) { in PetscSSLInitializeContext()
72 PetscCall(PetscTestFile(keyfile, 'r', &exists)); in PetscSSLInitializeContext()
73 …PetscCheck(exists, PETSC_COMM_SELF, PETSC_ERR_FILE_OPEN, "Unable to locate sslclient.pem file in c… in PetscSSLInitializeContext()
/petsc/lib/petsc/bin/
H A Dpetscnagupgrade.py17 if not os.path.exists(file): return 0
68 elif os.path.exists(os.path.join('.', 'include', 'petscversion.h')):
/petsc/config/BuildSystem/config/packages/
H A Dsowing.py72 …if os.path.exists('/usr/bin/cygcheck.exe') and not os.path.exists('/usr/bin/g++.exe') and not self…
H A DBlasLapack.py357 if not os.path.exists(os.path.join(dir,libdir)):
384 if not os.path.exists(os.path.join(dir,libdir)):
392 if not os.path.exists(os.path.join(dir,libdir)):
402 if not os.path.exists(os.path.join(dir,libdir)):
459 if os.path.exists(os.path.join(dir,libdir)):
463 if os.path.exists(os.path.join(dir,libdir)):
471 if os.path.exists(os.path.join(dir,libdir)):
480 if os.path.exists(os.path.join(dir,libdir)):
507 if not os.path.exists(mklpath):
544 if not os.path.exists(mklpath):
[all …]
H A DHIP.py60 if os.path.exists(os.path.join(prefix, 'rocprofiler-sdk-roctx', 'roctx.h')):
66 if os.path.exists(os.path.join(prefix, 'include', 'roctracer')):
72 if os.path.exists(os.path.join(prefix, 'roctracer')):
H A DCUDA.py315 …if 'with-cuda-dir' in self.argDB and os.path.exists(os.path.join(self.argDB['with-cuda-dir'],'incl…
329 …if os.path.exists(os.path.join(d,'..','math_libs')) or os.path.exists(os.path.join(d,'..','..','ma…
331 …if os.path.exists(os.path.join(d,'include','cuda.h')): # CUDAToolkit with a structure /path/{bin/n…
333 …elif os.path.exists(os.path.normpath(os.path.join(d,'..','cuda','include','cuda.h'))): # could be …
/petsc/lib/petsc/bin/maint/
H A Dbk2darcs.py37 if not os.path.exists(bk_repo):
43 if os.path.exists(darcs_repo):
H A Dexampleslog.py63 if os.path.exists(guess): return guess
67 if os.path.exists(guess): return guess
73 if os.path.exists(guess): return guess
77 if os.path.exists(guess): return guess
H A Dbk2hg.py58 if not os.path.exists(bk_repo):
64 if os.path.exists(hg_repo):
/petsc/src/sys/classes/viewer/impls/hdf5/
H A Dhdf5v.c1377 htri_t exists; in PetscViewerHDF5Traverse_Inner_Internal() local
1381 PetscCallHDF5Return(exists, H5Lexists, (h5, name, H5P_DEFAULT)); in PetscViewerHDF5Traverse_Inner_Internal()
1382 if (exists) PetscCallHDF5Return(exists, H5Oexists_by_name, (h5, name, H5P_DEFAULT)); in PetscViewerHDF5Traverse_Inner_Internal()
1383 if (!exists && createGroup) { in PetscViewerHDF5Traverse_Inner_Internal()
1386 exists = PETSC_TRUE; in PetscViewerHDF5Traverse_Inner_Internal()
1388 *exists_ = (PetscBool)exists; in PetscViewerHDF5Traverse_Inner_Internal()
1396 PetscBool exists = PETSC_FALSE; in PetscViewerHDF5Traverse_Internal() local
1434 PetscCall(PetscViewerHDF5Traverse_Inner_Internal(h5, buf, createGroup, &exists)); in PetscViewerHDF5Traverse_Internal()
1435 if (!exists) break; in PetscViewerHDF5Traverse_Internal()
1440 if (exists && otype) { in PetscViewerHDF5Traverse_Internal()
[all …]
/petsc/config/
H A Dconfigure.py217 …if os.path.exists('/usr/bin/cygcheck.exe') and os.path.exists('/usr/bin/link.exe') and chkwincompi…
228 if os.path.exists('/usr/bin/cygcheck.exe'):
267 if os.path.exists('/usr/bin/cygcheck.exe'):
286 if os.path.exists('/etc/redhat-release'):
H A Dreport_tests.py147 if not os.path.exists(probdir):
237 if not os.path.exists(shfile):
247 if not os.path.exists(shfile):
H A Dinstall.py103 if os.path.exists(self.destDir):
137 if not os.path.exists(dst):
220 if not os.path.exists(dst):
321 elif os.path.exists(pathname):
519 if os.path.exists(examplesdir):
590 if not os.path.exists(self.destDir):
631 if os.path.exists(delfile) and (os.stat(delfile).st_uid==0):
/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/
H A Dtest_main.py86 if not reference_file.exists():
169 if rej.exists():
/petsc/src/ksp/ksp/impls/rich/
H A Drich.c28 PetscBool exists, diagonalscale; in KSPSolve_Richardson() local
58 PetscCall(PCApplyRichardsonExists(ksp->pc, &exists)); in KSPSolve_Richardson()
60 …if (exists && maxit > 0 && richardsonP->scale == 1.0 && (ksp->converged == KSPConvergedDefault || … in KSPSolve_Richardson()
/petsc/config/BuildSystem/
H A DRDict.py355 if not os.path.exists(filename):
357 if not os.path.exists(filename):
384 if os.path.exists(addrFilename):
417 if os.path.exists(addrFilename): return
563 if os.path.exists(self.addrFilename):
623 if os.path.exists(self.saveFilename):
H A DsourceDatabase.py250 if os.path.exists(filename):
267 if os.path.exists(os.path.dirname(filename)):
340 if os.path.exists(sys.argv[1]):

123