IFEM  90A354
Static Public Member Functions | Static Public Attributes | Static Private Attributes | List of all members
IFEM Class Reference

Class holding global IFEM configuration. More...

#include <IFEM.h>

Collaboration diagram for IFEM:
Collaboration graph
[legend]

Static Public Member Functions

static int Init (int arg_c, char **arg_v, const char *title=nullptr, bool silent=false)
 Initializes the IFEM library. More...
 
static void Close ()
 Closes the IFEM library.
 
static void applyCommandLineOptions (SIMoptions &opt)
 Applies command-line argument values to the general input options.
 
static SIMoptionsgetOptions ()
 Returns a reference to the general input options.
 
static void registerCallback (ControlCallback &cb)
 Registers a fifo instruction callback.
 
static bool pollControllerFifo ()
 Polls the control fifo for instructions.
 

Static Public Attributes

static utl::LogStream cout
 Combined standard out for parallel processes.
 
static std::shared_ptr< std::ostringstream > memoryLog
 Logging data stored in memory.
 

Static Private Attributes

static SIMoptions cmdOptions
 General input options.
 
static int argc = 0
 The number of command-line arguments.
 
static char ** argv = nullptr
 The command-line arguments.
 
static ControlFIFOfifo = nullptr
 Control fifo helper.
 

Detailed Description

Class holding global IFEM configuration.

Member Function Documentation

◆ Init()

int IFEM::Init ( int  arg_c,
char **  arg_v,
const char *  title = nullptr,
bool  silent = false 
)
static

Initializes the IFEM library.

Parameters
[in]arg_cThe number of command-line arguments
[in]arg_vThe command-line arguments
[in]titleThe title of the IFEM simulator
[in]silentTrue to suppress output
Returns
The MPI process ID

References utl::LogStream::addExtraLog(), argc, argv, cmdOptions, cout, fifo, IFEM_VERSION_STRING, LinAlgInit::increfs(), LinAlgInit::Init(), memoryLog, LinAlgInit::myPid, ControlFIFO::open(), SIMoptions::parseOldOptions(), and utl::LogStream::setPIDs().

Referenced by main().


The documentation for this class was generated from the following files: