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 | Variables
EMPIRE_API_helpers Namespace Reference

Functions

static double ElapsedSeconds (const std::chrono::steady_clock::time_point &rStartTime)
 
static bool FileExists (const std::string &rFileName)
 
static std::string GetTempFileName (const std::string &rFileName)
 
static std::string GetFullPath (const std::string &rFileName)
 
static void WaitForFile (const std::string &rFileName)
 
static void RemoveFile (const std::string &rFileName)
 
static void MakeFileVisible (const std::string &rFinalFileName)
 
template<typename T >
static void CheckStream (const T &rStream, const std::string &rFileName)
 
static void SendArray (const std::string &rFileName, const int sizeOfArray, const double *data)
 
static void ReceiveArray (const std::string &rFileName, const int sizeOfArray, double *data)
 
static int GetVtkCellType (const int NumberOfNodes)
 
static bool StringEndsWith (const std::string &rString, const std::string &rSuffix)
 
static void ReadNumberAfterKeyword (const std::string &rKeyWord, const std::string &rCurrentLine, int &rNumber)
 
template<typename TDataType >
static void AllocateMemory (TDataType **ppContainer, const std::size_t Size)
 
template<typename TDataType >
static void AllocateMemory (std::vector< TDataType > *pContainer, const std::size_t Size)
 

Variables

static const std::string CommDir = ".EmpireIO"
 
static int PrintTiming = 0
 
static int EchoLevel = 1
 

Function Documentation

◆ AllocateMemory() [1/2]

template<typename TDataType >
static void EMPIRE_API_helpers::AllocateMemory ( std::vector< TDataType > *  pContainer,
const std::size_t  Size 
)
static

◆ AllocateMemory() [2/2]

template<typename TDataType >
static void EMPIRE_API_helpers::AllocateMemory ( TDataType **  ppContainer,
const std::size_t  Size 
)
static

◆ CheckStream()

template<typename T >
static void EMPIRE_API_helpers::CheckStream ( const T &  rStream,
const std::string &  rFileName 
)
static

◆ ElapsedSeconds()

static double EMPIRE_API_helpers::ElapsedSeconds ( const std::chrono::steady_clock::time_point &  rStartTime)
static

◆ FileExists()

static bool EMPIRE_API_helpers::FileExists ( const std::string &  rFileName)
static

◆ GetFullPath()

static std::string EMPIRE_API_helpers::GetFullPath ( const std::string &  rFileName)
static

◆ GetTempFileName()

static std::string EMPIRE_API_helpers::GetTempFileName ( const std::string &  rFileName)
static

◆ GetVtkCellType()

static int EMPIRE_API_helpers::GetVtkCellType ( const int  NumberOfNodes)
static

◆ MakeFileVisible()

static void EMPIRE_API_helpers::MakeFileVisible ( const std::string &  rFinalFileName)
static

◆ ReadNumberAfterKeyword()

static void EMPIRE_API_helpers::ReadNumberAfterKeyword ( const std::string &  rKeyWord,
const std::string &  rCurrentLine,
int &  rNumber 
)
static

◆ ReceiveArray()

static void EMPIRE_API_helpers::ReceiveArray ( const std::string &  rFileName,
const int  sizeOfArray,
double *  data 
)
static

◆ RemoveFile()

static void EMPIRE_API_helpers::RemoveFile ( const std::string &  rFileName)
static

◆ SendArray()

static void EMPIRE_API_helpers::SendArray ( const std::string &  rFileName,
const int  sizeOfArray,
const double *  data 
)
static

◆ StringEndsWith()

static bool EMPIRE_API_helpers::StringEndsWith ( const std::string &  rString,
const std::string &  rSuffix 
)
static

◆ WaitForFile()

static void EMPIRE_API_helpers::WaitForFile ( const std::string &  rFileName)
static

Variable Documentation

◆ CommDir

const std::string EMPIRE_API_helpers::CommDir = ".EmpireIO"
static

◆ EchoLevel

int EMPIRE_API_helpers::EchoLevel = 1
static

◆ PrintTiming

int EMPIRE_API_helpers::PrintTiming = 0
static