ogstools.logparser.regexes module#

class ogstools.logparser.regexes.Log[source]#

Bases: object

Log(type: str, line: int)

type: str#
line: int#
static type_str()[source]#
Return type:

str

__init__(type, line)#
class ogstools.logparser.regexes.Info[source]#

Bases: Log

static type_str()[source]#
Return type:

str

class ogstools.logparser.regexes.WarningType[source]#

Bases: Log

static type_str()[source]#
Return type:

str

class ogstools.logparser.regexes.ErrorType[source]#

Bases: Log

static type_str()[source]#
Return type:

str

class ogstools.logparser.regexes.CriticalType[source]#

Bases: Log

static type_str()[source]#
Return type:

str

class ogstools.logparser.regexes.MPIProcess[source]#

Bases: Info

MPIProcess(type: str, line: int, mpi_process: int)

mpi_process: int#
__init__(type, line, mpi_process)#
class ogstools.logparser.regexes.AssemblyTime[source]#

Bases: MPIProcess, Info

AssemblyTime(type: str, line: int, mpi_process: int, assembly_time: float)

assembly_time: float#
__init__(type, line, mpi_process, assembly_time)#
class ogstools.logparser.regexes.TimeStep[source]#

Bases: MPIProcess, Info

TimeStep(type: str, line: int, mpi_process: int, time_step: int)

time_step: int#
__init__(type, line, mpi_process, time_step)#
class ogstools.logparser.regexes.Iteration[source]#

Bases: TimeStep, Info

Iteration(type: str, line: int, mpi_process: int, time_step: int, iteration_number: int)

iteration_number: int#
__init__(type, line, mpi_process, time_step, iteration_number)#
class ogstools.logparser.regexes.IterationTime[source]#

Bases: MPIProcess, Info

IterationTime(type: str, line: int, mpi_process: int, iteration_number: int, iteration_time: float)

iteration_number: int#
iteration_time: float#
__init__(type, line, mpi_process, iteration_number, iteration_time)#
class ogstools.logparser.regexes.TimeStepStartTime[source]#

Bases: MPIProcess, Info

TimeStepStartTime(type: str, line: int, mpi_process: int, time_step: int, step_start_time: float, step_size: float)

time_step: int#
step_start_time: float#
step_size: float#
__init__(type, line, mpi_process, time_step, step_start_time, step_size)#
class ogstools.logparser.regexes.TimeStepOutputTime[source]#

Bases: MPIProcess, Info

TimeStepOutputTime(type: str, line: int, mpi_process: int, time_step: int, output_time: float)

time_step: int#
output_time: float#
__init__(type, line, mpi_process, time_step, output_time)#
class ogstools.logparser.regexes.TimeStepSolutionTime[source]#

Bases: MPIProcess, Info

TimeStepSolutionTime(type: str, line: int, mpi_process: int, process: int, time_step_solution_time: float, time_step: int)

process: int#
time_step_solution_time: float#
time_step: int#
__init__(type, line, mpi_process, process, time_step_solution_time, time_step)#
class ogstools.logparser.regexes.TimeStepSolutionTimeCoupledScheme[source]#

Bases: MPIProcess, Info

TimeStepSolutionTimeCoupledScheme(type: str, line: int, mpi_process: int, process: int, time_step_solution_time: float, time_step: int, coupling_iteration: int)

process: int#
time_step_solution_time: float#
time_step: int#
coupling_iteration: int#
__init__(type, line, mpi_process, process, time_step_solution_time, time_step, coupling_iteration)#
class ogstools.logparser.regexes.TimeStepFinishedTime[source]#

Bases: MPIProcess, Info

TimeStepFinishedTime(type: str, line: int, mpi_process: int, time_step: int, time_step_finished_time: float)

time_step: int#
time_step_finished_time: float#
__init__(type, line, mpi_process, time_step, time_step_finished_time)#
class ogstools.logparser.regexes.DirichletTime[source]#

Bases: MPIProcess, Info

DirichletTime(type: str, line: int, mpi_process: int, dirichlet_time: float)

dirichlet_time: float#
__init__(type, line, mpi_process, dirichlet_time)#
class ogstools.logparser.regexes.LinearSolverTime[source]#

Bases: MPIProcess, Info

LinearSolverTime(type: str, line: int, mpi_process: int, linear_solver_time: float)

linear_solver_time: float#
__init__(type, line, mpi_process, linear_solver_time)#
class ogstools.logparser.regexes.MeshReadTime[source]#

Bases: MPIProcess, Info

MeshReadTime(type: str, line: int, mpi_process: int, mesh_read_time: float)

mesh_read_time: float#
__init__(type, line, mpi_process, mesh_read_time)#
class ogstools.logparser.regexes.SimulationExecutionTime[source]#

Bases: MPIProcess, Info

SimulationExecutionTime(type: str, line: int, mpi_process: int, execution_time: float)

execution_time: float#
__init__(type, line, mpi_process, execution_time)#
class ogstools.logparser.regexes.ComponentConvergenceCriterion[source]#

Bases: MPIProcess, Info

ComponentConvergenceCriterion(type: str, line: int, mpi_process: int, component: int, dx: float, x: float, dx_x: float)

component: int#
dx: float#
x: float#
dx_x: float#
__init__(type, line, mpi_process, component, dx, x, dx_x)#
class ogstools.logparser.regexes.TimeStepConvergenceCriterion[source]#

Bases: MPIProcess, Info

TimeStepConvergenceCriterion(type: str, line: int, mpi_process: int, dx: float, x: float, dx_x: float)

dx: float#
x: float#
dx_x: float#
__init__(type, line, mpi_process, dx, x, dx_x)#
class ogstools.logparser.regexes.CouplingIterationConvergence[source]#

Bases: MPIProcess, Info

CouplingIterationConvergence(type: str, line: int, mpi_process: int, coupling_iteration_process: int)

coupling_iteration_process: int#
__init__(type, line, mpi_process, coupling_iteration_process)#
class ogstools.logparser.regexes.GenericCodePoint[source]#

Bases: MPIProcess, Info

GenericCodePoint(type: str, line: int, mpi_process: int, message: str)

message: str#
__init__(type, line, mpi_process, message)#
class ogstools.logparser.regexes.PhaseFieldEnergyVar[source]#

Bases: MPIProcess, Info

PhaseFieldEnergyVar(type: str, line: int, mpi_process: int, elastic_energy: float, surface_energy: float, pressure_work: float, total_energy: float)

elastic_energy: float#
surface_energy: float#
pressure_work: float#
total_energy: float#
__init__(type, line, mpi_process, elastic_energy, surface_energy, pressure_work, total_energy)#
class ogstools.logparser.regexes.ErrorMessage[source]#

Bases: MPIProcess, ErrorType

ErrorMessage(type: str, line: int, mpi_process: int, message: str)

message: str#
__init__(type, line, mpi_process, message)#
class ogstools.logparser.regexes.CriticalMessage[source]#

Bases: MPIProcess, CriticalType

CriticalMessage(type: str, line: int, mpi_process: int, message: str)

message: str#
__init__(type, line, mpi_process, message)#
class ogstools.logparser.regexes.WarningMessage[source]#

Bases: MPIProcess, WarningType

WarningMessage(type: str, line: int, mpi_process: int, message: str)

message: str#
__init__(type, line, mpi_process, message)#
ogstools.logparser.regexes.ogs_regexes()[source]#

Defines regular expressions for parsing OpenGeoSys log messages.

Returns:

A list of tuples, each containing a regular expression pattern and the corresponding message class.

Return type:

list[tuple[str, type[Log]]]