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.
Classes | Functions | Variables
KratosUnittest Namespace Reference

Classes

class  TestLoader
 
class  TestCase
 
class  KratosTextTestResult
 
class  WorkFolderScope
 Helper-class to execute test in a specific target path. More...
 

Functions

def skipIfApplicationsNotAvailable (*application_names)
 Skips the test if required applications are not available. More...
 
def SupressConsoleOutput ()
 
def SupressConsoleError ()
 
def SupressAllConsole ()
 
def main ()
 
def runTests (tests)
 
def isclose (a, b, rel_tol=1e-09, abs_tol=0.0)
 Same implementation as math.isclose self-implemented bcs math.isclose was only introduced in python3.5 see https://www.python.org/dev/peps/pep-0485/. More...
 

Variables

dictionary test_timing_results = {}
 
dictionary KratosSuites
 

Function Documentation

◆ isclose()

def KratosUnittest.isclose (   a,
  b,
  rel_tol = 1e-09,
  abs_tol = 0.0 
)

Same implementation as math.isclose self-implemented bcs math.isclose was only introduced in python3.5 see https://www.python.org/dev/peps/pep-0485/.

◆ main()

def KratosUnittest.main ( )

◆ runTests()

def KratosUnittest.runTests (   tests)

◆ skipIfApplicationsNotAvailable()

def KratosUnittest.skipIfApplicationsNotAvailable ( application_names)

Skips the test if required applications are not available.

◆ SupressAllConsole()

def KratosUnittest.SupressAllConsole ( )

◆ SupressConsoleError()

def KratosUnittest.SupressConsoleError ( )

◆ SupressConsoleOutput()

def KratosUnittest.SupressConsoleOutput ( )

Variable Documentation

◆ KratosSuites

dictionary KratosUnittest.KratosSuites
Initial value:
1 = {
2  'small': TestSuite(),
3  'nightly': TestSuite(),
4  'all': TestSuite(),
5  'validation': TestSuite(),
6  'mpi_small': TestSuite(),
7  'mpi_nightly': TestSuite(),
8  'mpi_all': TestSuite(),
9  'mpi_validation': TestSuite(),
10 }

◆ test_timing_results

dictionary KratosUnittest.test_timing_results = {}