14 #if !defined(KRATOS_KERNEL_H_INCLUDED)
15 #define KRATOS_KERNEL_H_INCLUDED
20 #include <unordered_set>
53 class KRATOS_API(KRATOS_CORE)
Kernel {
98 void ImportApplication(KratosApplication::Pointer pNewApplication);
113 bool IsImported(
const std::string& ApplicationName)
const;
122 virtual std::string
Info()
const;
125 virtual void PrintInfo(std::ostream& rOStream)
const;
128 virtual void PrintData(std::ostream& rOStream)
const;
130 static std::unordered_set<std::string>&
131 GetApplicationsList();
133 static std::string Version();
135 static std::string BuildType();
137 static std::string OSName();
139 static std::string PythonVersion();
141 static std::string Compiler();
143 static void SetPythonVersion(std::string);
145 void PrintParallelismSupportInfo()
const;
153 KratosApplication::Pointer mpKratosCoreApplication;
155 static bool mIsDistributedRun;
156 static std::string mPyVersion;
166 void RegisterKratosCore();
189 rOStream << std::endl;
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
std::string Info() const override
Turn back information as a string.
Definition: periodic_interface_process.hpp:93
Kernel is in charge of synchronization the whole system of Kratos itself and its application.
Definition: kernel.h:53
Kernel(Kernel const &rOther)
Copy constructor.
Definition: kernel.h:79
virtual ~Kernel()
Destructor.
Definition: kernel.h:82
void InitializeApplication(KratosApplication &NewApplication)
Initializes and synchronizes the list of variables, elements and conditions in each application.
Definition: kernel.h:111
KRATOS_CLASS_POINTER_DEFINITION(Kernel)
Pointer definition of Kernel.
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: kernel.cpp:85
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: kernel.cpp:82
This class defines the interface with kernel for all applications in Kratos.
Definition: kratos_application.h:91
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
def IsDistributedRun()
Definition: __init__.py:146