KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
Public Member Functions | Public Attributes | List of all members
logger_utilities.OptimizationAlgorithmTimeLogger Class Reference

A context responsible for outputting execution times. More...

Collaboration diagram for logger_utilities.OptimizationAlgorithmTimeLogger:

Public Member Functions

def __init__ (self, str optimizer_name, int optimization_itr)
 
def __enter__ (self)
 
def __exit__ (self, exit_type, exit_value, exit_traceback)
 

Public Attributes

 start_time
 
 optimization_itr
 
 optimizer_name
 

Detailed Description

A context responsible for outputting execution times.

Constructor & Destructor Documentation

◆ __init__()

def logger_utilities.OptimizationAlgorithmTimeLogger.__init__ (   self,
str  optimizer_name,
int  optimization_itr 
)

Member Function Documentation

◆ __enter__()

def logger_utilities.OptimizationAlgorithmTimeLogger.__enter__ (   self)

◆ __exit__()

def logger_utilities.OptimizationAlgorithmTimeLogger.__exit__ (   self,
  exit_type,
  exit_value,
  exit_traceback 
)

Member Data Documentation

◆ optimization_itr

logger_utilities.OptimizationAlgorithmTimeLogger.optimization_itr

◆ optimizer_name

logger_utilities.OptimizationAlgorithmTimeLogger.optimizer_name

◆ start_time

logger_utilities.OptimizationAlgorithmTimeLogger.start_time

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