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.
distributed_test_case.h
Go to the documentation of this file.
1 // | / |
2 // ' / __| _` | __| _ \ __|
3 // . \ | ( | | ( |\__ `
4 // _|\_\_| \__,_|\__|\___/ ____/
5 // Multi-Physics
6 //
7 // License: BSD License
8 // Kratos default license: kratos/license.txt
9 //
10 // Main authors: Pooyan Dadvand
11 //
12 //
13 
14 #pragma once
15 
16 // System includes
17 #include <string>
18 #include <iostream>
19 
20 // External includes
21 
22 // Project includes
23 #include "testing/test_case.h"
24 
25 namespace Kratos::Testing {
26 
29 
32 
34 
36 class KRATOS_API(KRATOS_CORE) DistributedTestCase: public TestCase
37 {
38 public:
41 
43  DistributedTestCase() = delete;
44 
46  DistributedTestCase(DistributedTestCase const& rOther) = delete;
47 
49  DistributedTestCase(std::string const& Name);
50 
52  ~DistributedTestCase() override;
53 
57 
60 
64 
65  void Run() override;
66 
67  void Profile() override;
68 
72 
73  bool IsEnabled() const override;
74 
75  bool IsDisabled() const override;
76 
77  bool IsDistributedTest() const override;
78 
82 
84  std::string Info() const override;
85 
87 private:
90 
91  void CheckRemoteFailure();
92 
94 };
95 
97 }
std::string Info() const override
Turn back information as a string.
Definition: periodic_interface_process.hpp:93
Base class for distributed tests.
Definition: distributed_test_case.h:37
The test case base class.
Definition: test_case.h:53
DistributedTestCase & operator=(DistributedTestCase const &rOther)=delete
Preventing the assignment of the tests.
DistributedTestCase(DistributedTestCase const &rOther)=delete
The TestCase cannot be copied to avoid duplications.
DistributedTestCase()=delete
TestCase cannot be created without a name.
Definition: distributed_test_case.cpp:24
def Run()
Definition: convection_diffusion_benchmarks.py:9