![]() |
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.
|
This process compares files that are written during a simulation against reference files. More...
Public Member Functions | |
| def | __init__ (self, params) |
| def | Execute (self) |
| Executes all functions required to compare the files Intended to be directly used within python-scripts. More... | |
| def | ExecuteFinalize (self) |
| The files are compared in this function Please see the respective files for details on the format of the files. More... | |
Public Member Functions inherited from KratosUnittest.TestCase | |
| def | run (self, result=None) |
| def | skipTestIfApplicationsNotAvailable (self, *application_names) |
| Skips the test if required applications are not available. More... | |
| def | assertEqualTolerance (self, first, second, tolerance, msg=None) |
| Fails if first and second have a difference greater than tolerance. More... | |
| def | assertIsClose (self, first, second, rel_tol=None, abs_tol=None, msg=None) |
| Fails if the two objects are unequal as determined by their absolute and relative difference. More... | |
| def | assertVectorAlmostEqual (self, vector1, vector2, places=7, msg=None, delta=None) |
| def | assertMatrixAlmostEqual (self, matrix1, matrix2, places=7, msg=None, delta=None) |
Public Attributes | |
| reference_file_name | |
| Settings string in json format. More... | |
| output_file_name | |
| remove_output_file | |
| comparison_type | |
| only do the check in ranks zero, otherwise this can experience in race condition More... | |
| tol | |
| reltol | |
| dimension | |
| info_msg | |
Public Attributes inherited from KratosUnittest.TestCase | |
| mismatch_idx | |
| aux_message | |
| idx_1 | |
| idx_2 | |
This process compares files that are written during a simulation against reference files.
Please see the "ExecuteFinalize" functions for details about the available file-formats
| def compare_two_files_check_process.CompareTwoFilesCheckProcess.__init__ | ( | self, | |
| params | |||
| ) |
| def compare_two_files_check_process.CompareTwoFilesCheckProcess.Execute | ( | self | ) |
Executes all functions required to compare the files Intended to be directly used within python-scripts.
| def compare_two_files_check_process.CompareTwoFilesCheckProcess.ExecuteFinalize | ( | self | ) |
The files are compared in this function Please see the respective files for details on the format of the files.
| compare_two_files_check_process.CompareTwoFilesCheckProcess.comparison_type |
only do the check in ranks zero, otherwise this can experience in race condition
| compare_two_files_check_process.CompareTwoFilesCheckProcess.dimension |
| compare_two_files_check_process.CompareTwoFilesCheckProcess.info_msg |
| compare_two_files_check_process.CompareTwoFilesCheckProcess.output_file_name |
| compare_two_files_check_process.CompareTwoFilesCheckProcess.reference_file_name |
Settings string in json format.
Overwrite the default settings with user-provided parameters
| compare_two_files_check_process.CompareTwoFilesCheckProcess.reltol |
| compare_two_files_check_process.CompareTwoFilesCheckProcess.remove_output_file |
| compare_two_files_check_process.CompareTwoFilesCheckProcess.tol |