flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
test_collocated_stability_guard.StderrCapture Class Reference

Public Member Functions

 __enter__ (self)
 __exit__ (self, *exc)

Public Attributes

str text = ""

Protected Attributes

 _tmp = tempfile.TemporaryFile(mode="w+b")
 _saved = os.dup(2)

Detailed Description

Capture the C-level stderr (fd 2) of a block: the solver's notices are fprintf(stderr).

Definition at line 124 of file test_collocated_stability_guard.py.

Member Function Documentation

◆ __enter__()

test_collocated_stability_guard.StderrCapture.__enter__ ( self)

Definition at line 127 of file test_collocated_stability_guard.py.

◆ __exit__()

test_collocated_stability_guard.StderrCapture.__exit__ ( self,
* exc )

Definition at line 135 of file test_collocated_stability_guard.py.

References _saved, _tmp, and text.

Member Data Documentation

◆ _tmp

test_collocated_stability_guard.StderrCapture._tmp = tempfile.TemporaryFile(mode="w+b")
protected

Definition at line 129 of file test_collocated_stability_guard.py.

Referenced by __exit__().

◆ _saved

test_collocated_stability_guard.StderrCapture._saved = os.dup(2)
protected

Definition at line 130 of file test_collocated_stability_guard.py.

Referenced by __exit__().

◆ text

str test_collocated_stability_guard.StderrCapture.text = ""

Definition at line 132 of file test_collocated_stability_guard.py.

Referenced by __exit__().


The documentation for this class was generated from the following file: