PeriDEM 0.3.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
Loading...
Searching...
No Matches
run Namespace Reference

Functions

Path _root ()
 

Variables

 HERE = Path(__file__).resolve().parent
 
Path ROOT = _root()
 

Detailed Description

In-process Python run. Same DECK / NP / NTHREADS as ./run.sh.
In-process Python run. Same env as the C++ README (DECK, NP, NTHREADS).
In-process Python run of inp/input.json (generated by ./run.sh / the C++ driver).

Function Documentation

◆ _root()

Path run._root ( )
protected

Definition at line 20 of file run.py.

20def _root() -> Path:
21 for p in [HERE, *HERE.parents]:
22 if (p / "python" / "peridem" / "__init__.py").is_file():
23 return p
24 raise SystemExit("PeriDEM repo root not found")
25
26

Variable Documentation

◆ HERE

run.HERE = Path(__file__).resolve().parent

Definition at line 17 of file run.py.

◆ ROOT

Path run.ROOT = _root()

Definition at line 27 of file run.py.