recording_iteration_stack.py

Management of iteration stack for recording.

class openmdao.recorders.recording_iteration_stack.Recording(name, iter_count, recording_requester)[source]

Bases: object

A class that acts as a context manager.

But with properly-timed values for abs and rel, where solvers are concerned.

Attributes

name

(str) Name of object getting recorded.

iter_count

(int) Current counter of iterations completed.

recording_requester

(object) The object that wants to be recorded.

stack

(list) Stack containing names and iteration counts.

abs

(float) Absolute error.

rel

(float) Relative error.

__init__(self, name, iter_count, recording_requester)[source]

Initialize Recording.

Parameters
namestr

Name of object getting recorded.

iter_countint

Current counter of iterations completed.

recording_requesterobject

The object that wants to be recorded.