| /petsc/src/binding/petsc4py/src/petsc4py/lib/ |
| H A D | __init__.pyi | 4 def ImportPETSc(arch: str | None = ...) -> ModuleType: ... 5 def getPathArchPETSc(arch: str | None = ...) -> tuple[str, str]: ... 8 def Import(pkg: str, name: str, path: str, arch: str) -> ModuleType: ... 9 def getPathArch(path: str, arch: str, rcvar: str = ..., rcfile: str = ...) -> tuple[str, str]: ... 10 def getInitArgs(args: str | list[str] | None) -> list[str]: ...
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/ |
| H A D | _diag.py | 29 def _fuzzy_get_attribute(self, in_diags: dict[str, str], in_attr: str) -> tuple[bool, str]: argument 39 def __getattr__(self, attr: str) -> str: argument 42 return TYPE_CAST(str, getattr(diag_map, attr)) 62 _diags: dict[str, dict[str, str]] 65 def _sanitize_input(input_it: Iterable[str]) -> dict[str, str]: argument 72 def __getattr__(self, attr: str) -> str: argument 110 def update(self, obj: Any, other: Iterable[str], **kwargs) -> None: argument 124 _registered: dict[str, str] = {} 126 disabled: set[str] 127 flagprefix: str [all …]
|
| H A D | _util.py | 39 def view(self, *args) -> str: 43 return ' '*self+' '.join(map(str, args)) 56 def fully_qualify(t: clx.Type) -> list[str]: 63 def view_type(t: clx.Type, level: IndentLevel, title: str) -> list[str]: argument 67 ret_list = [level.view(title, str(t.kind), ' '.join(fully_qualify(t)))] 72 …] = verbose_print, level: IndentLevel = IndentLevel(), max_depth: int = -1, **kwargs) -> list[str]: 76 ret_list: list[str] = [] 95 def read_file_lines_cached(*args, **kwargs) -> list[str]: 97 ret: list[str] = fd.readlines() 100 … num_after_context: int = 0, num_context: int = 0, trim: bool = False, tight: bool = False) -> str: [all …]
|
| /petsc/share/petsc/matlab/ |
| H A D | PetscReadBinaryMatlab.m | 21 str=fgets(fid); 22 while (ischar(str)) 25 …if strncmp(str,matlabHeader(1,:),matlabHeaderLen) || strncmp(str,matlabHeader(2,:),matlabHeaderLen) 26 str = str(1+matlabHeaderLen:end); variable 29 if strfind(str,'fopen(Set.filename') 30 str = 'fd = PetscOpenFile(Set.filename);'; variable 31 elseif strfind(str,'if (fd < 0) error'); % ignore this line 32 str = '%'; variable 33 elseif strfind(str,'fclose(fd)'); 34 str = 'close(fd);'; variable [all …]
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/ |
| H A D | pkg_consistency_checks.py | 10 def assert_py_versions_match(config_file: str, toml_data: dict[str, Any]) -> None: argument 13 def tuplify_version_str(version_str: str) -> tuple[int, int, int]: argument 14 assert isinstance(version_str, str) 31 def assert_version_match(tool_name: str, version_str: str) -> None: argument 42 assert_version_match('vermin', str(toml_data['vermin']['targets'])) 45 def assert_requirements_match(toml_file: str, toml_data: dict[str, Any], req_file: str, req_lines: … argument 54 def load_toml_data(toml_path: str) -> dict[str, Any]: argument 72 toml_data: dict[str, Any] = tomllib.load(fd) 75 def load_requirements_data(req_path: str) -> list[str]: argument 76 ret: list[str] = [] [all …]
|
| H A D | _typing.py | 67 StrPathLike: TypeAlias = Union[PathLike, str] 72 PathDiffPair: TypeAlias = Tuple[Path, str] 73 CondensedDiags: TypeAlias = Dict[Path, List[str]] 74 WeakListType: TypeAlias = WeakList[Tuple[str, bool, int]] 80 …t = 0, num_context: int = 0, view: bool = False, highlight: bool = True, trim: bool = True) -> str: 83 …, num_after_context: int = 0, num_context: int = 0, trim: bool = True, tight: bool = False) -> str: 94 …nt = ..., num_context: int = ..., view: bool = ..., highlight: bool = ..., trim: bool = ...) -> str 96 # note: def formatted(self, **kwargs: Any) -> str 98 …, num_after_context: int = ..., num_context: int = ..., trim: bool = ..., tight: bool = ...) -> str 100 # note: def raw(self, **kwargs: Any) -> str [all …]
|
| H A D | test_main.py | 30 shutil.copy2(str(self.fname), str(self.temp_path)) 80 def test(generated_output: list[str], reference_file: Path) -> str: argument 91 fromfile=str(short_ref_name), tofile='Generated Output', n=0 96 def sanitize_output_file(text: Optional[str]) -> list[str]: argument 97 return [] if text is None else [l.replace(str(petsc_dir), '.') for l in text.splitlines(True)] 99 def sanitize_patch_file(text: Optional[str]) -> list[str]: argument 103 def rename_patch_file_target(text: str, new_path: Path) -> str: argument 106 lines[0] = lines[0].replace(out_file, str(new_path)) 107 lines[1] = lines[1].replace(out_file, str(new_path))
|
| H A D | queue_main.py | 27 def __init__(self, filename: str, *args, **kwargs) -> None: argument 33 def __handle_error(error_prefix: str, filename: str, error_queue: ParallelPool.ErrorQueueType, file… argument 47 send_exception_trace = str(send_e) + '\n\n' + str(send_e2) 84 raise MainLoopError(str(filename)) from exc 91 _print_prefix: str 94 def __init__(self, verbose: bool, print_prefix: str, lock: ParallelPool.LockType) -> None: argument 136 updated_check_function_map: dict[str, FunctionChecker], argument 137 updated_classid_map: dict[str, str], argument 139 compiler_flags: list[str], argument 190 __handle_error(error_prefix, str(filename), error_queue, file_queue, base_e)
|
| /petsc/config/BuildSystem/ |
| H A D | nargs.py | 123 return 'Empty '+str(self.__class__) 126 return str(list(map(str, value))) 127 return str(value) 141 raise KeyError('Could not find value for key '+str(self.key)) 146 if isinstance(self.deprecated, str): 175 raise TypeError('Invalid boolean value: '+str(value)+' for key '+str(self.key)) 192 return str(value) 196 return 'Empty '+str(self.__class__) 198 return str(map(self.valueName, self.value)) 217 raise TypeError('Invalid fuzzy boolean value: '+str(value)+' for key '+str(self.key)) [all …]
|
| H A D | RDict.py | 106 self.writeLogLine('SERVER: Last access '+str(self.lastAccess)) 142 …self.logFile.write('('+str(os.getpid())+')('+str(id(self))+')'+message+' ['+time.asctime(time.loca… 157 self.writeLogLine('getType: Getting local type for '+key+' '+str(value)) 189 self.writeLogLine('__getitem__: Parent had invalid entry: '+str(e)) 192 self.writeLogLine('__getitem__: Setting parent value '+str(value)) 217 …print('Warning! Incorrect argument type specified: -'+str(key)+'='+str(v.getValue())+' - expecting… 234 self.writeLogLine('__setitem__: Set value for '+key+' to '+str(dict.__getitem__(self, key))) 337 if isinstance(args[key], str): 342 elif isinstance(args, str): 365 …riteLogLine('CLIENT: Exception during server address determination: '+str(e.__class__)+': '+str(e)) [all …]
|
| H A D | sourceDatabase.py | 49 self.filename = os.path.join(str(root), 'bsSource.db') 58 output += ' Checksum: '+str(checksum)+'\n' 59 output += ' Mod Time: '+str(mtime)+'\n' 60 output += ' Timestamp: '+str(timestamp)+'\n' 61 output += ' Deps: '+str(dependencies)+'\n' 77 root = str(self.root) 87 raise ValueError('Source database values must be tuples, '+str(type(value))+' given') 89 raise ValueError('Source database values must have 4 items, '+str(len(value))+' given') 91 if not isinstance(checksum, str): 92 raise ValueError('Invalid checksum for source database, '+str(type(checksum))+' given') [all …]
|
| /petsc/lib/petsc/bin/maint/ |
| H A D | check_header_guard.py | 20 __version_str__ = '.'.join(map(str, __version__)) 35 def _strip_empty_lines(self, idx: int, ret: list[str]) -> list[str]: argument 57 def prologue(self, ret: Sequence[str]) -> list[str]: argument 73 def replace(self, last_line: str, line: str, ret: list[str]) -> list[str]: argument 77 def epilogue(self, last_endif: int, ret: list[str]) -> list[str]: argument 95 def prologue(self, ret: list[str]) -> list[str]: argument 98 def replace(self, prev_line: str, line: str, ret: list[str]) -> list[str]: argument 141 def epilogue(self, last_endif: int, ret: list[str]) -> list[str]: argument 172 new_ifndef: str 173 new_guard: str [all …]
|
| /petsc/src/binding/petsc4py/src/petsc4py/ |
| H A D | __init__.pyi | 4 __version__: str = ... 5 def init(args: Union[str, list[str]] | None = ..., arch: str | None = ..., comm: Intracomm | None =… 6 def get_include() -> str: ... 7 def get_config() -> dict[str, str]: ...
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | Options.pyx | 11 prefix : str, optional 22 >>> val = opts['a'] # return the option value as 'str' 69 def __get__(self) -> str: 116 def prefixPush(self, prefix: str | Options | Object | None) -> None: 144 def hasName(self, name: str) -> bool: argument 153 def used(self, name: str) -> bool: argument 161 def setValue(self, name: str, argument 162 …loat | Scalar | Sequence[bool] | Sequence[int] | Sequence[float] | Sequence[Scalar] | str) -> None: argument 190 value = str(value).replace(' ', '').\ 194 value = str(value).lower() [all …]
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/util/ |
| H A D | _utility.py | 22 def traceback_format_exception(exc: ExceptionKind) -> list[str]: 77 def subprocess_capture_output(*args, **kwargs) -> subprocess.CompletedProcess[str]: 144 clxconf.set_library_file(str(clang_lib)) 147 clxconf.set_library_path(str(clang_dir)) 190 def get_petsc_extra_includes(petsc_dir: Path, petsc_arch: str) -> list[str]: argument 197 petsc_arch : str 220 def split_and_strip(line: str) -> list[str]: argument 231 def filter_flags(flags: list[str], keep_prefix: str) -> Iterable[str]: argument 238 seen: set[str] = set() 244 def get_clang_sys_includes() -> list[str]: [all …]
|
| H A D | _color.py | 10 __COLOR_BRIGHT_RED__: str = colorama.Fore.RED + colorama.Style.BRIGHT 11 __COLOR_BRIGHT_YELLOW__: str = colorama.Fore.YELLOW + colorama.Style.BRIGHT 12 __COLOR_RESET__: str = colorama.Style.RESET_ALL 19 def bright_red(cls) -> str: 30 def bright_yellow(cls) -> str: 41 def reset(cls) -> str:
|
| /petsc/src/sys/utils/ |
| H A D | pdisplay.c | 35 char *str, work[256]; in PetscOptionsGetenv() local 58 str = getenv(name); in PetscOptionsGetenv() 59 if (str) flg = PETSC_TRUE; in PetscOptionsGetenv() 60 if (str && env) PetscCall(PetscStrncpy(env, str, len)); in PetscOptionsGetenv() 104 const char *str; in PetscSetDisplay() local 115 str = getenv("DISPLAY"); in PetscSetDisplay() 116 if (!str) str = ":0.0"; in PetscSetDisplay() 126 str = ":15"; in PetscSetDisplay() 129 if (str[0] != ':' || singlehost) { in PetscSetDisplay() 130 PetscCall(PetscStrncpy(display, str, sizeof(display))); in PetscSetDisplay() [all …]
|
| H A D | arch.c | 12 . str - string area to contain architecture name, should be at least 10 characters long. Name is tr… 21 character*(128) str 22 call PetscGetArchType(str,ierr) 27 PetscErrorCode PetscGetArchType(char str[], size_t slen) in PetscGetArchType() argument 31 PetscCall(PetscStrncpy(str, PETSC_ARCH, slen - 1)); in PetscGetArchType()
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/docs/ |
| H A D | _doc_section_base.py | 30 text: str 31 prefix: str 32 arg: str 33 description: str 34 sep: str 35 expected_sep: str 37 …def __init__(self, raw: str, prefixes: Optional[Sequence[str]] = None, expected_sep: str = '-') ->… argument 70 assert isinstance(descr, str) 80 def split_param(text: str, prefixes: Sequence[str], sep: str) -> tuple[str, str, str]: argument 164 __slots__: tuple[str, ...] = tuple() [all …]
|
| H A D | _doc_str.py | 67 def __str__(self) -> str: 74 str.casefold, 107 _sections: dict[str, SectionBase] 108 _cachekey: tuple[str, ...] 109 _findcache: dict[tuple[str, ...], dict[str, str]] 134 def __getattr__(self, attr: str) -> SectionBase: argument 188 def find(self, heading: str, cache_result: bool = True, strict: bool = False) -> SectionBase: argument 307 def gen_titles(self) -> Generator[str, None, None]: 322 def is_heading(self, line: str, prev_line: str) -> Verdict: argument 337 def handle_header_with_colon(text: str) -> Verdict: argument [all …]
|
| /petsc/lib/petsc/bin/maint/abi-compliance-checker/modules/Internals/ |
| H A D | Basic.pm | 115 my $Str = $_[0]; 116 $Str=~s/([()\[\]{}$ &'"`;,<>\+])/\\$1/g; 117 return $Str; 158 my $Str = $_[0]; 159 if(not $Str) { 160 return $Str; 162 $Str=~s/\&([^#]|\Z)/&$1/g; 163 $Str=~s/</</g; 164 $Str=~s/\-\>/->/g; # − 165 $Str=~s/>/>/g; [all …]
|
| /petsc/doc/ext/ |
| H A D | html5_petsc.py | 87 def _get_manpage_map(self) -> Dict[str,str]: 100 def _add_manpage_links(self, string: str) -> str: argument 196 def htmlmap_to_dict(htmlmap_filename: str) -> Dict[str,str]: argument 212 def dict_complete_links(string_to_link: Dict[str,str], prefix: str = '') -> Dict[str,str]: argument 216 def link_string(name: str, link: str, prefix: str) -> str: argument
|
| /petsc/src/sys/fileio/ |
| H A D | mprint.c | 157 + str - location to put result 158 . len - the length of `str` 163 . fullLength - the amount of space in `str` actually used. 175 PetscErrorCode PetscVSNPrintf(char str[], size_t len, const char format[], size_t *fullLength, va_l… in PetscVSNPrintf() argument 192 flen = vsnprintf(str, len, newformat, Argp); in PetscVSNPrintf() 200 PetscCall(PetscStrlen(str, &leng)); in PetscVSNPrintf() 203 if (str[cnt] == '[' && str[cnt + 1] == '|') { in PetscVSNPrintf() 209 if (str[cnt] == '|' && str[cnt + 1] == ']') { in PetscVSNPrintf() 211 if (!foundedot) str[ncnt++] = '.'; in PetscVSNPrintf() 215 if (str[cnt] == 'e' || str[cnt] == '.') foundedot = PETSC_TRUE; in PetscVSNPrintf() [all …]
|
| /petsc/src/sys/classes/viewer/impls/ascii/ftn-custom/ |
| H A D | zfilevf.c | 29 PETSC_EXTERN void petscviewerasciiprintf_(PetscViewer *viewer, char *str, PetscErrorCode *ierr, PET… in petscviewerasciiprintf_() argument 35 FIXCHAR(str, len1, c1); in petscviewerasciiprintf_() 38 FREECHAR(str, c1); in petscviewerasciiprintf_() 44 PETSC_EXTERN void petscviewerasciisynchronizedprintf_(PetscViewer *viewer, char *str, PetscErrorCod… in petscviewerasciisynchronizedprintf_() argument 50 FIXCHAR(str, len1, c1); in petscviewerasciisynchronizedprintf_() 53 FREECHAR(str, c1); in petscviewerasciisynchronizedprintf_()
|
| /petsc/src/sys/tests/ |
| H A D | ex47-options.yaml | 14 str: petsc 19 $$4: &seq-str [abc, ijk, fgh] 25 str: *seq-str, 39 str:
|