linear_runonce.py

Define the LinearRunOnce class.

class openmdao.solvers.linear.linear_runonce.LinearRunOnce(**kwargs)[source]

Bases: openmdao.solvers.linear.linear_block_gs.LinearBlockGS

Simple linear solver that performs a single iteration of Guass-Seidel.

This is done without iteration or norm calculation.

SOLVER = 'LN: RUNONCE'
__init__(self, **kwargs)

Initialize all attributes.

Parameters
**kwargsdict

options dictionary.

add_recorder(self, recorder)

Add a recorder to the solver’s RecordingManager.

Parameters
recorder<CaseRecorder>

A recorder instance to be added to RecManager.

cleanup(self)

Clean up resources prior to exit.

property msginfo

Return info to prepend to messages.

Returns
str

Info to prepend to messages.

record_iteration(self, **kwargs)

Record an iteration of the current Solver.

Parameters
**kwargsdict

Keyword arguments (used for abs and rel error).

solve(self, vec_names, mode, rel_systems=None)[source]

Run the solver.

Parameters
vec_names[str, …]

List of names of the right-hand-side vectors.

modestr

‘fwd’ or ‘rev’.

rel_systemsset of str

Names of systems relevant to the current solve.