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.
|
Functions | |
def | main () |
This script executes the MPI tests. More... | |
def testing.run_python_mpi_tests.main | ( | ) |
This script executes the MPI tests.
It takes no parameters and returns no values. The variables that are set by this function, as well as the tests that are executed, are determined by the command line arguments passed to the function. These arguments include:
-c, –command: The command to use to launch test cases. If not provided, the default 'python' executable is used. -l, –level: The minimum level of detail of the tests. Choices are 'mpi_all' (default), 'mpi_nightly', 'mpi_small', and 'mpi_validation'. -v, –verbosity: The verbosity level. Choices are 0, 1 (default), and 2. -a, –applications: A list of applications to run, separated by ':'. All compiled applications will be run by default. -n, –processes: The number of processes to consider. Default is the number of cores of the system. -m, –mpi_command: The MPI command to consider. Default is mpiexec. -f, –mpi_flags: The additional MPI flags to consider. Default is empty. -p, –num_processes_flag: The flag used in order to introduce the number of processes considered. -t, –timer: The custom time limit for the execution. If not provided, the default values are used.
In addition to setting default values and parsing command line arguments, the function also runs tests for the 'KratosMPICore' application and for any other applications specified by the user. The tests are run using the specified command and number of processes, and the results are printed to the console.