Home
last modified time | relevance | path

Searched refs:filename (Results 1 – 25 of 211) sorted by relevance

123456789

/petsc/src/sys/tests/
H A Dex47.c8 char filename[PETSC_MAX_PATH_LEN]; in main() local
14 PetscCall(PetscOptionsGetString(NULL, NULL, "-f", filename, sizeof(filename), &flg)); in main()
15 if (flg) PetscCall(PetscOptionsInsertFileYAML(PETSC_COMM_WORLD, NULL, filename, PETSC_TRUE)); in main()
17 PetscCall(PetscOptionsGetString(NULL, NULL, "-yaml", filename, sizeof(filename), &flg)); in main()
24 PetscCall(PetscOptionsInsertFileYAML(PETSC_COMM_WORLD, NULL, filename, PETSC_TRUE)); in main()
27 PetscCall(PetscOptionsGetString(NULL, NULL, "-yamlstr", filename, sizeof(filename), &flg)); in main()
34 PetscCall(PetscOptionsInsertStringYAML(NULL, filename)); in main()
H A Dex82f.F905 character(len=256) :: filename variable
10 filename = 'filename'
12 PetscCallA(PetscTestFile(filename, mode, exists, ierr))
13 write (*, '(A, A, A, I0)') "File ", trim(filename), " doesn't exist = ", merge(1, 0, exists)
/petsc/src/sys/classes/draw/interface/
H A Ddsave.c38 PetscErrorCode PetscDrawSetSave(PetscDraw draw, const char filename[]) in PetscDrawSetSave() argument
46 if (filename) PetscAssertPointer(filename, 2); in PetscDrawSetSave()
49 if (filename && filename[0]) { in PetscDrawSetSave()
50 PetscCall(PetscStrchr(filename, '.', (char **)&imageext)); in PetscDrawSetSave()
51 if (!imageext) savename = filename; in PetscDrawSetSave()
52 else if (imageext != filename) { in PetscDrawSetSave()
54 PetscCall(PetscStrlen(filename, &l1)); in PetscDrawSetSave()
56 PetscCall(PetscStrncpy(buf, filename, sizeof(buf))); in PetscDrawSetSave()
141 PetscErrorCode PetscDrawSetSaveFinalImage(PetscDraw draw, const char filename[]) in PetscDrawSetSaveFinalImage() argument
147 if (!filename || !filename[0]) { in PetscDrawSetSaveFinalImage()
[all …]
/petsc/doc/
H A Dbuild_man_index.py54 for filename in tables[i]:
55 path,name = posixpath.split(filename)
98 def modifylevel(filename,secname,edit_branch): argument
100 with open(filename, "r") as fd:
114 print("Warning. Could not find source path in %s" % filename)
116 print('Error! No location in file:', filename)
125 print('Error! No level info in file:', filename)
143 with open(filename, "w") as fd:
161 for filename in mdfiles:
162 level = modifylevel(filename,secname,editbranch)
[all …]
H A Dfix_man_page_edit_links.py11 def fix_man_page_edit_link(root,filename): argument
12 with open(os.path.join(root,filename)) as f:
22 with open(os.path.join(root,filename),'w') as f:
38 for filename in filenames:
39 if filename.endswith(".html"):
40 fix_man_page_edit_link(root,filename)
/petsc/src/ksp/ksp/tutorials/output/
H A Dex2_help.out35 -malloc_dump <optional filename>: dump list of unfreed memory at conclusion
36 -on_error_malloc_dump <optional filename>: dump list of unfreed memory on memory error
37 -malloc_view <optional filename>: keeps log of all memory allocations, displays in PetscFinalize()
47 -log_view [:filename:[format]]: logging objects and events
48 -log_trace [filename]: prints trace of all PETSc calls
50 -info [filename][:[~]<list,of,classnames>[:[~]self]]: print verbose information
72 …-mat_view ascii[:[filename][:[format][:append]]]: Prints object to stdout or ASCII file (PetscOpti…
73 …-mat_view binary[:[filename][:[format][:append]]]: Saves object to a binary file (PetscOptionsCrea…
74 -mat_view draw[:[drawtype][:filename|format]] Draws object (PetscOptionsCreateViewer)
84 …-ksp_monitor ascii[:[filename][:[format][:append]]]: Prints object to stdout or ASCII file (PetscO…
[all …]
/petsc/share/petsc/matlab/
H A DPetscReadBinaryMatlab.m1 function Set = PetscReadBinaryMatlab(filename)
5 % Input filename can be the name of the binary file with or without
14 if (isempty(strfind(filename,'.info')))
15 filename = [filename,'.info']; variable
17 fid=fopen(filename,'r');
19 error(sprintf('PetscReadBinaryMatlab: cannot load file %s',filename))
29 if strfind(str,'fopen(Set.filename')
30 str = 'fd = PetscOpenFile(Set.filename);';
/petsc/config/BuildSystem/
H A DsourceDatabase.py43 def __init__(self, root, filename = None): argument
47 self.filename = filename
48 if self.filename is None:
49 self.filename = os.path.join(str(root), 'bsSource.db')
228 filename = m.group('includeFile')
230 matchName = filename
231 self.logPrint(' Includes '+filename, 3, 'sourceDB')
233 if s.find(filename) >= 0:
249 filename = str(self.filename)
250 if os.path.exists(filename):
[all …]
/petsc/src/sys/memory/
H A Dmhbw.c27 …size_t a, PetscBool clear, int lineno, const char function[], const char filename[], void **result) in PetscHBWMalloc() argument
30 return PetscMallocAlign(a, clear, lineno, function, filename, result); in PetscHBWMalloc()
49 static PetscErrorCode PetscHBWFree(void *aa, int lineno, const char function[], const char filename in PetscHBWFree() argument
52 return PetscFreeAlign(aa, lineno, function, filename); in PetscHBWFree()
59 … PetscHBWRealloc(size_t a, int lineno, const char function[], const char filename[], void **result) in PetscHBWRealloc() argument
62 return PetscReallocAlign(a, lineno, function, filename, result); in PetscHBWRealloc()
65 int err = PetscFreeAlign(*result, lineno, function, filename); in PetscHBWRealloc()
H A Dmtr.c25 const char *filename; member
123 …d, (PetscLogDouble)lasthead->size, a, lasthead->functionname, lasthead->filename, lasthead->lineno… in PetscMallocValidate()
138 …emory originally allocated in %s() at %s:%d\n", head->functionname, head->filename, head->lineno)); in PetscMallocValidate()
146 …inally allocated in %s() at %s:%d\n", lasthead->functionname, lasthead->filename, lasthead->lineno… in PetscMallocValidate()
147 …emory originally allocated in %s() at %s:%d\n", head->functionname, head->filename, head->lineno)); in PetscMallocValidate()
160 …size_t a, PetscBool clear, int lineno, const char function[], const char filename[], void **result) in PetscTrMallocDefault() argument
172 PetscCall(PetscMallocValidate(lineno, function, filename)); in PetscTrMallocDefault()
175 …gn(nsize + sizeof(TrSPACE) + sizeof(PetscInt), clear, lineno, function, filename, (void **)&inew)); in PetscTrMallocDefault()
189 head->filename = filename; in PetscTrMallocDefault()
239 PetscLogMallocFile[PetscLogMalloc] = filename; in PetscTrMallocDefault()
[all …]
/petsc/src/ts/trajectory/impls/visualization/
H A Dtrajvisualization.c3 static PetscErrorCode OutputBIN(MPI_Comm comm, const char *filename, PetscViewer *viewer) in OutputBIN() argument
9 PetscCall(PetscViewerFileSetName(*viewer, filename)); in OutputBIN()
16 char filename[PETSC_MAX_PATH_LEN]; in TSTrajectorySet_Visualization() local
35 …PetscCall(PetscSNPrintf(filename, sizeof(filename), "Visualization-data/SA-%06" PetscInt_FMT ".bin… in TSTrajectorySet_Visualization()
36 PetscCall(OutputBIN(comm, filename, &viewer)); in TSTrajectorySet_Visualization()
49 …PetscCall(PetscSNPrintf(filename, sizeof(filename), "Visualization-data/SA-%06" PetscInt_FMT ".bin… in TSTrajectorySet_Visualization()
50 PetscCall(OutputBIN(comm, filename, &viewer)); in TSTrajectorySet_Visualization()
/petsc/share/petsc/matlab/@PetscOpenFile/
H A DPetscOpenFile.m1 function O = PetscOpenFile(filename,rw)
3 % O = PetscOpenFile(filename,rw) - opens the binary file (generated by PETSc for reading) or for …
12 S = struct('fd', fopen(filename,rw,'ieee-be'));
16 error(strcat('File ',filename,' opening for read does not exist'))
18 dir = fileparts(filename)
20 error(strcat('Directory ',dir,' does not exist to write file ',filename,'into'))
22 error(strcat('Unable to create file ',filename))
/petsc/src/sys/classes/draw/utils/
H A Dimage.c11 PETSC_EXTERN PetscErrorCode PetscDrawImageSavePPM(const char filename[], unsigned char palette[][3]… in PetscDrawImageSavePPM() argument
19 PetscAssertPointer(filename, 1); in PetscDrawImageSavePPM()
37 PetscCall(PetscBinaryOpen(filename, FILE_MODE_WRITE, &fd)); in PetscDrawImageSavePPM()
48 static PetscErrorCode PetscDrawImageSave_PPM(const char filename[], unsigned char palette[][3], uns… in PetscDrawImageSave_PPM() argument
50 return PetscDrawImageSavePPM(filename, palette, w, h, pixels); in PetscDrawImageSave_PPM()
66 PETSC_EXTERN PetscErrorCode PetscDrawImageSavePNG(const char filename[], unsigned char palette[][3]… in PetscDrawImageSavePNG() argument
74 PetscAssertPointer(filename, 1); in PetscDrawImageSavePNG()
79 PetscCall(PetscFOpen(PETSC_COMM_SELF, filename, "wb", &fp)); in PetscDrawImageSavePNG()
90 SETERRQ(PETSC_COMM_SELF, PETSC_ERR_LIB, "Error writing PNG file %s", filename); in PetscDrawImageSavePNG()
110 static PetscErrorCode PetscDrawImageSave_PNG(const char filename[], unsigned char palette[][3], uns… in PetscDrawImageSave_PNG() argument
[all …]
/petsc/src/sys/fileio/
H A Dfretrieve.c150 char filename[PETSC_MAX_PATH_LEN], tmpname[PETSC_MAX_PATH_LEN]; in PetscSharedTmp() local
158 PetscCall(PetscStrncpy(filename, "/tmp", sizeof(filename))); in PetscSharedTmp()
160 PetscCall(PetscStrncpy(filename, tmpname, sizeof(filename))); in PetscSharedTmp()
163 PetscCall(PetscStrlcat(filename, "/petsctestshared", sizeof(filename))); in PetscSharedTmp()
171 fd = fopen(filename, "w"); in PetscSharedTmp()
172 … PetscCheck(fd, PETSC_COMM_SELF, PETSC_ERR_FILE_OPEN, "Unable to open test file %s", filename); in PetscSharedTmp()
178 fd = fopen(filename, "r"); in PetscSharedTmp()
188 if (rank == i) unlink(filename); in PetscSharedTmp()
269 char filename[PETSC_MAX_PATH_LEN]; in PetscSharedWorkingDirectory() local
275 PetscCall(PetscGetWorkingDirectory(filename, sizeof(filename) - 16)); in PetscSharedWorkingDirectory()
[all …]
/petsc/src/tao/constrained/tutorials/
H A Dmaros.c124 char filename[128]; in InitializeProblem() local
130 PetscCall(PetscStrncpy(filename, filebase, sizeof(filename))); in InitializeProblem()
131 PetscCall(PetscStrlcat(filename, "f", sizeof(filename))); in InitializeProblem()
132 PetscCall(PetscViewerBinaryOpen(comm, filename, FILE_MODE_READ, &loader)); in InitializeProblem()
141 PetscCall(PetscStrncpy(filename, filebase, sizeof(filename))); in InitializeProblem()
142 PetscCall(PetscStrlcat(filename, "H", sizeof(filename))); in InitializeProblem()
143 PetscCall(PetscViewerBinaryOpen(comm, filename, FILE_MODE_READ, &loader)); in InitializeProblem()
154 PetscCall(PetscStrncpy(filename, filebase, sizeof(filename))); in InitializeProblem()
155 PetscCall(PetscStrlcat(filename, "Aeq", sizeof(filename))); in InitializeProblem()
156 PetscCall(PetscViewerBinaryOpen(comm, filename, FILE_MODE_READ, &loader)); in InitializeProblem()
[all …]
/petsc/src/vec/vec/tests/
H A Dex47.c12 char filename[PETSC_MAX_PATH_LEN]; in main() local
17 PetscCall(PetscOptionsGetString(NULL, NULL, "-filename", filename, sizeof(filename), &flg)); in main()
18 if (!flg) PetscCall(PetscStrncpy(filename, "x.h5", sizeof(filename))); in main()
24 PetscCall(PetscViewerHDF5Open(PETSC_COMM_WORLD, filename, FILE_MODE_WRITE, &H5viewer)); in main()
41 PetscCall(PetscViewerHDF5Open(PETSC_COMM_WORLD, filename, FILE_MODE_READ, &H5viewer)); in main()
/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/
H A Dqueue_main.py27 def __init__(self, filename: str, *args, **kwargs) -> None:
29 self._main_loop_error_filename = filename
33 def __handle_error(error_prefix: str, filename: str, error_queue: ParallelPool.ErrorQueueType, file…
68 filename = ret.data
69 assert isinstance(filename, Path)
73 errors_left, errors_fixed, warnings, patches = linter.parse(filename).diagnostics()
84 raise MainLoopError(str(filename)) from exc
162 filename = 'QUEUE SETUP'
186 filename = base_e._main_loop_error_filename
190 __handle_error(error_prefix, str(filename), error_queue, file_queue, base_e)
/petsc/src/sys/classes/viewer/impls/adios/
H A Dadios.c30 PetscCall(PetscFree(adios->filename)); in PetscViewerFileClose_ADIOS()
61 if (adios->filename) PetscCall(PetscFree(adios->filename)); in PetscViewerFileSetName_ADIOS()
62 PetscCall(PetscStrallocpy(name, &adios->filename)); in PetscViewerFileSetName_ADIOS()
66 …adios->adios_fp = adios_read_open_file(adios->filename, ADIOS_READ_METHOD_BP, PetscObjectComm((Pet… in PetscViewerFileSetName_ADIOS()
69 …adios_open(&adios->adios_handle, "PETSc", adios->filename, "w", PetscObjectComm((PetscObject)viewe… in PetscViewerFileSetName_ADIOS()
84 *name = vadios->filename; in PetscViewerFileGetName_ADIOS()
111 adios->filename = NULL; in PetscViewerCreate_ADIOS()
/petsc/src/sys/tutorials/
H A Dex5.c43 char filename[PETSC_MAX_PATH_LEN]; member
53 char filename[PETSC_MAX_PATH_LEN] = "binaryoutput"; in main() local
74 …PetscCall(PetscBagRegisterString(bag, &params->filename, PETSC_MAX_PATH_LEN, "myfile", "filename",… in main()
97 PetscCall(PetscOptionsGetString(NULL, NULL, "-f", filename, sizeof(filename), &flg)); in main()
101 PetscCall(PetscViewerBinaryOpen(PETSC_COMM_WORLD, filename, FILE_MODE_WRITE, &viewer)); in main()
109 PetscCall(PetscViewerBinaryOpen(PETSC_COMM_WORLD, filename, FILE_MODE_READ, &viewer)); in main()
/petsc/src/dm/impls/network/
H A Dnetworkview.c94 …char filename[PETSC_MAX_PATH_LEN + 1], options[512], proccall[PETSC_MAX_PATH_LEN + 512], sc… in DMView_Network_Matplotlib() local
113 PetscCall(PetscMemzero(filename, sizeof(filename))); in DMView_Network_Matplotlib()
147 …PetscCheck(tmpnam_s(filename, sizeof(filename)) == 0, comm, PETSC_ERR_SYS, "Could not acquire temp… in DMView_Network_Matplotlib()
154 …PetscCall(PetscOptionsGetString(NULL, NULL, "-dmnetwork_view_tmpdir", filename, sizeof(filename), … in DMView_Network_Matplotlib()
159 PetscCall(PetscGetTmp(PETSC_COMM_SELF, filename, sizeof(filename))); in DMView_Network_Matplotlib()
162 PetscCall(PetscStrlen(filename, &numChars)); in DMView_Network_Matplotlib()
163 if (filename[numChars - 1] != '/') { in DMView_Network_Matplotlib()
164 filename[numChars] = '/'; in DMView_Network_Matplotlib()
165 filename[numChars + 1] = 0; in DMView_Network_Matplotlib()
168 PetscCall(PetscStrlcat(filename, "XXXXXX", sizeof(filename))); in DMView_Network_Matplotlib()
[all …]
/petsc/src/mat/tests/
H A Dex220.c9 char filename[PETSC_MAX_PATH_LEN]; in main() local
14 PetscCall(PetscOptionsGetString(NULL, NULL, "-f", filename, sizeof(filename), &flg)); in main()
17 PetscCall(PetscViewerBinaryOpen(PETSC_COMM_WORLD, filename, FILE_MODE_READ, &viewer)); in main()
/petsc/src/dm/impls/moab/tests/
H A Dex1.cxx18 char filename[PETSC_MAX_PATH_LEN]; member
27 PetscCall(PetscStrncpy(options->filename, "", sizeof(options->filename))); in ProcessOptions()
33 …he file containing the mesh", "ex1.cxx", options->filename, options->filename, sizeof(options->fil… in ProcessOptions()
57 if (strlen(user->filename) > 0) { in CreateMesh()
58 merr = iface->load_file(user->filename); in CreateMesh()
60 std::cout << "Read mesh from file " << user->filename << std::endl; in CreateMesh()
/petsc/src/benchmarks/
H A DbenchmarkBatch.py24 filename = namePattern % (num, n)
25 f = file(filename)
33 with file(filename, 'w') as f:
35 return filename
/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/util/
H A D_utility.py410 filename = diag.location.file.name
414 basename, filename = os.path.split(filename)
415 if filename not in diags:
418 diags[filename] = (basename,diag)
435 filename = child.location.file.name
440 if filename != mega_header_name:
442 basename, filename = os.path.split(filename)
443 if filename not in diags:
444 diags[filename] = (basename, diag)
/petsc/src/dm/impls/plex/tests/
H A Dex34.c6 char filename[PETSC_MAX_PATH_LEN]; /* Import mesh from file */ member
14 options->filename[0] = '\0'; in ProcessOptions()
19 …g("-filename", "The mesh file", "ex8.c", options->filename, options->filename, sizeof(options->fil… in ProcessOptions()
148 const char *filename = user->filename; in CreateMesh() local
154 PetscCall(PetscStrlen(filename, &len)); in CreateMesh()
156 PetscCall(DMPlexCreateFromFile(comm, filename, "ex34_plex", PETSC_FALSE, dm)); in CreateMesh()

123456789