check_config.py#

A module containing various configuration checks for an OpenMDAO Problem.

openmdao.error_checking.check_config.check_allocate_complex_ln(group, under_cs)[source]

Return True if linear vector should be complex.

This happens when a solver needs derivatives under complex step.

Parameters:
group<Group>

Group to be checked.

under_csbool

Flag indicates if complex vectors were allocated in a containing Group or were force allocated in setup.

Returns:
bool

True if linear vector should be complex.