744 int main(
int argc,
char** argv)
761 params.
Init(argc, argv);
772 catch (
const std::exception &e)
804 catch (
const std::bad_alloc& e)
810 catch (
const std::exception& e)
824 catch (
const std::ios::failure& e)
832 catch (
const std::exception& e)
size_t GetDeviceMemoryUsageInMB()
Get memory usage in MB on the GPU side.
TOutputMessage OUT_FMT_LEG_EXECUTION_TIME
Output message.
TOutputMessage OUT_FMT_TOTAL_EXECUTION_TIME
Output message.
double GetTotalTime() const
Get total simulation time.
static std::string WordWrapString(const std::string &inputString, const std::string &delimiters, const int indentation=0, const int lineSize=65)
Wrap the line based on logger conventions.
TOutputMessage OUT_FMT_SUMMARY_HEADER
Output message.
TErrorMessage ERR_FMT_PATH_DELIMITERS
delimiters for linux paths
size_t GetNumberOfThreads() const
Get number of threads.
TOutputMessage OUT_FMT_HOST_MEMORY_USAGE
Output message.
int main(int argc, char **argv)
TOutputMessage OUT_FMT_FIRST_SEPARATOR
Output message - first separator.
static TParameters & GetInstance()
Get instance of the singleton class.
bool IsVersion() const
Is –version specified at the command line?
static void ErrorAndTerminate(const std::string &errorMessage)
Log an error and terminate the execution.
TErrorMessage ERR_FMT_OUT_OF_MEMORY
error message - out of memory
TOutputMessage OUT_FMT_RECOVER_FROM
Output message.
void PrintFullNameCodeAndLicense() const
Print the code name and license.
The header file containing the main class of the project responsible for the entire 3D fluid simulati...
const std::string GetCodeName() const
Get code name - release code version.
TOutputMessage OUT_FMT_END_OF_SIMULATION
Output message.
size_t Get_t_index() const
Get simulation time step.
The header file containing a class responsible for printing out info and error messages (stdout...
TOutputMessage OUT_FMT_DEVICE_MEMORY_USAGE
Output message.
TOutputMessage OUT_FMT_ELAPSED_TIME
Output message.
void SelectDevice()
Select cuda device for execution.
Class storing all parameters of the simulation.
void PrintSimulatoinSetup()
Print the simulation setup (all parameters)
double GetCumulatedTotalTime() const
Get total simulation time cumulated over all legs.
virtual void LoadInputData()
Load simulation data from the input file.
Basic (default) level of verbosity.
TOutputMessage OUT_FMT_LAST_SEPARATOR
Output message -last separator.
void Init(int argc, char **argv)
Parse command line and read scalar values to init the class.
TOutputMessage OUT_FMT_CODE_NAME
Output message.
virtual void Compute()
Compute the k-space simulation.
virtual void AllocateMemory()
Memory allocation.
double GetDataLoadTime() const
Get data load time.
static void Log(const TLogLevel queryLevel, const std::string &format, Args...args)
Log desired activity for a given log level, version with string format.
TOutputMessage OUT_FMT_SEPARATOR
Output message - separator.
TOutputMessage OUT_FMT_INIT_HEADER
Output message.
TErrorMessage ERR_FMT_UNKNOWN_ERROR
Unknown error - unknown error.
Class responsible for running the k-space first order 3D method.
TOutputMessage OUT_FMT_FAILED
Output message - failed message.
size_t GetHostMemoryUsageInMB()
Get memory usage in MB on the CPU side.