| /petsc/src/binding/petsc4py/conf/ |
| H A D | stubgen.py | 64 def add(self, lines): argument 65 if lines is None: 67 if isinstance(lines, str): 68 lines = textwrap.dedent(lines).strip().split('\n') 70 for line in lines: 178 lines = Lines() 189 lines.add = '@final' 192 lines.add = f'class {cls_name}:' 194 lines.add = f'class {cls_name}({base.__name__}):' 195 lines.level += 1 [all …]
|
| /petsc/src/binding/petsc4py/docs/source/ |
| H A D | apidoc.py | 72 def add(self, lines): argument 73 if lines is None: 75 if isinstance(lines, str): 76 lines = textwrap.dedent(lines).strip().split('\n') 78 for line in lines: 122 lines = docbody.split('\n') 123 for i, line in enumerate(lines): 134 if lines[0] not in init: 249 lines = Lines() 253 lines.add = f'class {cls_name}:' [all …]
|
| /petsc/config/BuildSystem/config/ |
| H A D | framework.py | 457 lines = output.splitlines() 459 …lines = [s for s in lines if s.find("icc: command line remark #10148: option '-i-dynamic' not supp… 460 …lines = [s for s in lines if s.find("[: unexpected operator") < 0] # Deals with error in mpiicc a… 461 lines = [s for s in lines if s.find(': remark #10441:') < 0] 462 lines = [s for s in lines if s.find("'linker' input unused") < 0] 464 lines = [s for s in lines if not s.startswith('cc_r:')] 466 lines = [s for s in lines if s.find('license.dat') < 0] 468 lines = [s for s in lines if s.find('INFO: catamount target') < 0] 469 lines = [s for s in lines if s.find('INFO: linux target') < 0] 471 lines = [s for s in lines if s.find('Encountered 0 errors') < 0] [all …]
|
| /petsc/lib/petsc/bin/maint/ |
| H A D | petscdt_create_quadrature_headers.py | 152 lines = [] 153 lines.append(f"""// Minimal symmetric quadrature rules for a {rules['type']} from {rules['url']} 165 lines.append(f"static const PetscReal {prefix}_{key}_weights[] = {{"); 167 lines.append(f"{weights}") 168 lines.append("};") 169 lines.append("") 170 lines.append(f"static const PetscReal {prefix}_{key}_orbits[] = {{"); 178 lines.append(fmt) 179 lines.append("};") 180 lines.append("") [all …]
|
| H A D | check_header_guard.py | 296 def do_replacement(replacer: _T, lines: Iterable[str]) -> list[str]: 328 lines = replacer.prologue(list(lines)) 329 for i, line in enumerate(lines): 369 lines = path.read_text().splitlines() 371 ret = do_replacement(repl, lines) 378 difflib.unified_diff(lines, ret, fromfile='actual', tofile='expected', lineterm='')
|
| H A D | gcov.py | 627 for file_name, lines in untested_code_by_branch.items(): 628 gcov_logger.log_error('-', len(lines), 'line(s) in', file_name) 631 for file_name, lines in untested_code_by_branch.items(): 635 for line in lines:
|
| /petsc/lib/petsc/bin/ |
| H A D | xml2flamegraph.py | 46 lines = [] 49 lines.append(make_line(callstack, time, total_time)) 56 lines.extend(traverse_children(event.events, total_time, callstack)) 60 lines.append(make_line(callstack+[event], time, total_time)) 61 return lines 84 lines = traverse_children(root, total_time) 87 f.write("\n".join(lines))
|
| H A D | petsc_tas_style.mplstyle | 9 lines.linewidth : 5 10 lines.markersize : 20
|
| H A D | extract.py | 18 lines = codefile.read() 20 list_of_comments = comment_finder(lines)
|
| H A D | getAPI.py | 690 lines = fd.read().split('\n') 691 for line in lines: 696 lines = fd.read().split('\n') 697 for line in lines:
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/ |
| H A D | test_main.py | 104 lines = text.splitlines(True) 105 out_file = lines[0].split()[1] 106 lines[0] = lines[0].replace(out_file, str(new_path)) 107 lines[1] = lines[1].replace(out_file, str(new_path)) 108 return ''.join(lines)
|
| /petsc/src/binding/petsc4py/src/petsc4py/lib/ |
| H A D | __init__.py | 150 lines = [ln.strip() for ln in rcdata.splitlines()] 151 lines = [ln for ln in lines if not ln.startswith('#')] 152 entries = [ln.split('=') for ln in lines if ln]
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/docs/ |
| H A D | _doc_section_base.py | 283 return bool(self.lines()) 299 def lines(self, headings_only: bool = False) -> list[tuple[SourceRange, str, Verdict]]: member in SectionBase 330 self.lines().extend(data) 331 self.raw = '\n'.join(s for _, s, _ in self.lines()) 332 self.extent = SourceRange.from_locations(self.lines()[0][0].start, self.lines()[-1][0].end) 350 for loc, line, verdict in self.lines(): 387 lines = self.lines() 388 return not self.items and sum(not line.strip() for _, line, _ in lines) == len(lines) - 1 457 highlight = len(self.lines()) == 1 484 headings = self.lines(headings_only=True) [all …]
|
| /petsc/src/tao/leastsquares/tutorials/matlab/more_wild_probs/ |
| H A D | perf_profile.m | 18 % The subroutine returns a handle to lines in a performance profile. 55 % Other colors, lines, and markers are easily possible: 56 colors = ['b' 'r' 'k' 'm' 'c' 'g' 'y']; lines = {'-' '-.' '--'}; 81 option1 = [char(lines(sl)) colors(sc) markers(sm)];
|
| /petsc/share/petsc/matlab/ |
| H A D | PetscReadBinaryMatlab.m | 2 % PETSCREADBINARYMATLAB - Reads and interprets MATLAB specific lines 24 % check for output lines that start matlabHeader
|
| /petsc/src/ksp/pc/impls/spai/ |
| H A D | ispai.c | 577 M->lines = new_compressed_lines(M->mnls[rank], 1); in ConvertMatToMatrix() 579 M->lines = new_compressed_lines(M->mnls[rank], 0); in ConvertMatToMatrix() 582 rows = M->lines; in ConvertMatToMatrix() 674 for (k = 0; k < B->lines->len[i]; k++) { in ConvertMatrixToMat() 675 global_col = B->lines->ptrs[i][k]; in ConvertMatrixToMat() 691 for (k = 0; k < B->lines->len[i]; k++) { in ConvertMatrixToMat() 692 global_col = B->lines->ptrs[i][k]; in ConvertMatrixToMat() 694 val = B->lines->A[i][k]; in ConvertMatrixToMat()
|
| /petsc/doc/ext/ |
| H A D | html5_petsc.py | 199 lines = [l for l in f.readlines() if l.startswith('man:')] 202 for line in lines:
|
| /petsc/src/ts/tutorials/power_grid/ |
| H A D | ex7.m | 3 % format for visualizing. Removes the first 49 y grid lines since they have noise from the initial
|
| /petsc/share/petsc/ |
| H A D | CMakeLists.txt | 25 # Remove the lines below if you do not wish to have PETSc determine the compilers
|
| /petsc/config/PETSc/ |
| H A D | petsc.py | 322 lines = [] 341 lines.append('#define PETSC_VERSION_DATE'+m5.group(1)+'"'+self.date+'"\n') 343 lines.append(line)
|
| /petsc/doc/developers/ |
| H A D | style.md | 134 on the same line if possible; otherwise, they should be listed on adjacent lines. Note 283 16. Developers can use // to split very long lines when it improves code readability. For example 293 be used when trailing // to split lines works. 332 lines in the header. For example, do 358 // ERROR, empty lines at the beginning of the header 399 // many lines of code 401 // many more lines of code 617 Sowing. All entries below should be separated by blank lines. Except 685 This includes each item listed in the `.seealso:` lines.
|
| /petsc/config/ |
| H A D | install.py | 160 lines = [] 273 lines = [] 288 lines.append(line) 291 newFile.write(''.join(lines))
|
| /petsc/doc/changes/ |
| H A D | 231.md | 111 code is in fixed form - there could be errors with lines exceeding
|
| /petsc/doc/miscellaneous/ |
| H A D | applications_publications.md | 37 are lines of constant temperature (the upper surface is cold, the deep mantle is hot);
|
| /petsc/doc/tutorials/meshing/ |
| H A D | guide_to_subsurface.md | 85 :lines: 1-3
|