| /petsc/lib/petsc/bin/maint/ |
| H A D | exampleslog.py | 110 fname=os.path.relpath(filename,self.petsc_dir).replace("src/","") 116 if not fname in testDict: 117 testDict[fname]={} 118 testDict[fname]['gitPerson']=str(self.getGitPerson(filename)) 120 if testname in testDict[fname]: 121 if error in testDict[fname][testname]['errors']: 122 testDict[fname][testname]['errors'][error].append(lfile) 124 testDict[fname][testname]['errors'][error]=[lfile] 127 testDict[fname][testname]={} 129 testDict[fname][testname]['errors']={} [all …]
|
| /petsc/src/sys/fileio/ftn-custom/ |
| H A D | zmprintf.c | 44 PETSC_EXTERN void petscfprintf_(MPI_Comm *comm, FILE **file, char *fname, PetscErrorCode *ierr, PET… in petscfprintf_() argument 48 FIXCHAR(fname, len1, c1); in petscfprintf_() 51 FREECHAR(fname, c1); in petscfprintf_() 57 PETSC_EXTERN void petscprintf_(MPI_Comm *comm, char *fname, PetscErrorCode *ierr, PETSC_FORTRAN_CHA… in petscprintf_() argument 61 FIXCHAR(fname, len1, c1); in petscprintf_() 64 FREECHAR(fname, c1); in petscprintf_() 70 PETSC_EXTERN void petscsynchronizedfprintf_(MPI_Comm *comm, FILE **file, char *fname, PetscErrorCod… in petscsynchronizedfprintf_() argument 74 FIXCHAR(fname, len1, c1); in petscsynchronizedfprintf_() 77 FREECHAR(fname, c1); in petscsynchronizedfprintf_() 83 PETSC_EXTERN void petscsynchronizedprintf_(MPI_Comm *comm, char *fname, PetscErrorCode *ierr, PETSC… in petscsynchronizedprintf_() argument [all …]
|
| H A D | zmpiuopenf.c | 15 PETSC_EXTERN void petscfopen_(MPI_Comm *comm, char *fname, char *fmode, FILE **file, PetscErrorCode… in petscfopen_() argument 19 FIXCHAR(fname, len1, c1); in petscfopen_() 23 FREECHAR(fname, c1); in petscfopen_()
|
| /petsc/src/sys/fileio/ |
| H A D | ftest.c | 24 static PetscErrorCode PetscTestOwnership(const char fname[], char mode, uid_t fuid, gid_t fgid, int… in PetscTestOwnership() argument 34 if (!access(fname, m)) { in PetscTestOwnership() 35 PetscCall(PetscInfo(NULL, "System call access() succeeded on file %s\n", fname)); in PetscTestOwnership() 38 …PetscCall(PetscInfo(NULL, "System call access() failed on file %s due to \"%s\"\n", fname, strerro… in PetscTestOwnership() 42 … != X_OK, PETSC_COMM_SELF, PETSC_ERR_SUP, "Unable to check execute permission for file %s", fname); in PetscTestOwnership() 43 if (!_access(fname, m)) *flg = PETSC_TRUE; in PetscTestOwnership() 50 static PetscErrorCode PetscTestOwnership(const char fname[], char mode, uid_t fuid, gid_t fgid, int… in PetscTestOwnership() argument 113 static PetscErrorCode PetscGetFileStat(const char fname[], uid_t *fileUid, gid_t *fileGid, int *fil… in PetscGetFileStat() argument 122 ierr = stat((char *)fname, &statbuf); in PetscGetFileStat() 124 ierr = stat(fname, &statbuf); in PetscGetFileStat() [all …]
|
| H A D | mpiuopen.c | 35 char fname[PETSC_MAX_PATH_LEN], tname[PETSC_MAX_PATH_LEN]; in PetscFOpen() local 48 PetscCall(PetscFixFilename(tname, fname)); in PetscFOpen() 49 PetscCall(PetscStrbeginswith(fname, "/dev/null", &devnull)); in PetscFOpen() 50 if (devnull) PetscCall(PetscStrncpy(fname, "/dev/null", sizeof(fname))); in PetscFOpen() 51 PetscCall(PetscInfo(0, "Opening file %s\n", fname)); in PetscFOpen() 52 fd = fopen(fname, mode); in PetscFOpen() 53 PetscCheck(fd, PETSC_COMM_SELF, PETSC_ERR_FILE_OPEN, "Unable to open file %s", fname); in PetscFOpen()
|
| H A D | sysio.c | 290 char *fname = NULL; in PetscBinaryRead() local 300 fname = (char *)malloc(m * sizeof(char)); in PetscBinaryRead() 301 p = fname; in PetscBinaryRead() 302 ptmp = (void *)fname; in PetscBinaryRead() 303 PetscCheck(fname, PETSC_COMM_SELF, PETSC_ERR_MEM, "Cannot allocate space for function name"); in PetscBinaryRead() 352 PetscCall(PetscDLSym(NULL, fname, (void **)data)); in PetscBinaryRead() 356 free(fname); in PetscBinaryRead() 406 char *fname = NULL; in PetscBinaryWrite() local 423 fname = (char *)malloc(m * sizeof(char)); in PetscBinaryWrite() 424 PetscCheck(fname, PETSC_COMM_SELF, PETSC_ERR_MEM, "Cannot allocate space for function name"); in PetscBinaryWrite() [all …]
|
| H A D | fdir.c | 17 static PetscErrorCode PetscPathJoin(const char dname[], const char fname[], size_t n, char fullname… in PetscPathJoin() argument 23 PetscCall(PetscStrlen(fname, &l2)); in PetscPathJoin() 27 PetscCall(PetscStrlcat(fullname, fname, n)); in PetscPathJoin()
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex51.c | 8 char fname[PETSC_MAX_PATH_LEN]; /* Output mesh filename */ member 16 options->fname[0] = '\0'; in ProcessOptions() 18 …("-fname", "The output mesh file", "ex51.c", options->fname, options->fname, sizeof(options->fname… in ProcessOptions() 37 PetscCall(PetscViewerHDF5Open(PETSC_COMM_WORLD, user.fname, FILE_MODE_WRITE, &viewer)); in main() 77 PetscCall(PetscViewerHDF5Open(PETSC_COMM_WORLD, user.fname, FILE_MODE_READ, &viewer)); in main()
|
| H A D | ex21.c | 129 char fname[PETSC_MAX_PATH_LEN]; /* Output mesh filename */ member 138 options->fname[0] = '\0'; in ProcessOptions() 140 …("-fname", "The output mesh file", "ex12.c", options->fname, options->fname, sizeof(options->fname… in ProcessOptions() 171 PetscCall(PetscViewerHDF5Open(comm, user.fname, FILE_MODE_WRITE, &viewer)); in main() 332 PetscCall(PetscViewerHDF5Open(comm, user.fname, FILE_MODE_READ, &viewer)); in main()
|
| /petsc/src/mat/tests/ |
| H A D | ex152.c | 36 char fname[PETSC_MAX_PATH_LEN], prefix[PETSC_MAX_PATH_LEN] = ""; in main() local 56 PetscCall(PetscSNPrintf(fname, sizeof(fname), "%s.%d.graph", prefix, rank)); in main() 58 PetscCall(PetscFOpen(PETSC_COMM_SELF, fname, "r", &fp)); in main() 79 PetscCall(PetscSNPrintf(fname, sizeof(fname), "%s.%d.graph.xyz", prefix, rank)); in main() 80 PetscCall(PetscFOpen(PETSC_COMM_SELF, fname, "r", &fp)); in main()
|
| H A D | mmio.c | 16 int mm_read_unsymmetric_sparse(const char *fname, int *M_, int *N_, int *nz_, double **val_, int **… in mm_read_unsymmetric_sparse() argument 25 if ((f = fopen(fname, "r")) == NULL) return -1; in mm_read_unsymmetric_sparse() 29 printf(" in file [%s]\n", fname); in mm_read_unsymmetric_sparse() 249 int mm_read_mtx_crd(char *fname, int *M, int *N, int *nz, int **ia, int **ja, double **val, MM_type… in mm_read_mtx_crd() argument 254 if (strcmp(fname, "stdin") == 0) f = stdin; in mm_read_mtx_crd() 255 else if ((f = fopen(fname, "r")) == NULL) return MM_COULD_NOT_READ_FILE; in mm_read_mtx_crd() 296 int mm_write_mtx_crd(char fname[], int M, int N, int nz, int ia[], int ja[], double val[], MM_typec… in mm_write_mtx_crd() argument 301 if (strcmp(fname, "stdout") == 0) f = stdout; in mm_write_mtx_crd() 302 else if ((f = fopen(fname, "w")) == NULL) return MM_COULD_NOT_WRITE_FILE; in mm_write_mtx_crd()
|
| /petsc/src/sys/classes/viewer/impls/vu/ |
| H A D | petscvu.c | 87 char fname[PETSC_MAX_PATH_LEN]; in PetscViewerFileSetName_VU() local 96 PetscCall(PetscFixFilename(name, fname)); in PetscViewerFileSetName_VU() 99 vu->fd = fopen(fname, "r"); in PetscViewerFileSetName_VU() 102 vu->fd = fopen(fname, "w"); in PetscViewerFileSetName_VU() 105 vu->fd = fopen(fname, "a"); in PetscViewerFileSetName_VU() 108 vu->fd = fopen(fname, "r+"); in PetscViewerFileSetName_VU() 109 if (!vu->fd) vu->fd = fopen(fname, "w+"); in PetscViewerFileSetName_VU() 115 vu->fd = fopen(fname, "r+"); in PetscViewerFileSetName_VU() 116 if (!vu->fd) vu->fd = fopen(fname, "w+"); in PetscViewerFileSetName_VU() 126 …etscCheck(vu->fd, PETSC_COMM_SELF, PETSC_ERR_FILE_OPEN, "Cannot open PetscViewer file: %s", fname); in PetscViewerFileSetName_VU()
|
| /petsc/src/vec/is/tests/ |
| H A D | ex5.c | 92 char fname[PETSC_MAX_PATH_LEN]; /* Output mesh filename */ member 99 options->fname[0] = '\0'; in ProcessOptions() 102 …String("-fname", "The output file", "ex5.c", options->fname, options->fname, sizeof(options->fname… in ProcessOptions() 195 PetscCall(PetscViewerHDF5Open(comm, user.fname, FILE_MODE_WRITE, &viewer)); in main() 228 PetscCall(PetscViewerHDF5Open(comm, user.fname, FILE_MODE_READ, &viewer)); in main()
|
| H A D | ex8.c | 46 char fname[PETSC_MAX_PATH_LEN], fnameh[PETSC_MAX_PATH_LEN]; in main() local 76 PetscCall(PetscSNPrintf(fname, PETSC_STATIC_ARRAY_LENGTH(fname), "testfile_seq_%d", rank)); in main() 77 PetscCall(PetscViewerBinaryOpen(PETSC_COMM_SELF, fname, FILE_MODE_WRITE, &vx)); in main() 88 …PetscCall(PetscSNPrintf(fnameh, PETSC_STATIC_ARRAY_LENGTH(fname), "testfile_noheader_seq_%d", rank… in main() 131 PetscCall(PetscViewerBinaryOpen(PETSC_COMM_SELF, fname, FILE_MODE_READ, &vx)); in main()
|
| /petsc/src/dm/tutorials/ |
| H A D | ex21.c | 209 char fname[PETSC_MAX_PATH_LEN]; in pic_advect() local 212 … PetscCall(PetscSNPrintf(fname, PETSC_MAX_PATH_LEN - 1, "step%.4" PetscInt_FMT "_dms.xmf", tk)); in pic_advect() 213 PetscCall(DMSwarmViewXDMF(swarm, fname)); in pic_advect() 221 … PetscCall(PetscSNPrintf(fname, PETSC_MAX_PATH_LEN - 1, "step%.4" PetscInt_FMT "_dmda.vts", tk)); in pic_advect() 222 PetscCall(PetscViewerFileSetName(viewer, fname)); in pic_advect() 226 … PetscCall(PetscSNPrintf(fname, PETSC_MAX_PATH_LEN - 1, "step%.4" PetscInt_FMT "_dmplex.vtk", tk)); in pic_advect() 227 PetscCall(PetscViewerFileSetName(viewer, fname)); in pic_advect()
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/ |
| H A D | test_main.py | 23 def __init__(self, fname: Path) -> None: 24 self.fname = fname.resolve(strict=True) 28 self.tmp = tempfile.NamedTemporaryFile(suffix=self.fname.suffix) 30 shutil.copy2(str(self.fname), str(self.temp_path))
|
| /petsc/src/sys/classes/viewer/impls/matlab/ |
| H A D | vmatlab.c | 276 char fname[PETSC_MAX_PATH_LEN]; in PETSC_VIEWER_MATLAB_() local 284 …PetscCallNull(PetscOptionsGetenv(ncomm, "PETSC_VIEWER_MATLAB_FILENAME", fname, PETSC_MAX_PATH_LEN,… in PETSC_VIEWER_MATLAB_() 285 if (!flg) PetscCallNull(PetscStrncpy(fname, "matlaboutput.mat", sizeof(fname))); in PETSC_VIEWER_MATLAB_() 286 PetscCallNull(PetscViewerMatlabOpen(ncomm, fname, FILE_MODE_WRITE, &viewer)); in PETSC_VIEWER_MATLAB_()
|
| /petsc/src/dm/tests/ |
| H A D | ex11.c | 14 char fname[32]; in main() local 37 PetscCall(PetscSNPrintf(fname, PETSC_STATIC_ARRAY_LENGTH(fname), "Field %" PetscInt_FMT, i)); in main() 38 PetscCall(DMDASetFieldName(da, i, fname)); in main()
|
| /petsc/share/petsc/matlab/ |
| H A D | UFgetPetscMat.m | 31 fname = ['mat/A',num2str(i)]; variable 32 fprintf ('write matrix into PETSc binary file %s ...\n',fname); 33 PetscBinaryWrite(fname,Problem.A);
|
| /petsc/src/sys/info/ |
| H A D | verboseinfo.c | 99 char fname[PETSC_MAX_PATH_LEN], tname[11]; in PetscInfoSetFile() local 103 PetscCall(PetscFixFilename(filename, fname)); in PetscInfoSetFile() 104 PetscCall(PetscStrallocpy(fname, &PetscInfoFilename)); in PetscInfoSetFile() 107 PetscCall(PetscStrlcat(fname, tname, PETSC_STATIC_ARRAY_LENGTH(fname))); in PetscInfoSetFile() 112 PetscCall(PetscFOpen(PETSC_COMM_SELF, fname, mode, &PetscInfoFile)); in PetscInfoSetFile() 119 PetscCall(PetscInfo(NULL, "Opened PetscInfo file %s\n", fname)); in PetscInfoSetFile()
|
| /petsc/config/ |
| H A D | query_tests.py | 164 fname=nameSpace(defroot,os.path.relpath(root,srcdir)) 166 invDict['name'].append(fname) 174 invDict[field][val].append(fname) 176 invDict[field][val] = [fname] 183 invDict[field][val].append(fname) 185 invDict[field][val] = [fname]
|
| /petsc/config/BuildSystem/config/packages/ |
| H A D | libflame.py | 64 fname = os.path.join(self.packageDir,'Makefile') 67 with open(fname,'r') as file: 70 with open(fname,'w') as file:
|
| /petsc/src/vec/is/section/interface/hdf5/ |
| H A D | sectionhdf5.c | 99 char fname[PETSC_MAX_PATH_LEN]; in PetscSectionView_HDF5_Internal() local 103 PetscCall(PetscSNPrintf(fname, sizeof(fname), "field%" PetscInt_FMT, f)); in PetscSectionView_HDF5_Internal() 104 PetscCall(PetscViewerHDF5PushGroup(viewer, fname)); in PetscSectionView_HDF5_Internal() 294 char fname[PETSC_MAX_PATH_LEN]; in PetscSectionLoad_HDF5_Internal() local 298 PetscCall(PetscSNPrintf(fname, sizeof(fname), "field%" PetscInt_FMT, f)); in PetscSectionLoad_HDF5_Internal() 299 PetscCall(PetscViewerHDF5PushGroup(viewer, fname)); in PetscSectionLoad_HDF5_Internal()
|
| /petsc/src/sys/objects/ |
| H A D | optionsyaml.c | 241 char fname[PETSC_MAX_PATH_LEN]; in PetscOptionsInsertFileYAML() local 246 PetscCall(PetscFixFilename(fpath, fname)); in PetscOptionsInsertFileYAML() 248 fd = fopen(fname, "r"); in PetscOptionsInsertFileYAML() 253 …Length >= 0, PETSC_COMM_SELF, PETSC_ERR_FILE_OPEN, "Unable to query size of YAML file: %s", fname); in PetscOptionsInsertFileYAML() 256 …_t)yamlLength, PETSC_COMM_SELF, PETSC_ERR_FILE_READ, "Unable to read entire YAML file: %s", fname); in PetscOptionsInsertFileYAML()
|
| H A D | init.c | 96 …char pfile[PETSC_MAX_PATH_LEN], pname[PETSC_MAX_PATH_LEN], fname[PETSC_MAX_PATH_LEN], date[… in PetscOpenHistoryFile() local 109 PetscCall(PetscFixFilename(filename, fname)); in PetscOpenHistoryFile() 113 PetscCall(PetscFixFilename(pfile, fname)); in PetscOpenHistoryFile() 116 *fd = fopen(fname, "a"); in PetscOpenHistoryFile() 117 PetscCheck(fd, PETSC_COMM_SELF, PETSC_ERR_FILE_OPEN, "Cannot open file: %s", fname); in PetscOpenHistoryFile() 558 char name[PETSC_MAX_PATH_LEN], fname[PETSC_MAX_PATH_LEN]; in PetscOptionsCheckInitial_Private() local 562 PetscCall(PetscFixFilename(name, fname)); in PetscOptionsCheckInitial_Private() 563 file = fopen(fname, "w"); in PetscOptionsCheckInitial_Private() 564 … PetscCheck(file, PETSC_COMM_SELF, PETSC_ERR_FILE_OPEN, "Unable to open trace file: %s", fname); in PetscOptionsCheckInitial_Private()
|