PICurv 0.1.0
A Parallel Particle-In-Cell Solver for Curvilinear LES
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
audit_ingress.py File Reference

Go to the source code of this file.

Namespaces

namespace  audit_ingress
 

Functions

str audit_ingress.canonical_family (Iterable[str] fragments)
 Join the literal fragments of a constructed name into one stable pattern.
 
"dict[str, Set[str]]" audit_ingress.extract_families (str text)
 Map each name variable built by PetscSNPrintf to every family it carries.
 
"tuple[Set[str], list[str]]" audit_ingress.scan_option_families (Iterable[pathlib.Path] paths)
 Collect declared option families and any constructed name that lacks one.
 
Set[str] audit_ingress.scan_petsc_options (Iterable[pathlib.Path] paths)
 Perform scan petsc options.
 
dict audit_ingress.load_manifest (pathlib.Path path)
 Read and validate the option names, families, and sources in the manifest.
 
int audit_ingress.main ()
 Entry point for this script.
 

Variables

str audit_ingress._ACCESSOR = r'PetscOptions(?:Get(?:Int|Real|Bool|String|IntArray|RealArray)|HasName)'
 
 audit_ingress.OPTION_RE = re.compile(_ACCESSOR + r'\s*\‍(\s*NULL\s*,\s*NULL\s*,\s*"(-[^"]+)"')
 
 audit_ingress.CONSTRUCTED_RE
 
 audit_ingress.SNPRINTF_RE = re.compile(r'PetscSNPrintf\s*\‍(\s*([A-Za-z_][A-Za-z0-9_]*)\s*,')
 
 audit_ingress.LITERAL_RE = re.compile(r'"((?:[^"\\]|\\.)*)"')